*cry for help!* embedding pictures in a Joomla content

X-Bit
X-Bit's picture

Joined: 2007-06-18
Posts: 31
Posted: Mon, 2008-12-08 18:38

I am not sure, if I am at the right place here...

My figures:

- Joomla 1.5.8 (working properly)
- Gallery2 2.3 with standard template (working properly)
- G2Bridge branches_sil3nt-r203 (working properly)
- G2Image v3.0.3 >>>>> (not working at all!)
- JCE 1.5 stable (working properly)

I really tried, searched and found nothing... to embed Pictures with the JCE-Editor from the Gallery2!

As I understand, the G2Image is not Joomla 1.5.8 ready... and although I had a hard time to try to set it up, it as well does not function in JCE.

Are there any other solutions (3rd party or even from Gallery2) to give access to the pictures in Gallery2, besides G2Image and a "Symlink" (which is not possible on my hosted environment!)?

Thank you so much for any feedback!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2008-12-08 18:40
 
X-Bit
X-Bit's picture

Joined: 2007-06-18
Posts: 31
Posted: Mon, 2008-12-08 18:55

...this was quick suprsidr, thank you! I will surely have a closer look at this one, although it seems to be a little complicated for newbie users, which will have to insert the content in Joomla... or am I wrong?!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2008-12-08 19:04

I'm not a joomla user, but I doubt you would allow casual users to use php in stories/articles. Admins on the other hand.
So G2Image would probably be a better fit.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
X-Bit
X-Bit's picture

Joined: 2007-06-18
Posts: 31
Posted: Mon, 2008-12-08 19:09

*sigh* thats what i thought... is there any way round G2Image, as it seems not working under my system configuration?!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2008-12-08 19:20

Kirk's instrucions:

Quote:
Joomla JCE v1.5 users should leave the file zipped and install it using the plugins manager under the JCE component.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
X-Bit
X-Bit's picture

Joined: 2007-06-18
Posts: 31
Posted: Mon, 2008-12-08 19:25

...you may believe me, that I read those instructions for about a 1000 times. Installed, tried, deinstalled...
The big problem is, that the settings at the config.php of G2Image are poorly explained and I really tried hard to get it working, with no success. Maybe somebody who got it up an running could give me some inputs?!

As for now, I am almost giving up on G2Image, tried to setting it up for the whole week-end!

It would be, what I needed... if it worked. Thats why I asked for an other way round.

 
X-Bit
X-Bit's picture

Joined: 2007-06-18
Posts: 31
Posted: Mon, 2008-12-08 19:27

here my error message:

Notice: Undefined index: tinymce in /var/www/vhosts/afink.org/httpdocs/v2.0/plugins/editors/jce/tiny_mce/plugins/g2image/g2image.php on line 763

Notice: Undefined index: tinymce in /var/www/vhosts/afink.org/httpdocs/v2.0/plugins/editors/jce/tiny_mce/plugins/g2image/g2image.php on line 766
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.

an here my settings:

$g2ic_gallery2_path = "/var/www/vhosts/my-domain/httpdocs/my-sub/gallery2/";

$g2ic_embedded_mode = TRUE;

$g2ic_use_full_path = TRUE;

$g2ic_gallery2_uri = 'http://my-domain/my-sub/gallery2/main.php'

 
X-Bit
X-Bit's picture

Joined: 2007-06-18
Posts: 31
Posted: Mon, 2008-12-08 19:32

and at the "$g2ic_embed_uri =" I really do not know, what to enter... I do not find any usefull info regarding this parameter!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2008-12-08 19:38

try:
$g2ic_gallery2_path = "/var/www/vhosts/afink.org/httpdocs/G2/";

$g2ic_embedded_mode = TRUE;

$g2ic_use_full_path = TRUE;

$g2ic_gallery2_uri = 'http://www.afink.org/G2/main.php';

$g2ic_embed_uri = 'http://www.afink.org/index.php?option=com_gallery2&Itemid=26';

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
X-Bit
X-Bit's picture

Joined: 2007-06-18
Posts: 31
Posted: Mon, 2008-12-08 19:49

where did you took those values from? Please understand, that the migrated site is accessable under www.afink.org/v2.0/!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2008-12-08 19:55

ok:
$g2ic_gallery2_path = "/var/www/vhosts/afink.org/httpdocs/v2.0/gallery2/";

$g2ic_embedded_mode = TRUE;

$g2ic_use_full_path = TRUE;

$g2ic_gallery2_uri = 'http://www.afink.org/v2.0/gallery2/main.php';

$g2ic_embed_uri = 'http://www.afink.org/v2.0/index.php?option=com_g2bridge';
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
X-Bit
X-Bit's picture

Joined: 2007-06-18
Posts: 31
Posted: Mon, 2008-12-08 20:04
Quote:
$g2ic_embed_uri = 'http://www.afink.org/v2.0/index.php?option=com_g2bridge';

...and here I do not understand the point!

shouldnt it be "http://www.afink.org/index.php?option=com_gallery2" ???

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2008-12-08 20:10

Its the url to your embedded gallery and
http://www.afink.org/v2.0/index.php?option=com_g2bridge
takes me there. But as I stated above, I'm not a joomla user so if it does not work, try yours or ask in the joomla forums.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
X-Bit
X-Bit's picture

Joined: 2007-06-18
Posts: 31
Posted: Mon, 2008-12-08 20:13

I am getting the feeling, that I am using two differend components... I will delete the bridge and download it from your link you stated above.

Anyway... thanks alot for your appreciated help!

P.s.: Joomla forum does not know an answer to this one as well!

 
X-Bit
X-Bit's picture

Joined: 2007-06-18
Posts: 31
Posted: Mon, 2008-12-08 20:32

...one last question... using G2Bridge from "sil3nt" is probably another bridge than this we are talking from. Agree?!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2008-12-08 20:40
 
X-Bit
X-Bit's picture

Joined: 2007-06-18
Posts: 31
Posted: Tue, 2008-12-09 16:29

After a good sleep, I reinstalled all the plugins, checked the properties and... I reiceve a new error message (for me this is a goog sign!):

Parse error: syntax error, unexpected T_VARIABLE in /var/www/vhosts/afink.org/httpdocs/v2.0/plugins/editors/jce/tiny_mce/plugins/g2image/config.php on line 41

I checked the line 41 in config.php and I found:

// Set the language for the main g2image popup window.
// There must be a corresponding xx.mo file in the g2image/langs/ directory.
// If there is not a corresponding xx.mo file, English will be used.

$g2ic_language = 'en';

So I went and had a look, if the there exists a "en.mo"... there isnt! Anyway (this could be set in another way) I changed to "de" as there is an corresponding ".mo" file.

This action did not helped, as I still get the same errorline...

Any ideas for my blanked nerves?

 
X-Bit
X-Bit's picture

Joined: 2007-06-18
Posts: 31
Posted: Tue, 2008-12-09 16:35

TATAAAAAAA!

A missing ";" at the line before was causing this error and IT WORKS!

Many thanx to suprsidr who gave me a good an long help!

Summary of all this... had a bad com_g2bridge (or an bad install of it) caused me all this headache... but finally, it works!