g2image v.2.2.1 + drupal 5.1 + gallery v.2.2.2 + tinyMCE

thidalgo

Joined: 2007-08-26
Posts: 20
Posted: Sun, 2007-08-26 15:18

Hello,

Congratulations by your work with g2image. I finish installing in my Drupal v5.1 the version 2.2.1 of g2image. I believe that a small problem in the configuration exists.
My URL gallery2 is: http://tomashidalgo.nom.es/albumdefotos/
My URL embed gallery2 in Drupal is: http://tomashidalgo.nom.es/gallery
One URL-photo from my embed gallery is: http://tomashidalgo.nom.es/index.php?q=gallery&g2_itemId=45

The g2image configuration file config.php is:
<?php
// Configuration File for Gallery 2 Image Chooser for TinyMCE
// Version 2.0 RC4 and above
// By Kirk Steffensen - http://g2image.steffensenfamily.com/
// Released under the GPL version 2.
// A copy of the license is in the root folder of this plugin.

// Automatically generated by gallery.module (admin/settings/gallery).
// DO NOT EDIT
$g2ic_image_ext_regex = '@(jpg|jpeg|png|gif|bmp|svg|mov|mpg|mpeg)$@i';
$g2ic_gallery2_path = 'albumdefotos/';
$g2ic_embedded_mode = TRUE;
$g2ic_use_full_path = FALSE;
$g2ic_gallery2_uri = 'http://tomashidalgo.nom.es/albumdefotos/';
$g2ic_embed_uri = '/index.php?q=gallery';
$g2ic_drupal_g2_filter = TRUE;
$g2ic_drupal_g2_filter_prefix = 'G2';
$g2ic_language = 'en';
$g2ic_images_per_page = 10;
$g2ic_display_filenames = TRUE;
$g2ic_default_alignment = 'none';
$g2ic_custom_class_1 = 'not_used';
$g2ic_custom_class_2 = 'not_used';
$g2ic_custom_class_3 = 'not_used';
$g2ic_custom_class_4 = 'not_used';
$g2ic_class_mode = 'img';
$g2ic_click_mode = 'show_advanced_options';
$g2ic_click_mode_variable = 1;
$g2ic_default_action = 'drupal_g2_filter';
$g2ic_sortby = 'title_asc';
$g2ic_custom_url = 'http://';
?>

When use the icon of g2image from tinyMCE and appears the window with the options does not show the icons to me. I have verified that the route of the icons makes reference to -gallery2-. For example:
http://tomashidalgo.nom.es/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=43

I believe that I would have to show the embed URL of Drupal:
http://tomashidalgo.nom.es/index.php?q=gallery&g2_itemId=43

is one bug of new version 2.2.1 of g2image? With drupal 4.7.7 and g2image 2,0 it works fine.
It is a problem of incomplete configuration?

Many Thanks for you help.

Tomas Hidalgo
thsa(at sign)cajamar(dot)es

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Sun, 2007-08-26 15:47
thidalgo wrote:
When use the icon of g2image from tinyMCE and appears the window with the options does not show the icons to me. I have verified that the route of the icons makes reference to -gallery2-. For example:
http://tomashidalgo.nom.es/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=43

I believe that I would have to show the embed URL of Drupal:
http://tomashidalgo.nom.es/index.php?q=gallery&g2_itemId=43

Tomas,

Everything in the config file looks correct.

The links to your images should be
http://tomashidalgo.nom.es/albumdefotos/main.php?g2_view=core.DownloadItem&g2_itemId=43

The image links are not embedded because they're actually telling Gallery2 to generate the single image. That's what the DownloadItem part does.

So, the question is why it's substituting gallery2 for albumdefotos. I don't see anything obvious in the code, and when I've tested it on my testbed, I've only ever used gallery2/ for my gallery directory, so it's worked like a charm. I'll see what I can figure out and get back to you.

Thanks,
Kirk

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Sun, 2007-08-26 16:04

I found the bug. I'll get it fixed and out later today as 2.2.2. It will affect anyone who is not using gallery2/ as their gallery path. Error on my part as I rewrote the way it gets the URL for the images.

Thanks,
Kirk

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Sun, 2007-08-26 16:32

OK, I just posted v2.2.2. Please download it and verify that it fixed it for you.

Thanks,
Kirk

 
thidalgo

Joined: 2007-08-26
Posts: 20
Posted: Sun, 2007-08-26 19:28

Kirk,

I have downloaded the new version 2.2.2. It works fine!
Best for you!!!!

P.D.: Kirk, Shortly, I would like to explain a new functionality of the module gallery for Drupal that is not including in your magnify pluging g2image. My English is very poor!! Excuse me!!!