It's number of discussions that make the difference, I would pause and think hard about it if you had over 10,000 discussions. In that scenario I'd advise you wait for the version that produces static files.
I have produced a 0.2 version that generates static files limited to 20,000 Urls per file.
However I do not want to publish that until I have been able to test it.
Does anyone have a forum with, say, 15,000 discussions (some spanning multiple pages)? If you do, and you are willing to beta test this extension, please contact me.
I've seen other sitemaps that have a link to a stylesheet in it so that it displays nicely formatted. Does this interfere with the search engines? Or is it there so we humans can view the sitemap nicely formatted?
Adding an Xsl style sheet wouldn't interfere with the sitemap at all.
If you were a small site this isn't a bad idea, but as you grow and face multiple sitemap files, gzip'd, and containing 20,000 URLs each... it's hard to imagine that you would want that to be consumed by a human.
I can supply you with the version that generates static files if you want.
The full cache version I should have done tomorrow night, and will basically involve you installing the extension and then putting a cron job on your server to generate it daily.
I'm already using the static file version (20k urls per file), and it's very nice at what it does - it's going to hurt peoples head to read the code The caching is a simple method that writes out a sitemaps_index file and uses the timestamp of the file to determine whether or not to generate a new sitemap yet. If it's within 23hrs, it will not generate a sitemap... essentially this means it only gets generated once a day, and if you add a cron job you are in control of the time that it gets generated.
Right now I'm feeling really, really stupid.
How is this suppose to work?
I've installed it, activated it and...?
When I input http://www.yourdomain.com/extension.php?PostBackAction=sitemap.xml in the address bar I get:
Notice: Undefined variable: PostBackAction in mylocaldirectory/public_html/extensions/Sitemaps/default.php on line 219
I've tried it in your site and it works fine.
What am I doing wrong?
Had the same problem, change the $PostBackAction to $_GET['PostBackAction'] in the if statement and it will work ok. Also if you are not on PHP5, then change everywhere there is a date('c'... to date('Y-m-d'... Other than that, brilliant works really well.
Comments
It's number of discussions that make the difference, I would pause and think hard about it if you had over 10,000 discussions. In that scenario I'd advise you wait for the version that produces static files.
However I do not want to publish that until I have been able to test it.
Does anyone have a forum with, say, 15,000 discussions (some spanning multiple pages)? If you do, and you are willing to beta test this extension, please contact me.
If you were a small site this isn't a bad idea, but as you grow and face multiple sitemap files, gzip'd, and containing 20,000 URLs each... it's hard to imagine that you would want that to be consumed by a human.
We have around 15,000 members in our database, but only around 1500 discussions right now.
We'll probably wait until it's caching to start using it activately...
Thanks mate, great contribution!
Posted: Wednesday, 2 May 2007 at 1:40PM
I can supply you with the version that generates static files if you want.
The full cache version I should have done tomorrow night, and will basically involve you installing the extension and then putting a cron job on your server to generate it daily.
I'm already using the static file version (20k urls per file), and it's very nice at what it does - it's going to hurt peoples head to read the code
$PostBackAction is supposed to be the variable in the Url that comes through.
You could whisper me the Url to your installation and I'll go look too. A phpinfo() page would be useful too.
Also if you are not on PHP5, then change everywhere there is a date('c'... to date('Y-m-d'...
Other than that, brilliant works really well.
I've been running 0.2 for a while now, so I'll release that later.
Once you've installed and activated the extension, how do you know it's working?
What I gathered from the previous posts is that you're supposed to open a new tab in your browser and cut/paste the following url
http://www.yourdomain.com/extension.php?PostBackAction=sitemap.xml
Then what?
Thanks in advance for your response and help
and thank you for the extension.
I don't understand what you mean when you write
"Edit your robots.txt file to include this line to have your Sitemap auto-discovered:
Sitemap: http://www.yourdomain.com/extension.php?PostBackAction=sitemap.xml"
I'm really sorry for the inconvenience of my questions, I'm really new to all this.
Thank you very much for your help and patience.