G2Image FCKEditor in MediaWiki

andre14100

Joined: 2009-01-02
Posts: 6
Posted: Fri, 2009-02-20 20:25

Hi everybody,

Debian Etch FCKEditor nightly and G2 30.3

I use G2Image with FCKEditor. FCKEditor is the default editor of MediaWiki.

FCKEditor is working in mediawiki but I have some difficulties to install G2Image. I installed it in /mediawiki/extensions/FCKEditor/fckeditor/plugins but I can't see the button "G2Image" in the toolbar of FCKEditor
I followed theG2Image installation guide about FCKeditor but ....nothing!
Any idea?

Thanks a lot
André

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2009-02-20 20:33

in fckeditor/fckconfig.js you need to add the plugin
FCKConfig.Plugins.Add( 'g2image' );
look for where the others were added, and place that around there.
also the g2image directory should be at
fckeditor/editor/plugins/g2image

you will need to clear your browser's cache

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

 
andre14100

Joined: 2009-01-02
Posts: 6
Posted: Sat, 2009-02-21 16:05

Hi,
Ok I tried that and everything sounds to be OK
but.. I don't see G2Image in the toolbar

I tried to install it in Joomla, I installed FCKeditor (Joomla's plugin ) and g2image as a FCKeditor's plugin

FCK is OK and works but I don't see g2image in the toolbar!!

I work on a personnal server under etch; joomla, mediawiki and gallery2 are installed in /usr/share/mediawiki
/usr/share/joomla
usr/share/gallery2

Could we have a problem with the Path??? It sounds not because in each application FCKeditor is OK!!

Is there any way to test if g2image is OK from FCK without the button "g2image"

Thanks for any advice
André

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2009-02-21 16:36

look in fckeditor/editor/plugins/g2image/fckplugin.js and make sure all the paths are correct.
Its important to make sure that your implementation is all capitalized the same.
If FCKConfig.Plugins.Add( 'g2image' ); is lowercase g2image then the directory path must also be lower case as well as most of fckplugin.js.
Firebug plugin for firefox will tell you if there are js errors pertaining to this.

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

 
andre14100

Joined: 2009-01-02
Posts: 6
Posted: Sun, 2009-02-22 13:39

HI,

By now it's OK with Mediawiki and fck but my structure of directories is :

Mesiawiki/exytensions/FCKeditor/fckeditor/editor/plugins

and to get g2image in the toolbar I had to copy /g2image in /FCKeditor/plugins at the same level than /pluins/mediavision

After that I modified /FCKeditor/fckeditor_config.js to add G2Image in the Toolbar "Wiki" and FCKConfig.Plugins.Add('g2image')

and it's OK

the window with all the album opened, but when I open an album I can see the name of the photo, the details but I can't see the thumbnail, I can see the place of the thumb but it's empty!
First I cut the extensions of the files in Gallery but I tried with others pictures with a full name name.jpg and it's the same problem!!

Do you have any ideas

Thanks a lot
André

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2009-02-22 15:36

Sounds like your $g2ic_gallery2_uri and $g2ic_embed_uri are wrong.
in fck.../plugins/g2image/config.php near the bottom, make sure the urls are correct.

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

 
andre14100

Joined: 2009-01-02
Posts: 6
Posted: Sun, 2009-02-22 16:49

Very good diagnostic !!

Embedded must be at TRUE

and the URL was on //localhost/gallery2/ !!

By now everything is OK

I will try to install it on Joomla with FCK !!

Thanks a lot

Best regards
André

 
andre14100

Joined: 2009-01-02
Posts: 6
Posted: Sat, 2009-02-28 20:40

Hi,
I am coming back and I am always in MediaWiki:

G2Image is OK, from MadiaWiki and FCK I can choose a picture and insert it in my text. I see it in my text before I try to save it (or put it on line)
If I put my text on line I see only the link which is the good one.
Soryy I go on.
The link is the good one, I can see the picture by clicking on the link but i can't see the picture in the text.
Debian Etchright w on .images
Any ideas
Thanks a lot
Best regards
André