Gallery2 updating feed

A few weeks ago, I switched over to use FeedBurner to publish my feeds and neglected to add thier bot to gallery2 so it was spamming false updates again.

I’ve added the feedster user-agent and we should be back to normal.

WPG2 Theme

My gallery is powered by Menalto gallery2 with integration into Wordpress by WPG2. The theme I’m using for my gallery is custom made based on Siriux with influences from the theme by Pedro Gilberto. I’m using the Wuhan theme for Wordpress, but the gallery theme should look ok with any Kubrik based Wordpress theme, and I suppose it could be used in a standalone gallery2 install.

Requirements

  • Gallery 2 RC1 (or greater)
  • The theme has been designed to run with the Square Thumbnails module for gallery2, and I’m not really sure how will things will line up without the plugin.

Download the theme here

To install simply unzip into your gallery 2 themes/ directory and it should show as “OsakaNYC” in the gallery theme administration.

Feel free to use and/or modify this theme as you wish, but please retain proper credit.

Known bugs

  • Fixed 03/22/2006 - URLs are not being formatted correctly when using the URL Rewrite module
  • Fixed 03/22/2006 - When using the EXIF/IPTC module, EXIF/IPTC information does not appear for a picture when the user is logged in. (This is a very odd buggger).
  • Admin pages are very kinda ugly

Other outstanding items

  • I have not tested this with the gallery comments, shopping cart, or any other non core modules, so I don’t know if they will break things.
  • Currently theme.inc is overriding the loadCommonTemplateData() method to work around bug 1239125 in gallery. This bug has been reported as fixed, but I haven’t checked out the latest gallery2 code to check.

Ok, I think I got it this time

I think I found what’s causing these mysterious “updates”. Gallery2 embedds the session id in the short url of images if no cookie is found. Well since Bloglines and the Planet Ars Lounge (and Feedburner as I found out), don’t store cookies, the session id is there, and since the session id changes each time, the post is marked as updated. Or at least that’s my theory. Luckily gallery2 handles this for the common search engines by looking for identifying strings in the User-Agent and if it matches a known search engine the session id is not included (this is so the search engines don’t index a bunch of pages with session id’s in them). I’ve added the User-Agent values for Bloglines and Planet Ars Lounge and we’ll see what happens.

Sorry for spamming your aggregators while I was working this out, and I hope I’ve licked it.

« Previous entries