Jump to content



Latest News: (loading..)

* * * * * 1 votes

Dynamic SiteMap


  • Please log in to reply
843 replies to this topic

#1   Jack_mcs

Jack_mcs
  • Members
  • 25,367 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 29 June 2005 - 01:36 AM

This is the support thread for the Dynamic SiteMap contribution. Based on the SiteMap MS2 contribution, it allows the full shop to be automatically listed and updated dynamically.

Jack

#2   pnkranger

pnkranger
  • Members
  • 74 posts
  • Real Name:Nicholas Key

Posted 29 June 2005 - 05:28 AM

Jack_mcs, on Jun 28 2005, 08:36 PM, said:

This is the support thread for the Dynamic SiteMap contribution. Based on the SiteMap MS2 contribution, it allows the full shop to be automatically listed and updated dynamically.

Jack

<{POST_SNAPBACK}>


Jack, are you saying that if I currently use SiteMap MS2, I can add this contribution and it will work correctly?

#3   wheeloftime

wheeloftime
  • Members
  • 2,338 posts
  • Real Name:Howard
  • Gender:Male
  • Location:Universe

Posted 29 June 2005 - 08:47 AM

Hi Jack,

Thanks for this contribution ! I did not have something as a sitemap in my shop yet and when I found yours this morning I thought it a good time to work on it rightaway.
I just installed it but (yes, there it is) I get a whole bunch of
Warning: strpos(): Empty delimiter. in /home/httpd/vhosts/wheeloftime.nl/httpdocs/osctest/includes/functions/dynamic_sitemap.php on line 35
at the top of my page.
After that I do see the sitemap but in the right column it all says things like

Quote

# About_us
# Account
# Account_edit
# Account_history
# Account_history_info
# Account_newsletters
etc.
Then at the end I find
Error!

Unable to determine the page link!
The only thing I can add right now is that the links in my information box are being repeated for a second time in the right column of the sitemap page. The second occurence is only partly as there seems to be the break.

I hope you can give me a clue where to look for !

Thanks,
Howard

#4   Jack_mcs

Jack_mcs
  • Members
  • 25,367 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 29 June 2005 - 12:18 PM

pnkranger, on Jun 29 2005, 01:28 AM, said:

Jack, are you saying that if I currently use SiteMap MS2, I can add this contribution and it will work correctly?

<{POST_SNAPBACK}>

You could instal them both if you renamed the link one of them adds to the information box but that is not a good idea since you would have two sitemap pages.

Jack

#5   Jack_mcs

Jack_mcs
  • Members
  • 25,367 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 29 June 2005 - 01:56 PM

wheeloftime, on Jun 29 2005, 04:47 AM, said:

Hi Jack,

Thanks for this contribution ! I did not have something as a sitemap in my shop yet and when I found yours this morning I thought it a good time to work on it rightaway.
I just installed it but (yes, there it is) I get a whole bunch of
Warning: strpos(): Empty delimiter. in /home/httpd/vhosts/wheeloftime.nl/httpdocs/osctest/includes/functions/dynamic_sitemap.php on line 35
at the top of my page.
After that I do see the sitemap but in the right column it all says things like

Then at the end I find
Error!

Unable to determine the page link!
The only thing I can add right now is that the links in my information box are being repeated for a second time in the right column of the sitemap page. The second occurence is only partly as there seems to be the break.

I hope you can give me a clue where to look for !

Thanks,
Howard

<{POST_SNAPBACK}>

Some of the infoboxes should not be added to the sitemap and are automatically excluded by the code. But I built this on a standard shop so it cannot account for each setup. I have uploaded a changed version. Just copy the includes/modules/dynamic_sitemap.php file to your site. It will still fail but should give an error message at the top of the window indicating which infobox is causing the problem. You will then need to add that to the list of known boxes in that same file. That should eliminate the errors.

Jack

#6   wheeloftime

wheeloftime
  • Members
  • 2,338 posts
  • Real Name:Howard
  • Gender:Male
  • Location:Universe

Posted 29 June 2005 - 02:13 PM

Jack_mcs, on Jun 29 2005, 02:56 PM, said:

Some of the infoboxes should not be added to the sitemap and are automatically excluded by the code. But I built this on a standard shop so it cannot account for each setup. I have uploaded a changed version. Just copy the includes/modules/dynamic_sitemap.php file to your site. It will still fail but should give an error message at the top of the window indicating which infobox is causing the problem. You will then need to add that to the list of known boxes in that same file. That should eliminate the errors.

Jack

<{POST_SNAPBACK}>


Many thanks Jack ! I will get and try it immediately and let you know the outcome.

#7   esperos

esperos
  • Members
  • 40 posts
  • Real Name:Nicholas
  • Location:Middlesex, UK

Posted 29 June 2005 - 02:39 PM

Jack,

I installed the contribution just now and, clicking in the Site Map entry in the Information Box, I get the following message

Warning: strpos(): Empty delimiter. in /home/paradin/public_html/includes/functions/dynamic_sitemap.php on line 35

repeated a large number of times, presumably once for every product (although I haven't counted), followed by the SiteMap page (with Column_right which has disappeared), followed by  "Error! Unable to determine the page link".

If you try the following link, you'll se what I mean

my shop

Nick

#8   wheeloftime

wheeloftime
  • Members
  • 2,338 posts
  • Real Name:Howard
  • Gender:Male
  • Location:Universe

Posted 29 June 2005 - 02:56 PM

esperos, on Jun 29 2005, 03:39 PM, said:

Jack,

I installed the contribution just now and, clicking in the Site Map entry in the Information Box, I get the following message

Warning: strpos(): Empty delimiter. in /home/paradin/public_html/includes/functions/dynamic_sitemap.php on line 35

repeated a large number of times, presumably once for every product (although I haven't counted), followed by the SiteMap page (with Column_right which has disappeared), followed by  "Error! Unable to determine the page link".

If you try the following link, you'll se what I mean

my shop

Nick

<{POST_SNAPBACK}>


@Nick:
Read above, I had a similar problem ! There is new version at the contribution section which helps solving this problem.

@Jack:
Although it didn't show me the name of the culprit infoboxes they were down to two and I figured them out by adding those I have extra one by one until resolved !
One thing stays:

Quote

Error!

Unable to determine the page link!
at the end of the page where it should list all links in my information box.
It goes until

Quote

# Information

    * Over Wheel of Time
    * Verzenden & Retourneren
    * Privacy verklaring
    * Algemene Voorwaarden
    * Neem contact op
    * Site Overzicht
    * Waar vindt u ons ?
    * WoTs FAQ
but I have three more links in there of which I assume one gives the error ?
After WoTs FAQ I have a <hr> tag (removed that to try if that caused the error but that didn't make any difference) followed by a link to my guestbook, ebay link and a Links link.
The link to my guestbook works and shows alright in between the links above the informatonbox section of the sitemap but it looks like it breaks the sitemap output.
Not sure though if that has anything to do with it ?!

Edited by wheeloftime, 29 June 2005 - 02:57 PM.


#9   esperos

esperos
  • Members
  • 40 posts
  • Real Name:Nicholas
  • Location:Middlesex, UK

Posted 29 June 2005 - 03:12 PM

Thanks Howard! I made the change, but I still get these three errors at the top of the page:

Invalid code for this module found in the following infobox: Pages
Invalid code for this module found in the following infobox:
Invalid code for this module found in the following infobox: Heading

The funny thing is that I don't have any infoboxes with the names of "Pages" or "Heading". Do these errors point to something elase? And what can be the meaning of the second error message?

I also get an incomplete "Information" sitemap, beginning with "About us" and missing everything else.

Nick

#10   wheeloftime

wheeloftime
  • Members
  • 2,338 posts
  • Real Name:Howard
  • Gender:Male
  • Location:Universe

Posted 29 June 2005 - 03:33 PM

esperos, on Jun 29 2005, 04:12 PM, said:

Thanks Howard! I made the change, but I still get these three errors at the top of the page:

Invalid code for this module found in the following infobox: Pages
Invalid code for this module found in the following infobox:
Invalid code for this module found in the following infobox: Heading

The funny thing is that I don't have any infoboxes with the names of "Pages" or "Heading". Do these errors point to something elase? And what can be the meaning of the second error message?

I also get an incomplete "Information" sitemap, beginning with "About us" and missing everything else.

Nick

<{POST_SNAPBACK}>


It seems we are encountering the same things...
I solved the infobox problem by adding my out of the ordinary infoboxes at the exception list you will find within the file catalog/includes/modules/dynamic_sitemap.php.
The names to add you have to pick from the php names you will find inside the boxes directory.
The incomplete Information sitemap part is still a puzzle for me also although I see most of them except the last three.

#11   esperos

esperos
  • Members
  • 40 posts
  • Real Name:Nicholas
  • Location:Middlesex, UK

Posted 29 June 2005 - 07:48 PM

Howard,

Did you pull the contribution? I cannot find a sitemap on your site.

Nick

#12   wheeloftime

wheeloftime
  • Members
  • 2,338 posts
  • Real Name:Howard
  • Gender:Male
  • Location:Universe

Posted 29 June 2005 - 08:05 PM

esperos, on Jun 29 2005, 08:48 PM, said:

Howard,

Did you pull the contribution? I cannot find a sitemap on your site.

Nick

<{POST_SNAPBACK}>


It's on my test shop. I'll PM you the address.

#13   Jack_mcs

Jack_mcs
  • Members
  • 25,367 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 29 June 2005 - 08:15 PM

wheeloftime, on Jun 29 2005, 10:56 AM, said:

@Nick:
Read above, I had a similar problem ! There is new version at the contribution section which helps solving this problem.

@Jack:
Although it didn't show me the name of the culprit infoboxes they were down to two and I figured them out by adding those I have extra one by one until resolved !
One thing stays:

at the end of the page where it should list all links in my information box.
It goes until

but I have three more links in there of which I assume one gives the error ?
After WoTs FAQ I have a <hr> tag (removed that to try if that caused the error but that didn't make any difference) followed by a link to my guestbook, ebay link and a Links link.
The link to my guestbook works and shows alright in between the links above the informatonbox section of the sitemap but it looks like it breaks the sitemap output.
Not sure though if that has anything to do with it ?!

<{POST_SNAPBACK}>

The "Unable to determine the page link!" is coming becuase it is reading some link that is confusing it. It could be that the code used in your information boxes is different somehow than what I am testing for. If you will post the section of the information box that has the links in it, I will try it on my setup.

Jack

#14   OnlineHelp

OnlineHelp
  • Members
  • 52 posts
  • Real Name:Sachin
  • Location:California

Posted 29 June 2005 - 08:35 PM

I just installed the sitemap and get this error message:

"Error!

Unable to determine the page link!"

Anyone know how to get rid of that?

#15   PandA.nl

PandA.nl
  • Members
  • 323 posts
  • Real Name:Paul
  • Location:Haarlem, Netherlands

Posted 29 June 2005 - 08:43 PM

OnlineHelp, on Jun 29 2005, 10:35 PM, said:

I just installed the sitemap and get this error message:

"Error!

Unable to determine the page link!"

Anyone know how to get rid of that?

<{POST_SNAPBACK}>

tip: read a thread before you post to it  :-"
Please do not PM me for support, I will not respond anyway.

#16   esperos

esperos
  • Members
  • 40 posts
  • Real Name:Nicholas
  • Location:Middlesex, UK

Posted 29 June 2005 - 09:23 PM

@ Jack,

I hope the code I am attaching, from the catalog/includes/boxes/information.php is what you want to see. Please let me know if that is not the casae.

  $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US .
                                         '</a><br>' .'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</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_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_DYNAMIC_SITEMAP) . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

  new infoBox($info_box_contents);

@ Howard,

I think that the right-hand column of entries in your Site map are pages which you may want to remove by adding them to the 2nd exclusion list in the catalog/includes/modules. I have removed mine in that way.

Nick

#17   wheeloftime

wheeloftime
  • Members
  • 2,338 posts
  • Real Name:Howard
  • Gender:Male
  • Location:Universe

Posted 29 June 2005 - 09:28 PM

Jack_mcs, on Jun 29 2005, 09:15 PM, said:

The "Unable to determine the page link!" is coming becuase it is reading some link that is confusing it. It could be that the code used in your information boxes is different somehow than what I am testing for. If you will post the section of the information box that has the links in it, I will try it on my setup.

Jack

<{POST_SNAPBACK}>


Jack,

The following I have in my information box:
  $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT . '</a><br>' .
                                         '<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_DYNAMIC_SITEMAP) . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a><br>' .
                                         '<a href="' . tep_href_link(FILENAME_FIND_US) . '">' . BOX_INFORMATION_FIND . '</a><br>' .
                                         '<a href="' . tep_href_link(FILENAME_MY_POINTS_HELP) . '">' . BOX_INFORMATION_MY_POINTS_HELP . '</a><br>' . //Points/Rewards module v1.10
                                         '<hr><a href="' . tep_href_link(FILENAME_GUESTBOOK) . '">' . BOX_INFORMATION_GUESTBOOK . '</a><br>' .
                                         '<a href="' . tep_href_link(FILENAME_EBAY) . '">' . BOX_INFORMATION_EBAY . '</a><br>' .
                                         '<a href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a>');
It seems to break after BOX_INFORMATION_MY_POINTS_HELP although everything displays normally within the infobox itself.

#18   wheeloftime

wheeloftime
  • Members
  • 2,338 posts
  • Real Name:Howard
  • Gender:Male
  • Location:Universe

Posted 29 June 2005 - 09:32 PM

esperos, on Jun 29 2005, 10:23 PM, said:

@ Howard,

I think that the right-hand column of entries in your Site map are pages which you may want to remove by adding them to the 2nd exclusion list in the catalog/includes/modules. I have removed mine in that way.

Nick

<{POST_SNAPBACK}>


Nick,

Yes, I already took a couple of them out but I wanted to wait with the rest until the information thingie is working. There seems to be a whole lot which can go out.

Howard

#19   Jack_mcs

Jack_mcs
  • Members
  • 25,367 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 29 June 2005 - 11:48 PM

For both of the above problems, it is caused by the leading characters in the string.

Howard - Change this code
 '<a href="' . tep_href_link(FILENAME_MY_POINTS_HELP) . '">' . BOX_INFORMATION_MY_POINTS_HELP . '</a><br>' . //Points/Rewards module v1.10
                                        '<hr><a href="' . tep_href_link(FILENAME_GUESTBOOK) . '">' . BOX_INFORMATION_GUESTBOOK . '</a><br>' .
to this
 '<a href="' . tep_href_link(FILENAME_MY_POINTS_HELP) . '">' . BOX_INFORMATION_MY_POINTS_HELP . '</a><br><hr>' . //Points/Rewards module v1.10
                                        '<a href="' . tep_href_link(FILENAME_GUESTBOOK) . '">' . BOX_INFORMATION_GUESTBOOK . '</a><br>' .

Nicholas - Change this code
 $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US .
                                        '</a><br>' .'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .
to
 $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .
I made those changes after adding your code and it worked.

Jack

Edited by Jack_mcs, 29 June 2005 - 11:49 PM.


#20   wheeloftime

wheeloftime
  • Members
  • 2,338 posts
  • Real Name:Howard
  • Gender:Male
  • Location:Universe

Posted 30 June 2005 - 05:47 AM

Jack_mcs, on Jun 30 2005, 12:48 AM, said:

For both of the above problems, it is caused by the leading characters in the string.

Howard - Change this code
 '<a href="' . tep_href_link(FILENAME_MY_POINTS_HELP) . '">' . BOX_INFORMATION_MY_POINTS_HELP . '</a><br>' . //Points/Rewards module v1.10
                                        '<hr><a href="' . tep_href_link(FILENAME_GUESTBOOK) . '">' . BOX_INFORMATION_GUESTBOOK . '</a><br>' .
to this
 '<a href="' . tep_href_link(FILENAME_MY_POINTS_HELP) . '">' . BOX_INFORMATION_MY_POINTS_HELP . '</a><br><hr>' . //Points/Rewards module v1.10
                                        '<a href="' . tep_href_link(FILENAME_GUESTBOOK) . '">' . BOX_INFORMATION_GUESTBOOK . '</a><br>' .
I made those changes after adding your code and it worked.

Jack

<{POST_SNAPBACK}>


Jack,

I moved the <hr> tag to the previous line as you suggested and that indeed did seem to solve the problem. However the information box links are repeating themselves and at the second occurence the same error message comes up.

Quote

    * Information
          o Over Wheel of Time
          o Verzenden & Retourneren
          o Privacy verklaring
          o Algemene Voorwaarden
          o Neem contact op
          o Site Overzicht
          o Waar vindt u ons ?
          o WoTs FAQ
          o Gastenboek
          o Veilingen op eBay
          o Links
    * Information
          o Over Wheel of Time
          o Privacy verklaring
          o Algemene Voorwaarden
          o Verzenden & Retourneren
          o Neem contact op
o

Thanks for all your help !