SitemapXML v.2

Results 1 to 20 of 2,226
07 May 2009, 12:19
#1
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Posts:
1,782
Plugin Contributions:
4

SitemapXML v.2

This Script generates an Sitemap as described here:
http://www.sitemaps.org/

(This replaces my former "Google Sitemap XML" addon, which I no longer support.)

Features:
=========
- supports multilangual categories and products
- supports Search-Engine Safe URLs
- could be accessed by http or command line
- autogenerates multiple sitemaps for sites with over 50.000 URLs
- autogenerates multiple sitemaps if filesize exceeded 10MB
- writes files compressed or uncompressed
- using index.php wrapper - http://domain.com/index.php?main_page=sitemapxml
- using languages file and etc.
- auto-notify Google, Yahoo!, Ask.com and Microsoft (both live.com and msn.com)
You can use the gzip feature or compress your Sitemap files using gzip.
Please note that your uncompressed Sitemap file may not be larger than 10MB.
- generation of a sitemap index file
- generation of xml-sitemaps for (separate files):
1. Products (support hideCategories),
2. Categories (support hideCategories),
3. Reviews,
4. EZ-pages
- multi-language support,
- 'EZ pages rel=nofollow attribute' support (http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=944),
- 'date_added'/'last_modified' support,
- check internal links ('alt_url') by "noindex" rule (main_page in ROBOTS_PAGES_TO_SKIP),
- toc_chapter proccessing
5. Testimonials,

If the products, categories, reviews have not changed since the last generation (time creation corresponding xml-sitemap file), a new xml-sitemap file not created (using existing xml-sitemap).

Priority is calculated on the basis of the positions in the selection from the database, ie the operator ORDER BY in the sql query. First item have priority=1.00, last=0.10. So can no longer be situations where all items in the file have the same priority.
Products - ORDER BY p.products_sort_order ASC, last_date DESC
Categories - ORDER BY c.sort_order ASC, last_date DESC
Reviews - ORDER BY r.reviews_rating ASC, last_date DESC
EZ-pages - ORDER BY p.sidebox_sort_order ASC, last_date DESC
Testimonials - ORDER BY last_date DESC

Support 3 $_GET parameters:
ping=yes - Pinging Google, Yahoo!, Ask.com and Microsoft.

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.

genxml=no - don't generate xml-files.

rebuild=yes - force rebuild all sitemap*.xml files.

Comments and suggestions are welcome.
If you need any more sitemaps (faq, news, etc) you may ask me, but I will do only if it matches with my interests.

Download: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=544
07 May 2009, 12:42
#2
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Posts:
1,281
Plugin Contributions:
4

Re: SitemapXML v.2

Great to see it go live. Is it the same as the last beta you sent me or should I just download the new version?
07 May 2009, 12:56
#3
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Posts:
1,782
Plugin Contributions:
4

Re: SitemapXML v.2

Hi Andrew,

hem:

Great to see it go live. Is it the same as the last beta you sent me or should I just download the new version?

I add something new facilities. Better download the new module.
07 May 2009, 14:26
#4
smoke133 avatar

smoke133

Zen Follower

Join Date:
Jul 2007
Posts:
188
Plugin Contributions:
0

Re: SitemapXML v.2

Would this be a replacement for the Google XML Sitemap module then?
07 May 2009, 17:30
#5
chuck avatar

chuck

Totally Zenned

Join Date:
Jul 2005
Posts:
255
Plugin Contributions:
0

Re: SitemapXML v.2

smoke133:

Would this be a replacement for the Google XML Sitemap module then?


I think so. I read in his other post about the google mod:

a_berezin:

Attention!
This module is no longer supported!!!


Use new module sitemapXML - http://www.zen-cart.com/forum/showthread.php?p=725347
08 May 2009, 15:38
#6
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: SitemapXML v.2

Thank you, Andrew, for your contributions!!!!

I didn't see this in the readme file. Are there any special instructions for upgrading from the last Google Sitemap version? Or do we just overwrite all files and install the database patch, or...?
08 May 2009, 19:34
#7
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Posts:
1,782
Plugin Contributions:
4

Re: SitemapXML v.2

I do not know why the zen-team put this module to the old module Google Sitemap. These are different modules.

You can uninstall old Google Sitemap module and use only SitemapXML.
08 May 2009, 19:51
#8
oriontool avatar

oriontool

New Zenner

Join Date:
Apr 2009
Posts:
52
Plugin Contributions:
0

Re: SitemapXML v.2

Hello,

I have installed the module and I thought everything went correctly, but apparently not. :no:

Google Webmaster Tools reports the following error:

Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.

My site is http://www.earphoneguy.com and the site map (which looks weird) is at http://www.earphoneguy.com//index.php?main_page=sitemapxml

My Zen-Cart version is 1.3.8a.

Any suggestions on how to correct this or what I did wrong? I have only been using Zen-Cart for less than a week.

Thanks!
09 May 2009, 14:09
#9
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Posts:
1,375
Plugin Contributions:
0

Re: SitemapXML v.2

a_berezin:


You can uninstall old Google Sitemap module and use only SitemapXML.

I tried uninstalling Google sitemap.
Ran uninstall.sql and deleted all files.
However, I still show Google XML sitemap in Admin -> Tools.
Upon clicking on it throws error 404.
How can I remove this entry from database?
Thanks.
09 May 2009, 17:55
#10
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Posts:
1,375
Plugin Contributions:
0

Re: SitemapXML v.2

Re-installed Google Sitemap, ran uninstall.sql
Entry in Tools still there.
Deleted all files, ran patch again, no luck.
Searched whole database for entries, 0 matches.
Still unable to completely uninstall this mod.
09 May 2009, 18:07
#11
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Posts:
1,375
Plugin Contributions:
0

Re: SitemapXML v.2

OK, got it.
I was missing the deletion of admin -> includes -> boxes -> extra_boxes -> googlesitemap_tools_dhtml.php.
10 May 2009, 02:57
#12
iggy73 avatar

iggy73

New Zenner

Join Date:
Feb 2008
Posts:
37
Plugin Contributions:
0

Re: SitemapXML v.2

Stupid question I'm sure, but are there any security concerns around leaving the sitemap*.xml files with 777 permissions? Or should/can they be set back to 644 as long as one is running the tool asynchronously?
10 May 2009, 17:33
#13
giuly avatar

giuly

Zen Follower

Join Date:
May 2007
Posts:
438
Plugin Contributions:
0

Re: SitemapXML v.2

Sorry I lost the files of old version, that I would uninstall, someone can attach old files in way to run uninstall sql?

Please, so then I install new version.
Thank you very much
10 May 2009, 18:36
#14
dkhoward avatar

dkhoward

New Zenner

Join Date:
May 2009
Posts:
15
Plugin Contributions:
0

Re: SitemapXML v.2

Using Ver 1.3.8a

My only real questions is could someone post just a bit more concise and detailed set of instructions on how to install this addon. Being a novice user of Zencart, I think the installation instructions make some assumptions about what I know and what should be done to do an install.

Thanks

DKHoward
10 May 2009, 21:20
#15
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Posts:
1,375
Plugin Contributions:
0

Re: SitemapXML v.2

giuly:

Sorry I lost the files of old version, that I would uninstall, someone can attach old files in way to run uninstall sql?

Old version is right below new version, it's ZC team policy to publish this way, precisely to prevent these issues.
10 May 2009, 21:31
#16
giuly avatar

giuly

Zen Follower

Join Date:
May 2007
Posts:
438
Plugin Contributions:
0

Re: SitemapXML v.2

thank you, you have reason.

I downloaded many mods, and this time I did'nt see below, I feel like a :wacko:

Thank you very much
:blush:
10 May 2009, 22:27
#17
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Posts:
1,375
Plugin Contributions:
0

Re: SitemapXML v.2

dkhoward:

Using Ver 1.3.8a
My only real questions is could someone post just a bit more concise and detailed set of instructions on how to install this addon.

It's just a question of putting the files in the right location and running the install.sql by copying and pasting in the Install SQL patches under Tools in Admin, and clicking Send.
Some files go in the root of the store, all those with extension .xml in the root folder of the mod, I'm not sure about googlesitemap.php.txt, I put this one there, just in case.
Then you just follow the folder structure, the ones in template_default you can put in your custom template.
You can leave out languages you don't use.
Once all files are in correct location, just run install.sql.
11 May 2009, 03:14
#18
smoke133 avatar

smoke133

Zen Follower

Join Date:
Jul 2007
Posts:
188
Plugin Contributions:
0

Re: SitemapXML v.2

Where would I add this in the SitemapXML module so that the script would run until it is done?
set_time_limit(0);
It is timing out and I don't want to change my "max_execution_time" any higher than what it is set to.
11 May 2009, 08:39
#19
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Posts:
1,782
Plugin Contributions:
4

Re: SitemapXML v.2

smoke133:

Where would I add this in the SitemapXML module so that the script would run until it is done?
set_time_limit(0);


You can see this in header_php.php (lines 92-94):
if (!get_cfg_var('safe_mode') && function_exists('set_time_limit')) {
  set_time_limit(0);
}
11 May 2009, 13:10
#20
zcnb avatar

zcnb

Zen Follower

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

Re: SitemapXML v.2

Andrew, thank you very much for this incredible contribution.

I would appreciate answering a few questions that will help me better understand this add-on.

Does SitemapXML v.2 replace the entire Site Map facility as comes prepackaged in the existing Zen Cart ver. 1.3.8a? Or does SitemapXML v.2 co-exists with it?

In particular:
  1. Does SitemapXML v.2 automatically update the site map page that is accessible via the Information sidebox (index.php?main_page=site_map) ?
  2. That is, is this for submission to search engines only? Or does it have visual output just like the existing Site Map function in Zen Cart?
  3. Does SitemapXML v.2 support turning off selectively certain pages from sitemap? That is, in the existing sitemap function in Zen Cart, one goes to 'Configuration > Define Page Status' and can hide, via the admin console, certain pages from the search engine. Is this the case with SitemapXML v.2?