Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 1 votes

Dynamic SiteMap


839 replies to this topic

#781 lildog

  • Community Member
  • 608 posts
  • Real Name:Todd
  • Gender:Male
  • Location:Sunny Florida

Posted 16 December 2008, 19:01

I have been real busy lately. I will try to run down the problem....I know it has to do with the info pages unlimited fix, because without it everything works real well.

lildog

View PostCyburg, on Dec 16 2008, 07:44 AM, said:

Hi all,

Does anyone have a fix for the duplicate (repeating) entries in the list of pages on the sitemap yet?

Cheers,
Paul


#782 blr044

  • Community Member
  • 1,009 posts
  • Real Name:Bennett
  • Gender:Male
  • Location:USA

Posted 16 December 2008, 22:36

I am am process of updating dynamic site map ver 3.4 to the latest ver. When the unzip window opens after clicking download icon at http://addons.oscommerce.com/info/3306, ther is a red X in left upper corner of window. I read some where on forum, that meant the files in that folder were corrupt. Looked at a few below that ver. Ver 3.5.2 and later all display the red X.

so before I up dated to the latest ver, I would like to check regarding the red X. All below that date has the red check check mark.

Thanks.

blr044

#783 lildog

  • Community Member
  • 608 posts
  • Real Name:Todd
  • Gender:Male
  • Location:Sunny Florida

Posted 17 December 2008, 01:53

It's the F*&#$*G windows. Can't open anything.Is it the filenames or the lineendings or the file extensions. Any number of GD things flummux it up. I will fix it for you PC guys. How is everyone else opening it?

lildog

Edited by lildog, 17 December 2008, 02:00.


#784 lildog

  • Community Member
  • 608 posts
  • Real Name:Todd
  • Gender:Male
  • Location:Sunny Florida

Posted 17 December 2008, 02:10

Now that I am done complaining about it. I uploaded a newer version that hopefully everyone can open. If not let me know and I will(quietly, without complaint) try to fix the problem.

lildog

#785 Cyburg

  • Community Member
  • 67 posts
  • Real Name:Paul Burgess
  • Gender:Male
  • Location:Leicester

Posted 17 December 2008, 09:24

Hi,

Thanks for the heads up Todd; I will also take a look at the code changed in the info pages unlimited fix to see if I can solve the issue. Thanks for your reply both.

Cheers,
Paul

#786 Cyburg

  • Community Member
  • 67 posts
  • Real Name:Paul Burgess
  • Gender:Male
  • Location:Leicester

Posted 17 December 2008, 09:49

Ok, I just don't have time to take a good look at this righht now (its crunch time here!!).

However, I have found a quick fix; it looks as though the contrib is displaying a list of all pages, not only as normal links, but also as secure links (although the SSL links are not formatted correctly; they are http rather than https). Maybe this issue has something to do with the fact that I have configured osCommerce NOT to use SSL whilst I am in test!?

Anyway, quick fix; in "catalog/dynamic_sitemap.php" around line 281, comment out the following lines of code:

// Box Files
for ($b = 0; $b < count($files['name']); ++$b){
  echo '<li><a title="'. $files['name'][$b] .'" href="' . tep_href_link($files['path'][$b]) . '">' . $files['name'][$b] . '</a></li>';
}

Just above these lines of code you will see the code which I presume is supposed to write the SSL links to the page, but it seems flawed, in the sense that it does not take stock of the fact that I do not have SSL enabled in the install, and just writes the page links incorrectly.

Does this sound like a realistic possibility?


Cheers,
Paul

#787 lildog

  • Community Member
  • 608 posts
  • Real Name:Todd
  • Gender:Male
  • Location:Sunny Florida

Posted 17 December 2008, 14:51

Yeah if you have ssl off it will not use ssl links........So what do the links look like? I never took into the fact that SSL may be off.

lildog

View PostCyburg, on Dec 17 2008, 01:49 AM, said:

Ok, I just don't have time to take a good look at this righht now (its crunch time here!!).

However, I have found a quick fix; it looks as though the contrib is displaying a list of all pages, not only as normal links, but also as secure links (although the SSL links are not formatted correctly; they are http rather than https). Maybe this issue has something to do with the fact that I have configured osCommerce NOT to use SSL whilst I am in test!?

Anyway, quick fix; in "catalog/dynamic_sitemap.php" around line 281, comment out the following lines of code:

// Box Files
for ($b = 0; $b < count($files['name']); ++$b){
  echo '<li><a title="'. $files['name'][$b] .'" href="' . tep_href_link($files['path'][$b]) . '">' . $files['name'][$b] . '</a></li>';
}

Just above these lines of code you will see the code which I presume is supposed to write the SSL links to the page, but it seems flawed, in the sense that it does not take stock of the fact that I do not have SSL enabled in the install, and just writes the page links incorrectly.

Does this sound like a realistic possibility?


Cheers,
Paul

Edited by lildog, 17 December 2008, 14:52.


#788 newtest

  • Community Member
  • 212 posts
  • Real Name:no its not

Posted 19 December 2008, 15:18

I just installed dynamic_sitemap_v3.5.10, All looks great but for the empty o under *Information
It dont show the CCGV(trad) entry. ie. Gift Voucher FAQ

*Information
o
o Shipping & Returns
o Privacy Notice
o Conditions of Use
o Contact Us
o Site Map

Ideas as to why?
Thanks

#789 GoAia

  • Community Member
  • 60 posts
  • Real Name:Lollo Vestlund

Posted 23 December 2008, 07:30

Hi
This is maybe simple questions for an experienced OsC person, but not for me: I have just installed this very good contribution, and when clicking on "Site Map Maintenace", I cant read sitemap.php (permissions are 755), and no maintennace can be done. What is wrong here?

The site map is created nicely. But I don't understand if and how product names can be shown - now only categories are shown.

Sorry, maybe this is basic questions, but: ????

Thank you.

#790 GoAia

  • Community Member
  • 60 posts
  • Real Name:Lollo Vestlund

Posted 25 December 2008, 05:22

View PostGoAia, on Dec 23 2008, 09:30 AM, said:

Hi
This is maybe simple questions for an experienced OsC person, but not for me: I have just installed this very good contribution, and when clicking on "Site Map Maintenace", I cant read sitemap.php (permissions are 755), and no maintennace can be done. What is wrong here?

The site map is created nicely. But I don't understand if and how product names can be shown - now only categories are shown.

Sorry, maybe this is basic questions, but: ????

Thank you.

I were able to solve the first part of this. But: is it possible to show product names in the list?

#791 GoAia

  • Community Member
  • 60 posts
  • Real Name:Lollo Vestlund

Posted 25 December 2008, 05:44

Another question: is it possible, and how, can I change the sort order of the file name links?

#792 newtest

  • Community Member
  • 212 posts
  • Real Name:no its not

Posted 29 December 2008, 19:27

Still looking for an answer to my above post.
I have already done the change metioned in post 115 as quoted below.

That is failing because Gift Vouchers store the filenames in a different file. Find this line in includes/add_ccgvdc_application_top.php
CODE
define('FILENAME_GV_FAQ', 'gv_faq.php'); //moved here for dynamice sitemap
and move it to the includes/filenames.php file. If you ever update Gift Vouchers, this problem will return so I plan on adding a fix to Dynamic SiteMap but this will work for now.

Jack


Anyone have an answer to this problem?

#793 lildog

  • Community Member
  • 608 posts
  • Real Name:Todd
  • Gender:Male
  • Location:Sunny Florida

Posted 29 December 2008, 19:49

Jack,
I know of the problem, I think. It is going to be in your information.php box file. If I am correct it has to do with the $info_box_contents[] = array and how the ccgv link is added in. It needs to be added like all the other links.... Sorry I cannot be specific, I pulled ccgv from my site.


lildog


View Postnewtest, on Dec 29 2008, 11:27 AM, said:

Still looking for an answer to my above post.
I have already done the change metioned in post 115 as quoted below.

That is failing because Gift Vouchers store the filenames in a different file. Find this line in includes/add_ccgvdc_application_top.php
CODE
define('FILENAME_GV_FAQ', 'gv_faq.php'); //moved here for dynamice sitemap
and move it to the includes/filenames.php file. If you ever update Gift Vouchers, this problem will return so I plan on adding a fix to Dynamic SiteMap but this will work for now.

Jack


Anyone have an answer to this problem?


#794 newtest

  • Community Member
  • 212 posts
  • Real Name:no its not

Posted 29 December 2008, 21:58

View Postlildog, on Dec 29 2008, 01:49 PM, said:

Jack,
I know of the problem, I think. It is going to be in your information.php box file. If I am correct it has to do with the $info_box_contents[] = array and how the ccgv link is added in. It needs to be added like all the other links.... Sorry I cannot be specific, I pulled ccgv from my site.


lildog

Hi, i'm not Jack was only qouting him. thanks for the reply.
i have tried that also but it dont work, my info box links are below.

$info_box_contents[] = array('text' =>
'<a href="' . tep_href_link(FILENAME_GV_FAQ) . '">' . BOX_INFORMATION_GV . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_MY_POINTS_HELP) . '">' . BOX_INFORMATION_MY_POINTS_HELP . '</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>' .

any idea what else to try?

#795 kdb

  • Community Member
  • 27 posts
  • Real Name:Kathy du Buisson

Posted 30 December 2008, 04:41

Hi.. I have just tried to install the Dynamic sitemap v 3.5.10.

I installed it on my test server on Windows/IIS before uploading changes to my soon to be live *nux version.

I get the admin page which allows me to include/exclude the various pages but I get an HTTP 500 error when I click on the generate XML site map button (also btw I would prefer to set the time zone only once 'cos I know I will forget to do it in the future).

It is very frustrating as I get no error messages or progress messages so I can't diagnose anything.

Can anyone help please, pretty please..

KdB

PS: I also get the HTTP 500 error on my index page when I try the catalog side.

#796 kdb

  • Community Member
  • 27 posts
  • Real Name:Kathy du Buisson

Posted 30 December 2008, 06:00

Quote

PS: I also get the HTTP 500 error on my index page when I try the catalog side.


#797 jsi

  • Community Member
  • 122 posts
  • Real Name:JC
  • Gender:Male
  • Location:California

Posted 31 December 2008, 15:18

Just got this working. Looks good but . . .

I have the SEO-G contribution for Search engine optimization.

All my links generated on the site maps are the default:
http://www.mysite.com/product_info.php?products_id=28

but they should be like this:

http://www.mysite.com/product-name.html


Any idea how to fix this? Also, is there a way to show my products on the sitemap? Only categories are showing and I have a little bit of products so showing them would be ideal.


Can anyone help with this? I can pay if necessary. I need this fixed ASAP.


Thanx.
mmmmmmmmmmmm. Doughnuts . . . haha. i said nuts.

#798 Jack_mcs

  • Community Member
  • 24,439 posts
  • Real Name:Jack
  • Gender:Male

Posted 01 January 2009, 04:48

View Postjsi, on Dec 31 2008, 10:18 AM, said:

Just got this working. Looks good but . . .

I have the SEO-G contribution for Search engine optimization.

All my links generated on the site maps are the default:
http://www.mysite.com/product_info.php?products_id=28

but they should be like this:

http://www.mysite.com/product-name.html


Any idea how to fix this? Also, is there a way to show my products on the sitemap? Only categories are showing and I have a little bit of products so showing them would be ideal.


Can anyone help with this? I can pay if necessary. I need this fixed ASAP.


Thanx.
The links created by the sitemap generator are a big problem and is why I was against adding that option in the first place. For anyone using a url rewriter, the sitemap generator in this contribution should not be used. As an alternative, you may want to take a look at this sitemap contribution I just uploaded. It will, in my opinion, give better results, especially in a case like yours.

Jack

#799 jsi

  • Community Member
  • 122 posts
  • Real Name:JC
  • Gender:Male
  • Location:California

Posted 01 January 2009, 06:41

View PostJack_mcs, on Dec 31 2008, 08:48 PM, said:

The links created by the sitemap generator are a big problem and is why I was against adding that option in the first place. For anyone using a url rewriter, the sitemap generator in this contribution should not be used. As an alternative, you may want to take a look at this sitemap contribution I just uploaded. It will, in my opinion, give better results, especially in a case like yours.

Jack

Awesome! I'll give that a test drive tomorrow morning.
Happy New Year!

Thanx Jack.
mmmmmmmmmmmm. Doughnuts . . . haha. i said nuts.

#800 kdb

  • Community Member
  • 27 posts
  • Real Name:Kathy du Buisson

Posted 01 January 2009, 08:33

Just to note that I have finally got this working on the real site -

The xml generator problem was probably because of a protection problem and I couldn't fix that on the Windows side.

The other 500 errors were caused by my dyslexic/ancient fingers.

However, now that it works I would like a way to order the page links. I tried a $sort($files['name']); but although this did sort by names it then misaligned the links with the names. I also tried asort but that didn't work either.
I am new to PHP so I am a bit wonky on syntax (and a few other things as well).

My preferred option would be to assign an order for each line and also maybe have artificial groups as for the boxes.

For instance I would like my Home page to be on top, not halfway down.

I also have OSC Affiliate installed and the box listing doesn't quite work for the sitemap but I would like to create a sort of artificial box listing - does this make sense?

KdB