Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

What about a Google sitemap generator extension?

edited August 2005 in Vanilla 1.0 Help
An extension that generate a Google sitemap file with every post would be great. The newest posts could has the highest <changefreq>, and the oldest a lower one.

Comments

  • what's a google sitemap? like a robots.txt?
  • next step up.... xml based i think... http://www.google.com/webmasters/sitemaps/docs/en/faq.html
  • Even the wordpress stuff to generate google sitemaps doesn't include ALL your posts. If I get motivated tomorrow maybe I'll take a crack at this one.
  • Okay, I put together some code to do this, and it's pretty much exactly the same code as for the RSS feed hack or that gets used by default to generate the Atom feed.

    But I just realized that the dates on the RSS and google sitemap stuff are coming out wrong on me, they all come out with "Wed, 31 Dec 1969 16:33:25 -0800" but that's probably because I hosed something up with the date() command in the output in there. I'll have to take a look at it, but I'm headed out of town for the weekend.
  • WOW! :-)
  • i suppose i should point out that because of the way the google sitemap protocol works that has to go in the root level of where you have vanilla installed, not in the Extensions dir or anything like that.
  • You can place the google sitemap anywhere, whenever google can access it. http://www.google.com/webmasters/sitemaps/docs/en/faq.html#s6
  • well, i said that because...

    1- it needs that file path structure to be able to grab the correct vanilla includes to operate (unless you want to change the includes structure in it).

    2- according to this it does matter where you put it in terms of where it is allowed to reference: Denied URL errors
    Denied URLs
    Google has detected some URLs that appear to be at a higher level or different domain than the Sitemap file location. Note that you will not see all denied URLs listed. Rather, Google lists three of them to give you an idea of what types of URLs are being denied. If you receive this error, try moving your Sitemap file to a higher location in your site and submitting again. For instance, if your Sitemap is listed under http://www.example.com/mysite/sitemap.xml, the following URLs are not valid for that sitemap:

    * http://www.example.com/ - it's at a higher level than the Sitemap
    * http://www.example.com/yoursite/ - it's in a directory parallel to the Sitemap
    * http://www.example.com/yoursite - it's missing the trailing slash
This discussion has been closed.