Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Dynamic SiteMap


Jack_mcs

Recommended Posts

Your problem is that you have
//require('includes/application_top.php');

That file is required for proper operation. You need to change it to

require('includes/application_top.php');

 

Jack

 

ok, i uncommented the application top but now i get this

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/includes/boxes/categories.php:13) in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/includes/boxes/categories.php on line 13

 

 

page link

Link to comment
Share on other sites

Sounds like you are using a template that hacked up the code and someone tried to fix the generated error by commenting out that line. If that is the case, you will find instances of tep_show_category in your includes/header.php file. Rename all of those to something else, say my_tep_show_category, and you should be OK.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Sounds like you are using a template that hacked up the code and someone tried to fix the generated error by commenting out that line. If that is the case, you will find instances of tep_show_category in your includes/header.php file. Rename all of those to something else, say my_tep_show_category, and you should be OK.

 

Jack

 

really eh, man, that hurts, like i said, i am in here to finish up someone elses work.

 

ok, so go into the main catalog files, and find any instance of tep_show_category and change it to read

my_tep_show_category

 

now do i change the one in the header or leave that as tep_show_category? i am assuming i leave the one in the header alone?

Link to comment
Share on other sites

I meant no offense - it was just a statement. But if you re-read my post, I said to change the names in includes/header.php, nothing else.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I meant no offense - it was just a statement. But if you re-read my post, I said to change the names in includes/header.php, nothing else.

 

Jack

 

 

no no my friend, one thing about typing, it doesnt pass emotion. when i said'oh man, really? that hurts'

i meant, that going through all of the files will be painful.

I am sorry for the misunderstanding, you have been nothing but helpful so I am sorry if my post came accross the wrong way

 

:( :D

Link to comment
Share on other sites

NP. :) Yes, there will be at least two instances of it in that file, if that is the problem. Change all there is.

 

Jack

 

alrighty, i am putting on my snorkle and i am gonna jump in and give it a shot. I will let ya know how it go's.

again thank you for your help and i shall speak to ya soon :D

Link to comment
Share on other sites

would you happen to have any advil???

 

i looked in my header file, but i cant find anything

<?
// check if the 'install' directory exists, and warn of its existence
 if (WARN_INSTALL_EXISTENCE == 'true') {
if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
  tep_output_warning(WARNING_INSTALL_DIRECTORY_EXISTS);
}
 }

// check if the configure.php file is writeable
 if (WARN_CONFIG_WRITEABLE == 'true') {
if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
  tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE);
}
 }

// check if the session folder is writeable
 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
if (STORE_SESSIONS == '') {
  if (!is_dir(tep_session_save_path())) {
	tep_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT);
  } elseif (!is_writeable(tep_session_save_path())) {
	tep_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);
  }
}
 }

// check session.auto_start is disabled
 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
if (ini_get('session.auto_start') == '1') {
  tep_output_warning(WARNING_SESSION_AUTO_START);
}
 }

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
if (!is_dir(DIR_FS_DOWNLOAD)) {
  tep_output_warning(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT);
}
 }
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
<td width="263"><img src="header_r1_c1.gif" width="263" height="127" border="0" alt="NW Coin Co Ltd"></td>
<td width="237" valign="bottom"><img src="header_r2_c2.jpg" width="237" height="59" border="0"></td>
<td width="100%" align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') . '">' . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '">' . '</a>'; ?>  </td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="headerNavigation">
<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>
<td align="right" class="headerNavigation">
<?
$url1 = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
?>

<?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>
 </tr>
</table>
<?php
 if ($HTTP_GET_VARS['error_message'] != '') {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
<td class="headerError"><?php echo urldecode($HTTP_GET_VARS['error_message']); ?></td>
 </tr>
</table>
<?php
 }

 if ($HTTP_GET_VARS['info_message'] != '') {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerInfo">
<td class="headerInfo"><?php echo $HTTP_GET_VARS['info_message']; ?></td>
 </tr>
</table>
<?php
 }
?>

<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top">

Link to comment
Share on other sites

ok, i put up the back up file from the original osc zip file (added the images)

<?php
/*
 $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// check if the 'install' directory exists, and warn of its existence
 if (WARN_INSTALL_EXISTENCE == 'true') {
if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
  $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
}
 }

// check if the configure.php file is writeable
 if (WARN_CONFIG_WRITEABLE == 'true') {
if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
  $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
}
 }

// check if the session folder is writeable
 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
if (STORE_SESSIONS == '') {
  if (!is_dir(tep_session_save_path())) {
	$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
  } elseif (!is_writeable(tep_session_save_path())) {
	$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
  }
}
 }

// check session.auto_start is disabled
 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
if (ini_get('session.auto_start') == '1') {
  $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
}
 }

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
if (!is_dir(DIR_FS_DOWNLOAD)) {
  $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
}
 }

 if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
 }
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
<td width="263"><img src="header_r1_c1.gif" width="263" height="127" border="0" alt="NW Coin Co Ltd"></td>
<td width="237" valign="bottom"><img src="header_r2_c2.jpg" width="237" height="59" border="0"></td>
<td width="100%" align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') . '">' . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '">' . '</a>'; ?>  </td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="headerNavigation">
<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>
<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>
 </tr>
</table>
<?php
 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
<td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
 </tr>
</table>
<?php
 }

 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerInfo">
<td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>
 </tr>
</table>
<?php
 }
?>

 

now, the site map page comes up, but now all the other pages are misformattied

 

i lose the left column and the right one gos to the bottom of the page

 

http://www.nwcoin.com/catalog/ancient-coins-c-63.html

Link to comment
Share on other sites

well, you are right Jack, this template is a mess. They have removed the column left code from all of the pages and put it in the header, so at the bottom of their header they have..

 

<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top">

 

so i have to go through all of the pages and put the code back in and take it out of the header.

I would like to thank you for all of your time and help on this matter. I am sure we will cross paths again soon, here at OSC

 

:D

Link to comment
Share on other sites

Thanks for your help, you were right about removing the line (back on page 8) . I now have a dynamic map that works but I do have a lot of dross down the right hand side of the map, does anyone know how to edit this so that I can ensure only the good stuff is listed, I don't need to list things like'Password recovery' etc.

 

http://www.honeybeetoys.co.uk/dynamic_sitemap.php

Edited by cmjennings21
Link to comment
Share on other sites

Thanks for your help, you were right about removing the line (back on page 8) . I now have a dynamic map that works but I do have a lot of dross down the right hand side of the map, does anyone know how to edit this so that I can ensure only the good stuff is listed, I don't need to list things like'Password recovery' etc.

 

http://www.honeybeetoys.co.uk/dynamic_sitemap.php

 

I am sorry to say, i dont know how to fix it, but i wanted to post to you to say, i really like your little bee in the header :D

Link to comment
Share on other sites

Thanks for your help, you were right about removing the line (back on page 8) . I now have a dynamic map that works but I do have a lot of dross down the right hand side of the map, does anyone know how to edit this so that I can ensure only the good stuff is listed, I don't need to list things like'Password recovery' etc.

 

http://www.honeybeetoys.co.uk/dynamic_sitemap.php

You need to exclude those files. mouse over the link to get the real page name. Then go into includes/modules/dynamic_sitemap.php and add the file to the list near the bottom. Just copy/paste one of the existing lines to make a new entry and then change the file name to the one you want to exclude.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

You need to exclude those files. mouse over the link to get the real page name. Then go into includes/modules/dynamic_sitemap.php and add the file to the list near the bottom. Just copy/paste one of the existing lines to make a new entry and then change the file name to the one you want to exclude.

 

Jack

 

You are an absolute STAR. Thank you for a great contribution and fantastic support :D

Link to comment
Share on other sites

Hi

I have read all of this thread, but am not 100% sure what to do next?

This is my right hand column.

 

My Account Information

My Account Information

My Order History

Order Information

Newsletter Subscriptions

Product Notifications

My Password

My Personal Address Book

New Address Book Entry

Advanced Search

Order Confirmation

Payment Information

Payment Information

Delivery Information

Your Order Has Been Processed!

Delivery Information

Conditions of Use

Contact Us

Cookie Usage

My Account Information

 

Visitors Cart / Members Cart

Welcome, Please Sign In

Log Off

I

Privacy Notice

%s Reviews

New Products

Read What Others Are Saying

Postage,Packaging & Returns

What

Get Them While They

Security Check

Tell A Friend About

Frequently Asked Questions

Site Map

Information

Shipping & Returns

Privacy Notice

Conditions of Use

 

 

 

Error!

 

Unable to determine the page link!

 

Under "Conditions of Use" should be ""FAQ" & "Site map" FAQ is an added page so that is causing the error. What I don't understand is these two pages are listed above "Information"

I think I need the information box to be in my site map so assume I don't want to exclude it? How do I solve this to show the information box?

 

I also am inexperienced to know which pages on the right column are necessary for my site map to work effectively.

 

Thanks

Julie

Link to comment
Share on other sites

Hi

Is there something wrong here, as I think it is the FAQ that is tripping it up?

 

 $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_FAQ) . '">' . BOX_INFORMATION_FAQ . '</a><br>' . 
									 '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>'.
									 '<a href="' . tep_href_link
(FILENAME_DYNAMIC_SITEMAP) . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

 

Thanks

Julie

Link to comment
Share on other sites

Hi

I have read all of this thread, but am not 100% sure what to do next?

This is my right hand column.

Under "Conditions of Use" should be ""FAQ" & "Site map" FAQ is an added page so that is causing the error. What I don't understand is these two pages are listed above "Information"

I think I need the information box to be in my site map so assume I don't want to exclude it? How do I solve this to show the information box?

 

I also am inexperienced to know which pages on the right column are necessary for my site map to work effectively.

 

Thanks

Julie

The right column lists pages that are in your root and infoboxes. That is probably why you are seeing duplicates. The box is failing because the code for that line is not something dynamic_sitemap can understand. You can exclude the whole box, remove that one line from the box (but then it won't show in the box) or edit the line of code so that it matches the other lines in the box. For example, some people add lines to the box that had FILENAME..., '', 'NONSSL', or something like that. Everything after the filename is not necessary (yp to the closing ) ). You can compare it to the others to see what I mean. Changing that will probably fix your problem.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi

Is there something wrong here, as I think it is the FAQ that is tripping it up?

 

 $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_FAQ) . '">' . BOX_INFORMATION_FAQ . '</a><br>' . 
									 '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>'.
									 '<a href="' . tep_href_link
(FILENAME_DYNAMIC_SITEMAP) . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

 

Thanks

Julie

It looks OK. To isolate the problem, try deleting a line or two to find which one is causing the error. Then put it back in and replace the FILENAME... part with one from a working line. If that works, replace the BOX... part with one from the working line. At that point you should have two lines that are the same so the error should not be there. Once you find the part that is causing the error, it is easier to find the solution.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

It looks OK. To isolate the problem, try deleting a line or two to find which one is causing the error. Then put it back in and replace the FILENAME... part with one from a working line. If that works, replace the BOX... part with one from the working line. At that point you should have two lines that are the same so the error should not be there. Once you find the part that is causing the error, it is easier to find the solution.

 

Jack

Hi Jack

 

I have tried that, & I still can't get rid of the error. I replaced the FILENAME & then the BOX name, of the FAQ line, with CONTACT_US, which I assume is working as I can see it in the correct place in the site map.

 

The only two added pages are FAQ & Site map. Even deleting the FAQ line I still get:

 

Information

Shipping & Returns

Privacy Notice

Conditions of Use

Contact Us

 

With the error after this. I can't remove the site map line or I won't be able to see the page at all. Is it definetly something to do with this line?

 

I checked that I had the page defined in the catalog/includes/filenames.php as another had commented about.

 

Does the order matter? Should my site map go after contact us as per instructions, as I put mine after FAQ, making the site map link the last? Don't think it does but worth a mention.

 

I'm getting confused to how to find the fault? Any further advise please?

:(

 

Thanks

Julie

Link to comment
Share on other sites

Right. I have just moved the FAQ line above the Contact Us line, & the Contact Us didn't show.

That means it is defineately the FAQ line, but I don't know what to do next to rectify this.

 

$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_FAQ) . '">' . BOX_INFORMATION_FAQ. '</a><br>' . 
									 '<a href="' . tep_href_link
(FILENAME_DYNAMIC_SITEMAP) . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

 

This looks like any others posted. I've changed FILENAME, BOX again. Looked in filenames.php,information.php & english.php but can't see anything obvious.

 

I am trying, but would really appreciate any help here.

 

Searching other site maps, some leave all the right hand column as is, & others remove certain ones. Any tips on what I should leave or take out. I'm thinking just leave the information pages & take out the rest?

 

Thanks for looking at this for me.

 

Julie

Link to comment
Share on other sites

It appears that one line has some embedded (unseen) characters that is causing the problem. I tried it here and it failed to. I then redid it with a new line and it worked. Try replacing your code with this:

$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_PRIVACY) . '">' . BOX_INFORMATION_FAQ. '</a><br>'.
'<a href="' . tep_href_link(FILENAME_DYNAMIC_SITEMAP) . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

It appears that one line has some embedded (unseen) characters that is causing the problem. I tried it here and it failed to. I then redid it with a new line and it worked. Try replacing your code with this:
$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_PRIVACY) . '">' . BOX_INFORMATION_FAQ. '</a><br>'.
'<a href="' . tep_href_link(FILENAME_DYNAMIC_SITEMAP) . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

 

Jack

Yes!

I copied & pasted exactly what you wrote & I can now see a correct site map:

Information

Shipping & Returns

Privacy Notice

Conditions of Use

Contact Us

Frequently asked questions

Site Map

 

My "Frequently asked questions" page goes to the "privicy" page though. Do I change the FILENAME_PRIVACY in that line to FILENAME_FAQ, or will that get me back to square one?

 

I have been taring my hair out all day trying to understand this, so thank you for looking into this for me further.

 

Julie

Link to comment
Share on other sites

Yes, I was using that for testing. Just change it to what it should be.

 

Jack

Thank you Jack. Lucky for me you can see hidden stuff. I never knew that was even possible. I have changed the PRIVACY to FAQ & it goes to the page OK now.

 

Do you, or anyone else, have any advise on which pages I need to keep from my right column? I don't know what the search engines look for, but from reading posts I assume they like pages with relevant text in. Pages like password & address are not necessary then?

Any tips would be gratefully received.

 

Just to add this is a great & easy to install contribution. The support for any errors that might appear is great, as can be seen by reading this thread.

 

Julie

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...