Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add New Page Help


ian_m

Recommended Posts

Posted

I have tried to follow burts advise here http://www.oscommerce.com/forums/index.php?sho...20page&st=0

 

I have created the new pages given them 777 permissions but when I add this

// New page ABOUT_US.php

PHP define('FILENAME_ABOUT_US', 'ABOUT_US.php');

 

 

?>

to application_top.php

 

I get this error

 

 

Parse error: syntax error, unexpected T_STRING in /home/racermx/public_html/shop/includes/application_top.php on line 510

 

OSC is in a directory called shopso i tried doing this

PHP define('FILENAME_ABOUT_US', 'shop/ABOUT_US.php');

 

but no luck, can anyone see where I am going wrong, I can see this page fine in the tools/admin/define languages option.

 

Cheers

Ian

Posted

Be aware that you are following the instruction for an old version of OSC (2.1)

 

In OSC 2.2 that line should be added to Includes/filenames.php file

 

define('FILENAME_ABOUT_US', 'about_us.php');

 

where about_us.php is the exact name of the file

Posted
Be aware that you are following the instruction for an old version of OSC (2.1)

 

Qihun,

 

Thanks very much for that, yes all working a treat now :thumbsup:

 

Regards

 

Ian

Posted

oh no i said it was all fine before I actaully clicked the link so by saying that I have kind of shot myself in the foot.

 

Ok when I ckick the new link i gat the apache 404 internal server error, both the pages exist in the right case in the correct directories the link points to the page location the same as all the existing links and yet something is not right.

 

Anyone have any ideas where I have gone wrong this time.

 

cheers Ian

Posted

OK as far as I can tell burts method is all fine apart from instead of opening application_top.php that code now goes into filenames.php instead. If that is correct does anyone know what would cause a file not found error 404, I can see the new page on the server and when looking at it in the filemanager i can see it no problem and this is the code I see on it

 

<?php

/*

$Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'About Us');

define('HEADING_TITLE', 'About Us');

 

define('TEXT_INFORMATION', 'INFORMATION COMING VERY SOON.');

?>

 

The other file in the main directory has just had the 2 lines changed as per Burts instuctions and renamed from conditions.php to about_us.php

 

Anyone have any ideas what I may have done wrong.

 

Regards

 

Ian

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...