[Solved] Customize G2 Image Chooser a little bit

ty2d

Joined: 2003-01-04
Posts: 103
Posted: Wed, 2007-10-31 19:23

First let me say thanks for this wonderful tool, which is one of the most used tools for me on my site.

To make it even more efficiently for my own usage, i want to customize it a little bit and therefor i could need some help.

First i would like to change the width of the album tree side, so i can better read the album names (i have really long album titles in form of "eventname @ location [Town] Date").

Second i would like to have the name of the actually choosen album to be displayed on top of the right side of the window (the side where you choose your thumbnail).

Could someone please help me to achieve this?

Rgds,
ty2d

 
ty2d

Joined: 2003-01-04
Posts: 103
Posted: Sun, 2007-11-04 19:10

nobody?

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-11-05 14:25

Sorry for the delay. I wasn't on the right computer to look at the code when I first read your message, and then I forgot about it.

The width of the album tree is controlled in line 33 of g2image.php. Just change width="200px" to whatever width you'd like.

For the current album, try inserting the following after line 39 in g2image.php, so that it looks like this when you're done:

echo '                    <div class="main">' . "\n";

echo '<div>' . "\n";
echo '    <fieldset>' . "\n";
echo '        <legend>' . T_('Current album:') . ' ' . $g2ic_album_info['title'] . '</legend>' . "\n";
echo '    </fieldset>' . "\n";
echo '</div>' . "\n";

if ($g2ic_options['wpg2_valid']) echo g2ic_make_html_wpg2_album_insert_button();

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
ty2d

Joined: 2003-01-04
Posts: 103
Posted: Mon, 2007-11-05 17:24

No problem ;)

It works perfect and i would recommend that you take the second change (display name of the current selected album) to the next version of g2image.

Many thanks from germany