« Conference management software | Main | sampled data in control »
November 05, 2004
Photobloging with MT and Gallery
[mt-feed.php] A very early and ugly, but working, php script that generates "nice" html for using Gallery and MovableType to photoblog. The script is just a 30-minute mutation of the rss.php feed generator that comes with Gallery.
The install goes something like this:
- download mt-feed.php and put it in your gallery top-level directory.
- Make sure Server Side Includes (SSI) are turned on in your MT blog directory. Here's how to do it in Apache. A good idea is to set
Options +Includes
AddHandler server-parsed .html
in a .htaccess file in your top-level blog directory. I know, I know, turning SSI on for all of your .html files is a bad idea. However, I don't want to rename my index.html to index.shtml. And MT cleverly sets the permissions on index.html to not include "executable".
- Add an include directive to include the mt-blog.php script. See the tutorial abvoe for details
- There's an array in mt-feed.php that excludes certain galleries by name. Every gallery named in the array will never be included in the MT feed. Otherwise, the MT feed would include the complete parentage of every modified gallery. I don't want that all the time. There may be more elegant ways to do this.
That's it.
Things to do:
- Add album titles to the mt-feed in a sensible way.
- Figure out what order mt-feed processes albums and change it to process newest albums first.
- take out all the stuff that just generates xml for the rss feed that I've deleted.
Posted by jones at November 5, 2004 11:26 PM
Comments
That's pretty slick. A few months back I wanted to add a "random image" feature to the front page of my movabletype weblog. My solution was more of a hack, but it seems to work great (http://www.daylate.com/archives/000282.html).
Posted by: jeff
at November 11, 2004 01:59 PM
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)