Rapidmodz Posted March 22, 2009 Share Posted March 22, 2009 Hey Guys I recently Just got my new website and i was working my ass of to finish this but I came across a major problem followed the tutorial on how to add a custom text page. I wanted 2 custom text pages So i followed the tutorial and I made my first custom page and it was a success its called Videos on the bottom of my site. But when I went to add a second custom page caled tutorials it colloided with the copyright and the videos as you can see and when you click tutorials it just links you to the privacy page. my website is www.RapidModz.com its on the bottom please take a look I really want this fixed please. Link to comment Share on other sites More sharing options...
Rapidmodz Posted March 22, 2009 Author Share Posted March 22, 2009 bump does anyone need any files to look at what i did wrong Link to comment Share on other sites More sharing options...
holydragon Posted March 22, 2009 Share Posted March 22, 2009 bump does anyone need any files to look at what i did wrong I haven't seen the tutorial on creating a custom webpage but the page that is shown has privacy information but is the tutorials.php page. It seems like all you need to do is copy the privacy.php language file, rename it to tutorials.php and change the text to reflect what you want shown on the tutorials.php page. Regards, HD Link to comment Share on other sites More sharing options...
germ Posted March 23, 2009 Share Posted March 23, 2009 The "videos" and "tutorials" links run together because neither are correctly formatted in the HTML. Both are missing the </a> tag! :o If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rapidmodz Posted March 23, 2009 Author Share Posted March 23, 2009 Ok i think i fixed that problem but when i cheaked it It lost its blue color for some reason?? www.rapidmodz.com Link to comment Share on other sites More sharing options...
germ Posted March 23, 2009 Share Posted March 23, 2009 Enclose the link between <span> </span> tags. Just look at the other links in that area of code. ;) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rapidmodz Posted March 23, 2009 Author Share Posted March 23, 2009 Hey i treid but no luck after i get this blue i have another problem to fix after wards im sure your smart enough to tell me how =] Ok here Ill post the link here tell me where to add spans the link for for the Tutorials is In the bottem. ?><a href="<?php echo tep_href_link('account.php')?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a><? } else { ?><a href="<?php echo tep_href_link('create_account.php')?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT?></a><? } ?></span> <span><? if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link('logoff.php')?>"><?php echo HEADER_TITLE_LOGOFF?></a><? } else { ?><a href="<?php echo tep_href_link('login.php')?>"><?php echo HEADER_TITLE_LOGIN?></a><? } ?> <a href="<?php echo tep_href_link('videos.php')?>"><?php echo BOX_HEADING_VIDEOS?></a></span> </span><a href="<?php echo tep_href_link('tutorials.php')?>"><?php echo BOX_HEADING_TUTORIALS?></a><br> </div> Link to comment Share on other sites More sharing options...
germ Posted March 23, 2009 Share Posted March 23, 2009 This part: <a href="<?php echo tep_href_link('tutorials.php')?>"><?php echo BOX_HEADING_TUTORIALS?></a> Should be: <span><a href="<?php echo tep_href_link('tutorials.php')?>"><?php echo BOX_HEADING_TUTORIALS?></a></span> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rapidmodz Posted March 23, 2009 Author Share Posted March 23, 2009 OK now I have different problem Germ Thanks a lot man I appreciate it a lot. Now that we got that settled When I made the custom page I had a issue because it kept redirecting me to privacy policy but i fixed that in filenames i bielive but now when i click it it brings me no where just a blank page hmm Do you need any files to look at ill be happy to show you all of the ones i edited thanks man again. Link to comment Share on other sites More sharing options...
germ Posted March 23, 2009 Share Posted March 23, 2009 This is why you backup files BEFORE you make changes. That way if things "go south" you restore from the backup and start over. <_< The tutorials page used to work. What part of the code in it did you "monkey" with last? :unsure: Post it. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rapidmodz Posted March 23, 2009 Author Share Posted March 23, 2009 well ill just post everything exept the top that i edited FileNames.php define('FILENAME_SHIPPING', 'shipping.php'); define('FILENAME_SHOPPING_CART', 'shopping_cart.php'); define('FILENAME_SPECIALS', 'specials.php'); define('FILENAME_SSL_CHECK', 'ssl_check.php'); define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php'); define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php'); define('FILENAME_Videos', 'Videos.php'); define('FILENAME_TUTORIALS', 'tutorials.php'); ?> English.php // quick_find box text in includes/boxes/quick_find.php define('BOX_HEADING_SEARCH', 'Quick Find'); define('BOX_SEARCH_TEXT', 'Use keywords to find the product you are looking for.'); define('BOX_SEARCH_ADVANCED_SEARCH', 'Advanced Search'); // specials box text in includes/boxes/specials.php define('BOX_HEADING_SPECIALS', 'Specials'); // Videos page box heading define('BOX_HEADING_VIDEOS', 'videos'); // Tutorials page box heading define('BOX_HEADING_TUTORIALS', 'Tutorials'); Tutorials.php <?php /* $Id: tutorials.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_TUTORIALS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_TUTORIALS)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" class="<?php echo MAIN_TABLE; ?>" cellspacing="0" cellpadding="0"> <tr> <td class="<?php echo BOX_WIDTH_TD_LEFT; ?>"><table border="0" class="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td class="<?php echo CONTENT_WIDTH_TD; ?>"><?php echo panel_top(); ?> <?php echo tep_draw_top();?> <?php echo tep_draw_title_top();?> <?php echo HEADING_TITLE; ?> <?php echo tep_draw_title_bottom();?> <?php echo tep_draw1_top();?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_INFORMATION; ?></td> </tr> </table> <?php echo tep_pixel_trans();?> <?php echo tep_draw_infoBox2_top();?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr><td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td></tr> </table> <?php echo tep_draw_infoBox2_bottom();?> <?php echo tep_draw1_bottom();?> <?php echo tep_draw_bottom();?> </td> <!-- body_text_eof //--> <td class="<?php echo BOX_WIDTH_TD_RIGHT; ?>"><table border="0" class="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> tutorials.php(theres 2 of them in diffrent locations.) $Id: Tutorials.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Tutorials'); define('HEADING_TITLE', 'Tutorials'); define('TEXT_INFORMATION', 'Put here your Tutorial information.'); ?> Link to comment Share on other sites More sharing options...
germ Posted March 23, 2009 Share Posted March 23, 2009 [color="#FF0000"][b]<?php /*[/b][/color] $Id: Tutorials.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Tutorials'); define('HEADING_TITLE', 'Tutorials'); define('TEXT_INFORMATION', 'Put here your Tutorial information.'); ?> Those first two lines missing or did you just not get them copy/pasted? :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rapidmodz Posted March 23, 2009 Author Share Posted March 23, 2009 yeah i didn't get them pasted im sorry i just got the main codes Link to comment Share on other sites More sharing options...
Rapidmodz Posted March 23, 2009 Author Share Posted March 23, 2009 do you know anything what wrong i mean. Link to comment Share on other sites More sharing options...
germ Posted March 23, 2009 Share Posted March 23, 2009 I'm not seeing the error. In /includes/application_top.php find this code: // set the level of error reporting error_reporting(E_ALL & ~E_NOTICE); Change it to: // set the level of error reporting // error_reporting(E_ALL & ~E_NOTICE); error_reporting(E_ALL | E_STRICT); See if you can get the site to spit out an error message to help. BACKUP THE FILE BEFORE EDITING IT. You break this one and you're on your own. :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rapidmodz Posted March 24, 2009 Author Share Posted March 24, 2009 hey his is what I did. // set the level of error reporting // error_reporting(E_ALL & ~E_NOTICE); error_reporting(E_ALL | E_STRICT); hmm i cheaked the page it still loaded fine i clicked tutorials still same thing also is there any way to just make this tutorial page or tell me what to do because my deadline is ths weekend and I mean i wouldnt mind you telling me how to make another way. also theres no error its just showing a blank page i dont know what to do? Link to comment Share on other sites More sharing options...
germ Posted March 24, 2009 Share Posted March 24, 2009 I tested that error level on my site and I got tons of errors I don't see without it. Without an error message to light the way I don't know what to say except start over and hope you don't make the same mistake again. Or take the "videos" page(s) (which work) and copy them and make tutorials pages out of them. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rapidmodz Posted March 24, 2009 Author Share Posted March 24, 2009 well if i took the video page where would the video page go i dont know what to do or where to start to make the new page Link to comment Share on other sites More sharing options...
Rapidmodz Posted March 24, 2009 Author Share Posted March 24, 2009 okay I know whats fu**ing going on Im really mad I made a complete new custom page with a diffrent name it worked perfect so i finially got happy so i went to rename everything to tutorials then what do you know i clikc on it and the blank page pops up. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.