Joomla 1.5, Gallery2, and Gallery2Bridge - G2Image Icon not showing up in TinyMCE toolbar

Hammers

Joined: 2006-04-24
Posts: 48
Posted: Mon, 2008-06-09 22:56

I started here:
http://forum.4theweb.nl/showthread.php?t=1022&page=3

and here:
http://g2image.steffensenfamily.com/index.php?title=Joomla

I'm running:
Joomla 1.5.3
Gallery 2.2.4
Gallery2Bridge (Sil3nt's latest build)
G2Image 3.0.3

Joomla, Gallery, and Gallery2Bridge are all up and working.

I unzipped G2Image to my machine.
I edited config.php in the g2image directory with the following:

Quote:
$g2ic_gallery2_path = "gallery/";

$g2ic_language = 'en';

$g2ic_images_per_page = 15;

$g2ic_display_filenames = FALSE;

$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_custom_url = 'http://';

$g2ic_class_mode = 'img';

$g2ic_default_action = 'thumbnail_image';

$g2ic_sortby = 'title_asc';

$g2ic_embedded_mode = TRUE;

$g2ic_use_full_path = FALSE;

$g2ic_gallery2_uri = 'http://www.nospam.com/gallery/main.php';

$g2ic_embed_uri = 'http://www.nospam.com/index.php?option=com_g2bridge&view=gallery&Itemid=74';

I FTP'd this directory to create:
/nospam.com/plugins/editors/tinymce/jscripts/tiny_mce/plugins/g2image/

I modified the following file:
/nospam.com/plugins/editors/tinymce.php

with the following lines:

Quote:
plugins : \"advlink, advimage, g2image, $plugins\",
theme_advanced_buttons2_add : \"$buttons2, separator, g2image\",

I accessed my administrator site on a machine that has never been to my administrator site (no cache issues). I went to the article manager and started to create a new article. The TinyMCE editor launched, but I didn't notice any new icons in the toolbar. Should there be a new G2 Icon in the toolbar for me to use?

Have I missed a critical step in the installation?

Thanks,
Hammers

 
sil3nt

Joined: 2007-04-12
Posts: 11
Posted: Tue, 2008-06-10 12:31

Hello,

I noticed that there is a problem with the tinyMCE in joomla. I get the following js error:

editor_plugin.js (line 21)
tinymce is not defined
tinymce.PluginManager.requireLangPack('g2image');

Maybe it helps someone who knows more about tinymce. I thinks it is realated to a new version.

Best Regards
Chris

 
Hammers

Joined: 2006-04-24
Posts: 48
Posted: Tue, 2008-06-10 19:44

Ok, after looking closely at things, I came to realize that G2 Image version 3.0.3 is designed to work with TinyMCE version 3.x. The problem I experienced is that the default version of TinyMCE with Joomla 1.5.3 is version 2.0.

At this point I had two options. I could either go for G2 Image version 3.0.2 or I could change my default editor to JCE version 1.5.0 RC1. I took the second option because JCE seems to be a more robust editor. I installed JCE 1.5.0 RC1 admin component and then I installed the JCE 1.5 editor plugin.
Once I tested that those were working I went into the JCE 1.5 admin component and installed G2 Image 3.0.3 and it says it successfully installed.

Next I went here:
/nospam.com/plugins/editors/jce/tiny_mce/plugins/g2image/config.php

And put in this:

Quote:
<?php

$g2ic_gallery2_path = "gallery/";

$g2ic_language = 'en';

$g2ic_images_per_page = 15;

$g2ic_display_filenames = FALSE;

$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_custom_url = 'http://';

$g2ic_class_mode = 'img';

$g2ic_default_action = 'thumbnail_image';

$g2ic_sortby = 'title_asc';

$g2ic_embedded_mode = TRUE;

$g2ic_use_full_path = FALSE;

$g2ic_gallery2_uri = 'http://www.nospam.com/gallery/main.php';

$g2ic_embed_uri = 'http://www.nospam.com/index.php?option=com_g2bridge&view=gallery&Itemid=74';

$g2ic_drupal_g2_filter = FALSE;

?>

I am again experiencing the same problem I had before. I cleared temporary cache. Opened an article and when I look at the JCE editor, there is no G2Image icon. I did a <shift> refresh and it did not appear.

From here:
http://g2image.steffensenfamily.com/index.php?title=Joomla

I am following the instructions:

Quote:
JCE
Leave the download file zipped and install it with the JCE plugin manager.
Afterwards you will need to edit the config file with the correct settings. It's located at /mambots/editors/jce/jscripts/tiny_mce/plugins/g2image/
A huge thanks to Ron Field for doing most of the Joomla! integration work!

Any help?

Thanks,
Hammers

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2008-06-10 19:43
Hammers wrote:
I am again experiencing the same problem I had before. I cleared temporary cache. Opened an article and when I look at the JCE editor, there is no G2Image icon. I did a <shift> refresh and it did not appear.

Can you try it on a different computer and/or from a different browser? I've seen Firefox hold on to the Javascript for a while, even though I've forced a refresh.

Also, I think the new version of JCE requires that you publish the plugin from the JCE plugins manager, but I don't have easy access to my testbed right now to confirm that. So, can you check the JCE plugins manager to make sure that G2Image is published?

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

 
Hammers

Joined: 2006-04-24
Posts: 48
Posted: Tue, 2008-06-10 19:51

I tried it on another machine in the lab that has never been to my site. Same result - no icon.
I did go into the JCE plugin manager to make sure it was enabled. It is by default.
There isn't much to configure in the plugin itself.

 
Hammers

Joined: 2006-04-24
Posts: 48
Posted: Tue, 2008-06-10 20:00
 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2008-06-10 20:00
Hammers wrote:
I tried it on another machine in the lab that has never been to my site. Same result - no icon.
I did go into the JCE plugin manager to make sure it was enabled. It is by default.
There isn't much to configure in the plugin itself.

Hmm. I'm stumped. If it's enabled in JCE, the button should be there. Do you have Firebug installed? If so, are you getting any Javascript errors? If not, could you install it and check it out.

(I think the button shows up in a strange spot in JCE 1.5.x. I only tested it enough to make sure that it works, but I think I remember it showing up to the left on the bottom row. I'll try to find time to fire up my Joomla testbed later tonight after taking the kids to Scouts.)

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

 
Hammers

Joined: 2006-04-24
Posts: 48
Posted: Tue, 2008-06-10 20:06

[img]http://img391.imageshack.us/img391/6640/95094439ms2.jpg[/img]

Here are some screenshots. Looks like the first two I snuck in at the same time you were posting.

Thanks for looking into it. And hey, scouts are important. I'm an Eagle and former Philmont Ranger (10+ years ago).

Hammers

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2008-06-10 20:14

Hammers,

Yeah, I remember more now from your screenshots. The icon should be on the bottom row to the left, with the default settings of 4th row position 1.

Any luck with finding anything using Firebug in Firefox? (What browser are you using? It's interesting that the icons are centered. I'm pretty sure they're left justified on my testbed using Firefox.)

(Eagle Scout here and Philmont camper as a kid in 1981. One of my boys and I are going to Philmont next summer. Can't wait to get back. Hope to get a trek with both Baldy and the Tooth of Time like I did when I was a kid.)

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

 
Hammers

Joined: 2006-04-24
Posts: 48
Posted: Tue, 2008-06-10 20:22

I just now installed Firefox (was using IE7). I installed Firebug, but I've never used it. I enabled it, made sure the "error window" was clear and refreshed the article editor. I got lots of errors.

Also, in Firefox they are left justified.

[img]http://img55.imageshack.us/img55/2831/37064294nd0.jpg[/img]

Yeah, I've been up Baldy a couple times. Tooth of time is a favorite....I still remember the Ranger speech we gave about the tooth of time... an igneous intrusion of dacite porphyry formed during the tertiary period.... (spelling is probably wrong, I only learned it phonetically). I went back in 2005 for a weekend... some of my old mates were still there believe it or not. Have fun and take lots of pictures with your son.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2008-06-10 20:32

Unfortunately, those are all just CSS errors due to TinyMCE's crappy quality control on their CSS. Nothing jumping out about why it's not working. I'll have to fire up my testbed to see what I get later tonight.

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

 
Hammers

Joined: 2006-04-24
Posts: 48
Posted: Tue, 2008-06-10 21:06

Ok, I could probably use a break from all of this anyway. :)
I'll check back in tonight. Thanks again, I hope to get it working, it looks like it has a lot of utility. I appreciate your efforts.

EDIT: Also, I don't 100% trust what I've put in the config.php. Would incorrect information there prevent the button from appearing? Or would a mistake there only crop up after I get the button to appear and press it?

Hammers

 
sil3nt

Joined: 2007-04-12
Posts: 11
Posted: Wed, 2008-06-11 08:45

Hello,

I solved the problem with the not shown image! You have to go to the group manager of the editor, select the default layout. Now you have the group layout editor,
drag the g2image icon from the default layout to the grouplayout, save it and it should be done. The image will now be shown.

Best Regards
Chris

 
Hammers

Joined: 2006-04-24
Posts: 48
Posted: Wed, 2008-06-11 14:10

Yes. You are brilliant. Verified - works.
I didn't know enough about JCE to try that.
I want to play with it, but I have to go to a meeting.
Initial testing works. Now I have to figure out how to size the thumbnail how I want it.
You guys are great.

Hammers

 
Hammers

Joined: 2006-04-24
Posts: 48
Posted: Wed, 2008-06-11 20:15

Ok.
I am having two difficulties.

1) There is no option to link from fullsized image to the album parent. I discovered that once I post a fullsize picture with the G2 icon, I can press the regular image icon and resize the image down to what I need. However, it will only link to the image, not to the parent album.
If I choose the thumbnail option which is linked to the parent album and then resize it larger, the picture is pixelated.

2) When I use the fullsize option, the image needs to be rotated 90 degrees. If I have a picture that someone took with the camera at 90 degrees it looks OK in the Gallery. It also looks OK when I use thumbnail in g2Image. However, if I choose fullsize in g2Image, then the picture is back to the original orientation and not really viewable.

Any ideas?

Hammers

 
keanu13

Joined: 2008-06-25
Posts: 1
Posted: Wed, 2008-06-25 05:19

Hi!

I've recently upgraded my joomla old version to new one joomla 1.5.3. Here i am facing one difficulty. i am not able to see any image/logo at the home page even though its shows in back end CMS & Preview. Everything is working fine : content, layout but image or logo doesn't show up? Pls do help me what should i do?

do i have to upgrade any other component or change any setting? If yes pls let me know!

 
yan2626

Joined: 2009-04-02
Posts: 1
Posted: Thu, 2009-04-02 11:09

On selecting the Image Chooser, the pop-up form will show all the photo album in gallery2. However, how can i confine the album that is owned by the author himself? Please help.

 
grantiago

Joined: 2002-08-23
Posts: 78
Posted: Wed, 2009-04-08 23:57
sil3nt wrote:
Hello,

I solved the problem with the not shown image! You have to go to the group manager of the editor, select the default layout. Now you have the group layout editor,
drag the g2image icon from the default layout to the grouplayout, save it and it should be done. The image will now be shown.

Best Regards
Chris

Thanks. And where would one find the group manager of the editor?