The migration to Gallery 2.0 is now complete. I spent some time over the last couple of days to find ways to integrate Movable Type and Gallery. In both cases, lack of time to delve into APIs forced me to take some shortcuts.
These examples rely on the use of Cold Fusion as a scripting language. They could probably be adapted to PHP instead, but then again, I don't have much time to learn PHP beyond simple editing of existing code.
Displaying Gallery content from Movable Type
Gallery offers a nice way to embed images from remote pages. By simply looking at the URLs used by the image-block option of Gallery, I came up with the following modules for Movable Type :
<CFOUTPUT>
<CFHTTP url="#gallery2url#?g2_view=imageblock.External&g2_blocks=randomImage" resolveurl="no" />
#CFHTTP.FileContent#
</CFOUTPUT>
This module displays a random image from the Gallery. Change the value of 'g2block=' by 'viewedImage' to display the most view image. '#gallery2url#' is a cold fusion variable to the URL of the 'main.php' page of your gallery.