If a man speaks in a forest, and his wife's not there, is he still wrong?

Gallery2 images in geeklog articles

I have modified my hack to insert images from Gallery into Geeklog articles and comments. Links to larger images are automatically created.

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.

You can download a diff against a vanilla Geeklog installation here. Email me if you get stuck.


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.)


Story Options

Gallery2 images in geeklog articles | 3 comments
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Gallery2 images in geeklog articles
Derek Thursday, June 09 2005 @ 02:57 PM BST

I was wondering if you could share with me the code that you used to modify the galleryblock for G2. galleryblock calls init.php - and as you know, G2 uses init.inc. I'd appreicate any help you could provide via email!

Thank you,

good article
Suzy_1981 Friday, June 30 2006 @ 02:39 PM BST
Incest Video Incest Porn


  • Home
  • Misc (6/0)
  • Audio (5/0)
  • Linux (21/0)
  • Family (1/0)
  • Fishing Diary (1/0)
  • OpenSolaris (7/0)
  • Computing (11/0)
  • General News (7/0)
  • Chloe (1/0)
  • Emily (2/0)
  • Twins (5/0)
  • Classifieds (2/0)
  • GeekLog (2/0)
  • Project Management (1/0)
  • User Functions

    Lost your password?