G2Image version 2.2 beta

capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Sat, 2007-08-18 15:48

I've finished the beta for G2Image version 2.2. You can download it here.

G2Image 2.2 requires Gallery2 2.2.

Wordpress users should download the WPG2 v3.0 SVN snapshot, which includes the G2Image 2.2 beta in its entirety.

JCE 1.1 users should leave the file zipped and install it using the plugins manager under the JCE component.

The changes are mainly in the backend. They're pretty extensive to remove reliance on the Gallery2 ImageBlock function. This allowed me to more easily add LightBox functionality and full-size image insertion. I also made the gallery selection tool a little more user friendly.

Please submit any bug reports here.

For version 3.0, I'm going to gut the GUI and make it capable of selecting multiple images at one time. This will prevent having to reopen G2Image several times to insert several pictures.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2007-08-18 16:20

Don't know if this is the right way to update or not:
I just overwrote the g2image folder.

Gallery version: G2.2.2
WP version: 2.2.2
WPG2 version: 2.13

Error received when launching image chooser:

Quote:
Fatal Gallery2 Error: Cannot activate the Gallery2 Embedded functions.

For WordPress users, Validate WPG2 in the Options Admin panel.

For other platforms, please verify your Gallery2 path in config.php.

But I suspect that since you said:

Quote:
Wordpress users should download the WPG2 v3.0 SVN snapshot, which includes the G2Image 2.2 beta in its entirety.

I did not follow the correct procedure and bet that I need WPG2 v3 to test properly.
If that is the case then I will wait a bit more for WPG2 v3 to be closer to final version.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Sat, 2007-08-18 16:43
floridave wrote:
Don't know if this is the right way to update or not:
I just overwrote the g2image folder.

Dave,

For WPG2 users, Ozgreg gutted the backend of WPG2 (with some great improvements) that changed several of the embedding variable names. So, I had to change those names in G2Image. Bottom line is G2Image 2.2 will only work with WPG2 3.0.

I'd recommend reverting to G2Image 2.0 for now.

Thanks,
Kirk

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2007-08-18 17:12

Thanks, that is what I thought.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bvossey

Joined: 2007-08-19
Posts: 17
Posted: Sun, 2007-08-19 16:34

Hi capt_kirk,

I've downloaded the WPG2 v3.0 SVN snapshot and I install it with Wordpress.
In Wordpress, the status is "WPG2 Status: Validated".

But when I click on the G2Image icon (when I want to write an article), the windows G2Image opened with no image and this message :
"Error loading album entityError 1"

My tests :

- If I put the old version (WPG2 2.13), all working.
- I tried to put only G2Image and just a test (without Wordpress) and I have the same error message.

PS : My gallery is a multisite gallery. I don't know if this information could help you.
If you want, i can give you full access to my website in order to help you debug, just send me an e-mail.

Gallery version : G2.2.2
Wordpress : 2.2.2

Thanks for all.

Benjamin

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Sun, 2007-08-19 17:03
bvossey wrote:
My gallery is a multisite gallery. I don't know if this information could help you.

Benjamin,

Thanks. I haven't done any testing on a multisite gallery. It wouldn't surprise me that this is the cause of the bug.

First though, did you deactivate and reactivate the plugin after installing WPG2 v3.0? Several of the variable names changed between 2.1x and 3.0, so I think it's going to be important to deactivate and reactivate to clear out the embedding variables and reset them. (Although, now that I think about it, you should have gotten an error earlier in the code if this were the cause...)

I'll send you an e-mail about setting up a temporary account for me.

Kirk

 
bvossey

Joined: 2007-08-19
Posts: 17
Posted: Sun, 2007-08-19 19:18
capt_kirk wrote:
did you deactivate and reactivate the plugin after installing WPG2 v3.0? Several of the variable names changed between 2.1x and 3.0, so I think it's going to be important to deactivate and reactivate to clear out the embedding variables and reset them.
Kirk

Thanks to your advice. Now it's work... but I have others errors :D

- When I try to add an image with WPG2Tag, I clicked on "Insert" but nothing happen...
- For Thumbnail with LightBox link to Fullsized Image (HTML), the thumbnail isn't insert but instead I have "Error" in the form
Same problem with Fullsized image with link to Gallery page for image (HTML) and Fullsized image only - no link (HTML).

Thanks again for your software and your help.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Sun, 2007-08-19 20:10

Sorry. Should have said this in the first reply. Also, force a reload of the G2Image window itself. This will cause the javascript behind the window to reload. Unfortunately, this doesn't happen automatically even if the javascript has changed.

To do this, right click on a blank part of the g2image window and select "reload" or "refresh" depending on your browser.

Please let me know if that fixes it. It sounds like all of your errors are related to the changed javascript.

Kirk

 
hashiriya

Joined: 2006-10-24
Posts: 4
Posted: Mon, 2007-08-20 15:14

capt_kirk,

first, thanks so much for your efforts with the g2image plugin. Finally I can use g2image again! I am thrilled by the added ease of use with your plugin. However, I do seem to have a strange issue.

I am running Drupal 5.2, galler 2.2.2 and the new beta 2.2 plugin. I have the g2image plugin installed and setup for use in fckeditor as well as standalone. The great news is that the fckeditor plugin works great - no issues to report with that method. However, the standalone method produces java errors that were the same as when I was trying to use the 2.0 plugin with gallery 2.2.2.

To install the beta, I simply ftp'd the new files in and overwrote all to replace the old. Did I perhaps miss a step elsewhere? Any reason that you can think of why the fckeditor method works (it didnt work before) and the standalone does not work?

Thanks again for everything.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-08-20 15:44
hashiriya wrote:
I am running Drupal 5.2, galler 2.2.2 and the new beta 2.2 plugin. I have the g2image plugin installed and setup for use in fckeditor as well as standalone. The great news is that the fckeditor plugin works great - no issues to report with that method. However, the standalone method produces java errors that were the same as when I was trying to use the 2.0 plugin with gallery 2.2.2.

To install the beta, I simply ftp'd the new files in and overwrote all to replace the old. Did I perhaps miss a step elsewhere? Any reason that you can think of why the fckeditor method works (it didnt work before) and the standalone does not work?

I'm glad to hear that the fckeditor plugin is working! (To be honest, I hadn't tested it yet under the 2.2 beta.)

I don't have a Drupal testbed set up right now. I'll need to set one up over the next couple of days to see what's going on. I probably made a change that invalidated the Drupal embedding. I'll try to get back to you in a day or two.

Kirk

 
hashiriya

Joined: 2006-10-24
Posts: 4
Posted: Mon, 2007-08-20 15:48

thanks for the quick reply. If there is anything I can help with, please let me know.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-08-20 16:25

Hashiriya,

Is it actually giving you javascript errors or an error message? When I first try to activate g2image in standalone mode, it gives me this error

Quote:
Fatal Gallery2 Error: Cannot activate the Gallery2 Embedded functions.

For WordPress users, Validate WPG2 in the Options Admin panel.

For other platforms, please verify your Gallery2 path in config.php.

That error means that g2image can't find its way to Gallery2. I'll troubleshoot and figure that error out tonight.

If you're getting past that point and getting javascript errors, can you post them?

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-08-20 18:40

OK, now I've got G2Image working in Drupal under both TinyMCE and FCKEditor. I introduced a bug in the Drupal implementation as I rewrote the backend, which I hadn't tested yet since I didn't have a Drupal testbed setup. I'll put out a second beta tonight with the fix.

But now that I have it working in TinyMCE and FCKEditor, I'm seeing the javascript error in standalone mode. Are you seeing something like this:

Quote:
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost/drupal/modules/gallery/g2image/jscripts/functions.js :: insertAtCursor :: line 24" data: no]

I'm not sure what's causing it at this point. I'll have to do some more testing. If I can figure it out quickly enough, I'll fix it for the second beta.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-08-20 18:59

So, the javascript error I was seeing was because I had G2Image set to "Standalone" in the module configuration menu, while still having the TinyMCE module active. The G2 Module gives G2Image the wrong editor window name if it thinks it's in standalone mode when TinyMCE or FCKEditor are active. So, if you have FCKEditor active, you should set G2Image to "Disabled" in the Gallery settings. (I'll talk to Kieran about adding FCKEditor support to the configuration tool, now that it's supported by G2Image.)

EDIT: The second beta (correcting the Drupal error) is posted. You can download it here.

Thanks,
Kirk

 
hashiriya

Joined: 2006-10-24
Posts: 4
Posted: Mon, 2007-08-20 23:28

The NS_ERROR_FAILURE that you quoted above is exactly the error I had. Good to know the reason behind it. I'm personally thrilled that it works with fckeditor, and as such, there is no need for both methods on the same page. Thanks much for looking into the problem!

 
hashiriya

Joined: 2006-10-24
Posts: 4
Posted: Tue, 2007-08-21 00:34

sorry to bother again - are there any known issues with the Image Size option?

I attempted to use this to place an image at a set size like this:
1. choose fullsized image with link to gallery page (or any other photo option)
2. input size in Image Size box
3. Insert

However the inserted photo was the fullsized one, and it seems the image sizes that I specific are being ignored.
No errors are reported via firefox2 firebug, so I thought I'd ask about it. I can work around it by clicking on the input photo and then resizing via the image properties dialog in fckeditor, but it would be really nice to do all this in one shot.

thanks again.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2007-08-21 02:09
hashiriya wrote:
are there any known issues with the Image Size option?

Oh, yeah, sorry. It doesn't work.

I took it out of one section, but not the other. I'll pull it out of the final release or get it working. (I definitely want to add the ability to pick any of the resized images, not just the fullsized one, but it may not make it into this version.)

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2007-08-21 19:32

I just posted the fourth beta.

Demos here (standalone) and here (TinyMCE).

It's working in FCKEditor, but I haven't set up a FCKEditor demo, yet.

 
donut

Joined: 2007-05-24
Posts: 34
Posted: Thu, 2007-08-30 12:10

Hello,

I'm using G2image with wordpress and Deans fckeditor plugin ; Let me say that your plugin is really really usefull !
I tried to install WPG2 v3.0 SVN snapshot and everything was fine exept that I lost external header and footer of my theme ...
I saw they was called from wp-gallery before this version but not now in you V3.0 beta.

What can I do to keep my design the same ?

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Thu, 2007-08-30 12:39
donut wrote:
Hello,

I'm using G2image with wordpress and Deans fckeditor plugin ; Let me say that your plugin is really really usefull !
I tried to install WPG2 v3.0 SVN snapshot and everything was fine exept that I lost external header and footer of my theme ...
I saw they was called from wp-gallery before this version but not now in you V3.0 beta.

What can I do to keep my design the same ?

Donut,

I'm moving this question to the WPG2 3.0 support forum so that it will be easier for others to find the answer to the same question. Please see this thread for my answer.