Home
Project Gallery
Main Repository Page
Open Source Mods (.zip)
|
File Title:
|
Dynamic gSitemap
Download
|
| |
|
Description: |
Please see the Dynamic gSitemap at Joomla.org for reviews and a demo.
This is a modification for the Dynamic gSitemap by Mustafa Görmezer. The site is a bit hard to read if you don't speak German because the translation comes from Google's translator so words are all scrambled. My updates are #s 1-7 and 10. No need to change anything in the file unless your configuration.php and sitemap.php files are in different directories. Updates from the original are as follows:
- The "lastmod" tag is enabled and it now checks to see if the content item has a Modified date, if it doesn't, it uses the Created date. If you still come up with dates that only have zeros, check your content to make sure it has a created date.
- The date used above is converted to W3C DateTime format as required by the sitemap schema.
- The schema used has been updated to the most current preferred schema: 0.9 from sitemaps.org as instructed by Google.
- 2/1/07: This script didn't work if you didn't have SEF enabled. It's now updated to UTF-8 encoding so you won't get the XML Parse error. Thanks to those of you who tested this for me.
- 2/7/07: The time offset is now automated so you will not need to edit the code for the time zone.
- 3/5/07: The script has been updated to show "+00:00" if you are not getting a Time Offset in your sitemap and Google is giving you an error. To enter your correct Time Offset, if you are not in the UTC 00:00 time zone, you can change line 67 of the script to read your correct time offset. Lines 66-68 look like this:
} else {
$offset = '+00:00';
}
Thanks v.p. for letting me know about the error.
- I updated the file so that you will not have to edit ANYTHING, including the top line if your Joomla configuration file is located in the same directory as your sitemap.php file.
- 5/30/07: "Kevin" at saskma.com added a feature to print component links for those using mossef (remository, weblinks, polls, forums, etc.).
- 6/15/07: Mustafa Görmezer created a feature that sends a ping every time the script is called to verify that the search engine has the most updated version. He also informed me that you can instruct other bots to use this sitemap by adding it to your robots.txt file as follows:
After the line "User-agent: *" add this line:
Sitemap: http://www.yoursite.com/sitemap.php
Thanks for that tip!
- 6/20/07: Update #8 expanded to allow for sites that have mossef disabled. Also modified the coding for lastmod to shorten the script. Note that the version available here has the ping feature (update #9) disabled until I can get it fixed, if you download it and see why it stopped working, PLEASE let us know. It does the ping and sends an email in case of errors but it also currently prints an error which causes the XML to be invalid. If you use mossef, you might want to download the previous version at the script's homepage (below). That version has update #9 working.
- 11/5/07: There was an error caused by the CREATED date not being printed in place of a modified date for static content items (I just got that error today) so that's been fixed. I also made the QUERIES more efficient and cleaned up the code. I was new to PHP when I started contributing to this project so I've updated old code to make it run faster. Also, I removed the ping feature all together since I can't make it work and people keep coming to me with problems. If someone can make it work, let me know. I looked into the XML_RPC package from PEAR but PEAR is just way over my head and the website has almost no documentation or sample code.
- Note: I can help a bit if needed but I'm really not following the updates anymore. My main comment is this: If you are getting errors from Google regarding dates or from the browser, comment out the last line, the ping command. This should fix your problem. Please ask Mustafa Gormezer about fixing the ping command, I don't know the first thing about it
As always, more updates to come I'm sure, if not from me then from Mr. Görmezer or some other entheusiastic user so keep checking back!
Note: I'm sure most people using this script won't have a problem but this sitemap works only for sites with less than 50,000 content+category listings. Beyond that, files have to be split and a sitemap index must be generated. For reference, this site 2,347 URLs on the sitemap as of 6/20/07.
Here is a sample (updated 10/29/07): http://www2.amas-veritas.com/sitemap.php
Email with any questions or problems. (webmaster@ this domain) Also, if you'd like to receive updates, send email there as well.
|
|
Submitted On: |
Nov 05 2007 |
|
Submitted By: |
Diana (dianascherff) |
|
File Date: |
Nov 05 2007 |
|
File Author: |
Diana |
|
File Version: |
1.10 |
|
File Size: |
1.81KB |
|
File Type: |
zip |
|
File HomePage: |
http://www.goermezer.de/content/view/388/378/
|
|
Downloads: |
129 |
|
Screenshot:
|
|
|
Rating:
|
Total Votes:4
|
|
Your Vote:
|
|
|
|
Be the first to comment! Please sign in or register.
|
|
|
|
Double click any word on this page for a definition.
Using Firefox? Enable definitions by downloading the extension.
Sorry, this feature does not currently work in Opera or Safari.