I spent a decent amount of time looking for a sitemap generator for Plogger. After a lengthy, fruitless search, I decided to take a stab at building my own. It checked out OK with Google, so I thought I would share it to see if anyone else had ideas.
This sitemap maps all collections, albums, and pictures. This version assumes that .htaccess is enabled for nice URLs, but it would be a quick rewrite to have it work without nice URLs. It would be a long rewrite to check if mod_rewrite was enabled, but that could be done, too.
Hey, I’ve been looking around trying to find a way to build a sitemap for Plogger and your solution looks great!
I was just wondering if you might have some idea as to how it could be adapted to output a listing in HTML instead of XML?
Thanks!
Steve
[email address redacted]
All you need to do to change the output type to HTML is to change the Content Type in the head of the file and replace the XML tags with HTML tags. I am not sure how you are wanting to format the HTML output, but if you have any more questions, please don’t hesitate to ask. 🙂
I assume you’re the R of R.J. Carpenter? I got it all figured out but I don’t think I ended up using your sitemap very much, once I hacked it all apart. I got sort of a fit of inspiration, so I don’t exactly recall the steps taken to get from your template to the finished product. 😛 You can see the result here:
http://www.oxidephoto.ca/sitemap.php
I’m sure
Oops, didn’t mean for a superfluous “I’m sure” at the end of that comment. 😛
Oh, and if you want to see the source, let me know. It’s rather ingenious, making use of a couple nested whiles and concurrent database queries.