Announcement

#1 2012-11-05 18:48:57

Oscar
Guest

Icy_modify_picture not compatible with FCK editor

Hi,

I have both extensions installed in my gallery. If I try to modify a picture description as admin I get the fancy textbox. However, if I try to edit the same picture description as a normal user I get the standard textbox. I'm not a dev, but I think it's not se difficult to get them work together.

Thanks!

 

#2 2012-11-08 13:55:40

Oscar
Guest

Re: Icy_modify_picture not compatible with FCK editor

I fixed it myself. Apply the following patch:

--- icy_picture_modify.php      2012-09-26 20:01:03.000000000 +0200
+++ icy_picture_modify.php.NEW  2012-11-08 13:52:56.000000000 +0100
@@ -423,6 +423,9 @@
// |                             template init                             |
// +-----------------------------------------------------------------------+

+$FCKEA = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'FCKEditor';"));
+if($FCKEA['state'] == 'active') set_fckeditor_instance($areas='description', $toolbar='Basic', $width='900px', $height='200px');
+
$template->set_template_dir(ICY_PICTURE_MODIFY_PATH.'template/');
$template->set_filenames(array('icy_picture_modify' => 'icy_picture_modify.tpl'));


Cheers,

 

#3 2012-11-08 14:14:37

icy
Translation Team
Vietnam
2011-06-30
105

Re: Icy_modify_picture not compatible with FCK editor

Very nice catch and patch. Thank you very much. I will fix in the source tree soon.

Offline

 

#4 2012-11-08 14:40:30

icy
Translation Team
Vietnam
2011-06-30
105

Re: Icy_modify_picture not compatible with FCK editor

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact