A Sitemap for Plogger

I spent a decent amount of time looking to see if there was a sitemap generator for Plogger. After a lengthy, fruitless search I decided I would 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 URL’s, but it would be a quick rewrite to have it work without nice URL’s. It would be a long rewrite for it to check if mod_rewrite was enabled, but that could be done, too.

Plogger Sitemap Version 0.1

About Ron

I am the father of two wonderful boys, and the husband of one wonderful wife.
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

5 Responses to A Sitemap for Plogger

  1. Steve says:

    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(link) instead of XML?

    Thanks!

    Steve
    [email address redacted]

  2. Ron says:

    All you need to do to change the output type to HTML(link) is to change the Content Type in the head of the file and replace the XML tags with HTML(link) tags. I am not sure how you are wanting to format the HTML(link) output, but if you have any more questions, please don’t hesitate to ask. 🙂

  3. Steve says:

    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

  4. Steve says:

    Oops, didn’t mean for a superfluous “I’m sure” at the end of that comment. 😛

  5. Steve says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This blog is kept spam free by WP-SpamFree.