This is a demo of the Gallery2 Image Chooser version 3.0. It is available for download here.
This is primarily a demo for developers to see how they could integrate the Gallery2 Image Chooser into their embedded Gallery2 application.
A user-oriented demo is available here. It demonstrates the Gallery2 Image chooser in a WPG2 photoblog using both TinyMCE and quicktags.
There is also a demo in Traditional Chinese here to demonstrate G2Image's localization capability. (Thanks to Stephen Chu of www.ju-ju.com for the translation.)
Press the G2Image button to open the Gallery2 Image Chooser window.
Add any additional text that you'd like, then press the "Save to Results Area" button to update the "Results" area at the bottom. Then you can click on the image and you'll link to Gallery2!
To add G2Image to your application without using TinyMCE, you first need a named form with a named input field. Then you need a button that calls g2ic_open using the form name and field name as paramenters. Here is the code used in this demo:
<form name="demo_form" action="http://demo.steffensenfamily.com"> <textarea name="demo_content" style="width:500px" rows="10"> </textarea> <input type="button" name="g2image" value="G2Image" onclick="g2ic_open('demo_form', 'demo_content');" /> </form>
You must pass the form name, field name, and g2ic_tinymce=0 into g2image.php via the GET parameters, as demonstrated here.