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?
Views: 613,201
Totally Zenned
a_berezin:
You can see this in header_php.php
In that case, what would you set time limit to?
Totally Zenned
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.
Totally Zenned
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.
Totally Zenned
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.
Deceased
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
Deceased
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.
Deceased
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'
Zen Follower
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:
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.
Zen Follower
OK - here is my bug fix. I hope that you will find it useful. :smile:
New Zenner
@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.
Totally Zenned
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.
Zen Follower
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.
New Zenner
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
Totally Zenned
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
Totally Zenned
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.
Deceased
ckosloff:
Missed something.
Error in readme (IMHO)
Should say sitemapxml instead of googlesitemap
Thanks.
Deceased
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).
Deceased
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.
Deceased
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
New Zenner
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
Fields marked required must be completed.
Tell staff why this post should be reviewed.