Gallery images in geeklog articles
The original code was written by Andy Bloch and described on his site here. The code to achieve this functionality is a custom function in lib-custom.php and a few bits of extra code in lib-common.php and system/lib-story.php.
I've created a diff against the latest geeklog CVS code. You can download it here.
To insert an image in an article or comment simply add code like this in the article or comment body:
[ gallery/album/image.thumb.jpg]"thumb" can be replaced with "sized" to insert a larger image or omitted to insert a full-size image.
Additionally, the image can be aligned using any valid HTML IMG alignment value as follows:
[ gallery/album/image.thumb.jpg right]Finally, to create a text link to a gallery image, use code as follows:
[ gallery/album/image.jpg text link_text]For example, the code:
[ gallery/2004-07-28/DSC00712.jpg text my boy Billy!]results in this link to my [gallery/2004-07-28/DSC00712.jpg text my boy Billy!]
(Actually, I had to insert an extra space before the word "gallery" so the code would not be replaced by the link!)