Zen Cart Logo

SitemapXML v.2

Views: 613,201

Results 21 to 40 of 2,226
11 May 2009, 2:44 PM
#21
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

SitemapXML v.2

a_berezin:

You can see this in header_php.php
In that case, what would you set time limit to?

11 May 2009, 2:49 PM
#22
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: SitemapXML v.2

zcnb:

I would appreciate answering a few questions that will help me better understand this add-on.
Let me field some easy questions and maybe the author can reply more in-depth.
SitemapXML does not replace any core files, therefore will not interfere with ZC built-in functions.
However, the ZC sitemap is not in XML format, and will not be accepted by search engines.
The whole idea of sitemapXML is to automate the creation of a standards-compliant sitemap and its submission to search engines.
Bottom line, they are different animals.

11 May 2009, 3:09 PM
#23
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: SitemapXML v.2

ckosloff:

In that case, what would you set time limit to?
http://uk.php.net/set_time_limit
Parameters

   *seconds*                        The maximum execution time, in seconds. If set to zero, no time limit        is imposed.
11 May 2009, 3:25 PM
#24
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: SitemapXML v.2

Question on cron jobs:
I have set up a cron job like so:
00*** GET 'http://www.ladywig.com/index.php?main_page=sitemapxml'
according to instructions.
I do get a report in my email.
This report shows the source of sitemapxml.
My question is: is this being pinged to the 4 search engines?
When I go to Tools --> SitemapXML on step 1 I create sitemap and see it.
On step 2 I see results from search engines.
I am not seeing results from search engines in the cron job.

11 May 2009, 5:11 PM
#25
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: SitemapXML v.2

ckosloff:

ckosloff:

In that case, what would you set time limit to?
http://uk.php.net/set_time_limit
Parameters
seconds The maximum execution time, in seconds. If set to zero, no time limit is imposed.

You quickly learns.:D

11 May 2009, 5:18 PM
#26
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: SitemapXML v.2

zcnb:

I would appreciate answering a few questions that will help me better understand this add-on.
Once more:
This Script generates an Sitemap as described here: http://www.sitemaps.org/
Read http://www.sitemaps.org/ and you answer your questions.

11 May 2009, 5:30 PM
#27
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: SitemapXML v.2

ckosloff:

This report shows the source of sitemapxml.
Source??? You mean the source code of php script?
ckosloff:

My question is: is this being pinged to the 4 search engines?
No. You must use parameter "ping=yes" (read readme.txt):

00*** GET 'http://www.ladywig.com/index.php?main_page=sitemapxml&ping=yes'
11 May 2009, 7:12 PM
#28
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: SitemapXML v.2

a_berezin:

Read http://www.sitemaps.org/ and you answer your questions.
Andrew, thank you for your answer. Yes, I read http://www.sitemaps.org (before posting my questions) and I understand that:

  1. SitemapXML v.2 doesn't replace the Site Map facility as comes prepackaged in the existing Zen Cart ver. 1.3.8a
  2. SitemapXML v.2 is for submission to search engines only. It has no visual output component.
  3. SitemapXML v.2 doesn't support turning off selectively certain pages from sitemap. It does support other aspects per type of pages (e.g. Products vs. Cateogries vs. EZ-Pages).

Still, I wonder whether it would be better to have these two features merged (Zen Cart's visible site map with your XML based map).

BTW, I believe there is a bug in includes/modules/pages/sitemapxml/sitemapxml_ezpages.php line 93:

 if ($link_base_url != $zen_SiteMapXML->base_url) {
        $zen_SiteMapXML->message(sprintf(TEXT_ERRROR_EZPAGES_OUTOFBASE, $page_query->fields['alt_url'], $link) . ' -- ' . $link_base_url . ' != ' . $zen_SiteMapXML->base_url . '<br />', 'error');
        $link = false;
      }

For EZ-Pages links that do not follow the typical URL of

http://<domain.com>/store/index.php?main_page=page&id=3
But rather have an "external" link like:
http://<domain.com>/store/index.php?main_page=shippinginfo
The aforementioned line produces an error:
EZ-Page ignored (out of base url)
When in fact the only difference between $link_base_url and $zen_SiteMapXML->base_url is a trailing slash.

This results in not indexing all EZ-Pages, but rather only part of them.

I can probably fix the bug myself but I believe that you will do a better job, as you are the designer of this add on.

11 May 2009, 8:23 PM
#29
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: SitemapXML v.2

OK - here is my bug fix. I hope that you will find it useful. :smile:

11 May 2009, 9:08 PM
#30
nfm avatar

nfm

New Zenner

Join Date:
Jan 2008
Posts:
90
Plugin Contributions:
0

Re: SitemapXML v.2

@zcnb

I'm not getting the errors you were mentioning and my ez pages are set up the way you said would get an error.

HOWEVER

When I click the button to create the sitemaps or to ping the search engines the page that pops up is completely black.

11 May 2009, 9:21 PM
#31
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: SitemapXML v.2

a_berezin:

Source??? You mean the source code of php script?

Nyet. The text source of the web page, like "view source".

a_berezin:

No. You must use parameter "ping=yes" (read readme.txt)

Sorry for missing that part of the readme.
I guess that, after modifying sitemap URL in Google with inline=yes, I could rewrite command line as follows:
```
00*** GET 'http://www.ladywig.com/index.php?main_page=sitemapxml&ping=yes&inline=yes&rebuild=yes'

">I don't see the purpose of genxml=no.
Thanks.
11 May 2009, 9:22 PM
#32
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: SitemapXML v.2

NFM:

I'm not getting the errors you were mentioning and my ez pages are set up the way you said would get an error.
I looked at your web site and it seems that your EZ-Pages are not set up the way I described. For example, your index.php?main_page=shippinginfo is part of the "Important Links" sidebox (controlled by Define Page Editor, not EZ-Pages).

For this type of pages, there is no bug.

If you to move them to EZ-Pages (for example, if you want to move them to the footer), however, you will notice that the original SitemapXML code exclude those pages that were moved.

11 May 2009, 9:27 PM
#33
nfm avatar

nfm

New Zenner

Join Date:
Jan 2008
Posts:
90
Plugin Contributions:
0

Re: SitemapXML v.2

zcnb:

I looked at your web site and it seems that your EZ-Pages are not set up the way I described. For example, your index.php?main_page=shippinginfo is part of the "Important Links" sidebox (controlled by Define Page Editor, not EZ-Pages).

For this type of pages, there is no bug.

If you to move them to EZ-Pages (for example, if you want to move them to the footer), however, you will notice that the original SitemapXML code exclude those pages that were moved.

Oh...okay....thanks for clearing that up.

Now to figure out why the other pages are coming out black with black text....lol

11 May 2009, 9:34 PM
#34
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: SitemapXML v.2

Missed something.
Error in readme (IMHO)

inline=yes - output file sitemapindex.xml. In Google Webmaster Tools you can define your "Sitemap URL":
http://<your shop>/googlesitemap.php?inline=yes
And every time Google will get googlesitemap.php he will receive a fresh sitemapindex.xml.Should say sitemapxml instead of googlesitemap

11 May 2009, 10:25 PM
#35
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: SitemapXML v.2

ckosloff:

Error in readme (IMHO)
Should say sitemapxml instead of googlesitemap
Actually I think the error might be in the distro and googlesitemap.php.txt should be renamed to googlesitemap.php.
Will test further and re-post.

12 May 2009, 9:12 AM
#36
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: SitemapXML v.2

ckosloff:

Missed something.
Error in readme (IMHO)
Should say sitemapxml instead of googlesitemap
Thanks.

12 May 2009, 9:17 AM
#37
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: SitemapXML v.2

ckosloff:

Actually I think the error might be in the distro and googlesitemap.php.txt should be renamed to googlesitemap.php.
No. There are no error. You CAN rename googlesitemap.php.txt to googlesitemap.php order not to reconfigure cron configured to run googlesitemap.php (for some users, setting a cron is undecisive task).

12 May 2009, 9:21 AM
#38
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: SitemapXML v.2

ckosloff:

Sorry for missing that part of the readme.
I guess that, after modifying sitemap URL in Google with inline=yes, I could rewrite command line as follows:
```
00*** GET 'http://www.ladywig.com/index.php?main_page=sitemapxml&ping=yes&inline=yes&rebuild=yes'

I use this command:

00*** GET 'http://www.ladywig.com/index.php?main_page=sitemapxml&ping=yes'

Using inline=yes in cron task pointless.
> **ckosloff:**
>
> 
> I don't see the purpose of genxml=no.
> 
Ignore this.
12 May 2009, 9:54 AM
#39
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: SitemapXML v.2

zcnb:

Still, I wonder whether it would be better to have these two features merged (Zen Cart's visible site map with your XML based map).
Do not see any sense in this.
zcnb:

BTW, I believe there is a bug in includes/modules/pages/sitemapxml/sitemapxml_ezpages.php
Thanks

12 May 2009, 10:40 AM
#40
thuffam avatar

thuffam

New Zenner

Join Date:
Feb 2009
Posts:
6
Plugin Contributions:
0

Re: SitemapXML v.2

a_berezin:

No. There are no error. You CAN rename googlesitemap.php.txt to googlesitemap.php order not to reconfigure cron configured to run googlesitemap.php (for some users, setting a cron is undecisive task).

Are we supposed to rename googlesitemap.php.txt to googlesitemap.php or not?

If we don't then what url do we tell google webmastertools to use for a site map? (the readme says http://<your shop>/googlesitemap.php?inline=yes).

Thanks very much
Tim Huffam