Gallery2 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.
To insert an image in an article or comment simply add code like this in the article or comment body:
[ gallery/4615]Where "4615" the Gallery2 item ID. (You can find this by looking at the properties of the image in Gallery2).
Image aligment is not yet implemented.
Finally, to create a text link to a gallery image, use code as follows:
[ gallery/4767-2 text link_text]The "-2" is required for the time-being for text links.
For example, the code:
[ gallery/4767-2 text my boy Billy!]results in this link to [gallery/4767-2 text my boy Billy!]
(In all the example code I've had to insert an extra space before the word "gallery" so the code would not be replaced.)