Where does G2Image go? (D6/G2)

jimcintosh
jimcintosh's picture

Joined: 2008-03-03
Posts: 1
Posted: Sun, 2008-09-07 01:35

I have finally gotten Drupal 6 and Gallery 2 working great together. It really does everything I want. The only problem I have is that I can't get the D6 Gallery module to see G2Image. It keeps saying "However, the G2Image application is unavailable. Please download G2Image and install it as outlined in README.TXT." It is unclear which README.TXT it's talking about.

In the D6 Gallery module README.TXT it only says, "If you install G2Image (http://g2image.steffensenfamily.com) as either a standalone or TinyMCE plugin you will have an excellent image chooser for Drupal/Gallery2." That's not tremendously helpful.

In the G2Image README.HTML (could that be what the error message is referring to?) says "FTP the "g2image/" directory structure to a new folder called g2image in your TinyMCE or FCKEditor plugins directory." Okay, I have FCKEditor installed, but there are two plugin directories (...sites/all/modules/fckeditor/plugins and ...sites/all/modules/fckeditor/fckeditor/editor/plugins). But, it doesn't seem to matter which of the plugins directories I put it in, it never shows up.

I don't know what other README.TXT file there might be.

(I did update the fckeditor.config.js file with "FCKConfig.Plugins.Add( 'g2image' ) ;" and added "'G2Image'," to the toolbars, but that didn't do anything either. I also made sure to update the G2Image config.php file to have the pointers to my G2 installation.)

Just for good measure, I also uploaded the G2Image directory into ...sites/all/modules/gallery but that also didn't change anything. The G2Image tab of the Gallery module settings continues to say that the G2Image application is missing.

Now, just to drive me absolutely crazy, I see that the site http://d6.drupalgallery.com/ has G2Image installed and working, so I know that it is possible. I just don't know what I'm doing wrong. Any advice would be very, very, very much appreciated.

Site: http://jmc.me/pages/
Drupal: 6.4
Gallery 2: gallery-2.3-rc-1-full-en
Gallery module: 6.x-1.0-alpha3

 
captaindav

Joined: 2008-09-03
Posts: 6
Posted: Tue, 2008-09-09 10:30

I am having the same problem! Any assistance appreciated!

 
kimblev
kimblev's picture

Joined: 2008-09-09
Posts: 3
Posted: Wed, 2008-09-24 22:13

I am using Drupal 5.x but this worked for me: g2image goes in sites/all/modules/fckeditor/plugins. Same directory where you find DrupalBreak, DrupalPageBreak, etc.

Sounds like you did everything I did and then some. I pulled out my hair for a day and a half all because I did not do one thing that I saw mentioned in a few places as I searched the www for an answer.

Try clearing your browser cache!

Apparently any change you make to fckeditor.config.js (and maybe any other file) will not kick in until you clear your browser cache.

Also:

Quote:
"However, the G2Image application is unavailable. Please download G2Image and install it as outlined in README.TXT."

This gallery setting is irrelevant when g2image is embedded in FCKEditor.

 
djsilent

Joined: 2008-10-03
Posts: 2
Posted: Fri, 2008-10-03 17:17

I am also having this problem, but I'm using TinyMCE inside Drupal. I cannot get it to find the G2image directory no matter where I place it. Anyone else have an opinion of where it goes?

 
Bibek Sahu

Joined: 2008-10-04
Posts: 2
Posted: Sat, 2008-10-04 01:29

For this setup, it goes inside the tinymce plugins folder.

For me (with Drupal 6.4 installed in the root dir), this is:

<drupal_dir>/modules/tinymce/tinymce/jscripts/tiny_mce/plugins

As for getting the button to show up in TinyMCE, follow the instructions for Drupal-5.3 at: http://drupal.org/node/41590#comment-286527

For me, this amounted to:

* edit <drupal_dir>/modules/tinymce/plugins_reg.php
* add the following lines near the very end (just above the line "return $plugins;"):

Quote:
$plugins['g2image'] = array();
$plugins['g2image']['theme_advanced_buttons2'] = array('g2image');

* Finally, go to "Administer" -> "Site Configuration" -> "TinyMCE" -> [edit profile] -> "Buttons and plugins"
* Click on the "g2image" checkbox to make it visible (it's probably the last button).

- Bibek

 
kimblev
kimblev's picture

Joined: 2008-09-09
Posts: 3
Posted: Sat, 2008-10-04 00:58

Are you logged in as admin user #1? I installed it with TinyMCE first but switched to FCKEditor because I thought it worked better. I had trouble getting it to show up also in TinyMCE but discovered, by accident, that permission for G2Image is not automatic for admin user #1 like it is for Drupal modules. You have to create a role that has G2Image permission and then check that role in your admin 'my account' page.

 
Bibek Sahu

Joined: 2008-10-04
Posts: 2
Posted: Sat, 2008-10-04 01:41

The G2Image permissions ("access standalone g2image") appear to only be when using it as a standalone module - i.e., ignored when using it as either a TinyMCE or a FCKEditor plugin.

And for me, the permission was not automatic for any of the roles (Drupal 6.4).

(That said, I'm using it with TinyMCE, not standalone, and can say only that "for me, it still works in TinyMCE with the permissions off"... and have no idea what actually happens in other setups.)

 
penfield888

Joined: 2004-03-02
Posts: 43
Posted: Wed, 2008-10-15 21:34

I kept careful notes when I was getting all this up and running and have a long post on the gallery module group site

http://groups.drupal.org/gallery2-integration

I shoudl say that I just use the standalone version, not the TinyMCE integration.

------------------------------
Yosemite Explorer - info and virtual "tours" of Yosemite
Yosemite Photos - the part that actually uses Gallery