G2 ImageBlock Plugin

May 6th, 2008 by Chris

Overview:
I wrote this plugin because my pre-widgitized theme incorporated a Gallery 2 ImageBlock. So when I converted the sidebar to a widgitized format, I needed an equivalent feature. Voila!

What it does:
Well, you’re looking at my blog now, right? See that picture in the sidebar? That’s what it does. See the above Gallery2 ImageBlock link for more info.

Options:
Title: The text you want displayed above your image. The standard widget title applies.
Gallery URL: The full path to your Gallery 2 install excluding the closing slash. For example, mine is: http://www.theschierers.net/gallery Note: Don’t include the closing slash.
All remaining options are passed directly to the Gallery2 External Block code. See the Gallery 2 ImageBlock help for more info.
g2_blocks: The G2 block or blocks to display.
g2_show: The details to show about the block.

Requirements:
Developed with WP2.5.1. Running (but not thoroughly option tested) on various versions between there and 2.6.2. Your mileage may vary.
My webhost has url_fopen disabled, so this is implemented using the libcurl() method. See the Gallery 2 Article: related How to Use the External Image Block When url_fopen is Disabled for details.

Version History:
2008 Sep 14, Version 0.1.4:
Updated version compatibility to WP 2.6.2.
2008 May 08, Version 0.1.3:
Fixed a comment typo.
2008 May 08, Version 0.1.2:
Added additional Image Block options. All listed G2 Image Block options are present. I don’t use them all, so I haven’t carefully tested all combinations.
2008 May 07, Version 0.1.1:
Provide basic functionality with form to select which imageblock. Use the options straight from the Gallery2 call.
2008 May 07, Version 0.1.0:
No options. Just a test.

Download here:
external-gallery2-image-block-plugin-014

Or download the External Gallery2 ImageBlock Plugin directly from the Wordpress Plugin Directory.