Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Still Linking Problems Used AddBox from osc help


Guest

Recommended Posts

Posted

Someone please examine the lines below for any error I haven't been able to find 'though I've looked and tried changing everything, for hours and hours, I have copied to the best of my knowledge, Exactly the instructions on the oscommerce help site called AddBox. I have eliminated some spaces as a last resort but still doesn't work. Dread HTTP 404 Page Not Found. Site is here and a long way from completed. http://ushopat.netfirms.com/ushop4/nfoscomm/catalog/

 

Catalog/about.us

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES.$language.'/'.FILENAME_ABOUT_US);

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US));

 

catalog/includes/filenames.php

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

?>

catalog/includes/languages.english.php

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

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

 

catalog/includes/languages/english/about_us.php

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

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

 

catalog/includes/boxes/information.php

'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>');

Posted
Someone please examine the lines below for any error I haven't been able to find 'though I've looked and tried changing everything, for hours and hours, I have copied to the best of my knowledge, Exactly the instructions on the oscommerce help site called AddBox. I have eliminated some spaces as a last resort but still doesn't work. Dread HTTP 404 Page Not Found. Site is here and a long way from completed. http://ushopat.netfirms.com/ushop4/nfoscomm/catalog/

 

Catalog/about.us

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES.$language.'/'.FILENAME_ABOUT_US);

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US));

 

catalog/includes/filenames.php

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

?>

catalog/includes/languages.english.php

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

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

 

catalog/includes/languages/english/about_us.php

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

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

 

catalog/includes/boxes/information.php

'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>');

Hi take a look at this contribution

If your wanting to add a new page and page link through the informations box.

http://www.oscommerce.com/community/contri...+page+made+easy

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Posted
Hi take a look at this contribution

If your wanting to add a new page and page link through the informations box.

http://www.oscommerce.com/community/contri...+page+made+easy

 

Thanks for the reply, appreciate it. "Page Made Easy" looks simple enough but after three clean installs I get

 

Parse error: parse error, unexpected ';', expecting ')' in /mnt/web_k/d20/s13/a000j1zd/www/ushop4/nfoscomm/catalog/includes/boxes/information.php on line 29

 

just realized I should be able to fix this error, would have cancelled post for now if I knew how.

 

Jim

Posted

Post your full information.php file here please

Posted
Thanks for the reply, appreciate it. "Page Made Easy" looks simple enough. I imagine that this would work for other links by making a few changes. The most important link I need is "About Us". I have installed Page made easy and it does work.

Any newbe like me and not familiar with the language of Pearl beware, if you install the new link as the last line, be sure you conform to the closing characters in the last line you are replacing.

 

Right>>> BOX_INFORMATION_LINKS . '</a>'); Wrong>> BOX_INFORMATION_LINKS . '</a><br>' .

 

Thanks again and I'll try and get it to work for about.us

 

 

Jim

Posted
Post your full information.php file here please

Thanks for the reply

 

<?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .

..........................................'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>');

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

 

Jim

Archived

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

×
×
  • Create New...