markoKG Posted March 28, 2013 Posted March 28, 2013 Hello everybody, I found very similar topics but couldn't solve my problems. My domain is deafjams.net and I am currently working on the site there. I want to add "About" and "Career" between "Search" and "Create an Account". Also, I used shipping.php to create career.php and about.php because shipping.php is the exact layout I need for these new pages. I added two lines inside of /catalog/include/header.php <li><a <?php echo $item_menu_09;?> onclick="document.location='<?php echo tep_href_link('advanced_search.php')?>'"><?php echo Search?></a></li> <li><a <?php echo $item_menu_10;?> onclick="document.location='<?php echo tep_href_link('shipping.php')?>'"><?php echo Shipping?></a></li> <li><a <?php echo $item_menu_10;?> onclick="document.location='<?php echo tep_href_link('career.php')?>'"><?php echo Career?></a></li> <li><a <?php echo $item_menu_10;?> onclick="document.location='<?php echo tep_href_link('about.php')?>'"><?php echo About?></a></li> So you can go to deafjams.net and it seems to work. Then I opened shipping.php, addited, and pointed to the career.php and about, respectively. It looks like this: require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CAREER); //this should be the name in the bar of career.php page $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CAREER)); //this should be a link ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <?php require(DIR_WS_INCLUDES . 'header_includes.php'); ?> So, this doesn't work. I am sure that the problem are the links or names.. I am using osCommerce 2.2 rc2 Can anyone help?
♥14steve14 Posted March 29, 2013 Posted March 29, 2013 Have you added the new files in your includes/filemanes.php file REMEMBER BACKUP, BACKUP AND BACKUP
markoKG Posted March 29, 2013 Author Posted March 29, 2013 Yes I did it. I forgot to say that. define('FILENAME_ABOUT', 'about.php'); define('FILENAME_CAREER', 'career.php'); I do not see any problem and still doesn't work.
Guest Posted April 2, 2013 Posted April 2, 2013 @@markoKG You can't use this CSS class for all 3 items: <li><a <?php echo $item_menu_10;?> You have not defined the new pages correctly in the filesnames.php and you have not added the text definition in the english.php Chris
Guest Posted April 2, 2013 Posted April 2, 2013 @@markoKG Also, you are using an outdated (template) version of osCommerce that HAS NOT BEEN SECURED. The site WILL BE HACKED if you do not secure it properly. Chris
Recommended Posts
Archived
This topic is now archived and is closed to further replies.