Page 1 of 1

[solved] staticpage: pictures inserted into introduction

Posted: Wed Nov 05, 2008 12:48 pm
by proberlin
hi all,

i am using serendipity 1.3.1 and php 4.4.9
the staticpage plugin (3.72)
the lightbox/thickboxjs/greybox (1.9.1)
and the template bulletproof v1.3.

browsers: firefox 3 and ie 7

i am experiencing the following problem in both browsers: if i am clicking into the main content textfield on a static page and insert a picture there via the button "manage pictures", then it is always inserted into the introduction textfield - although the cursor was in the main content field.

i already tried it with different templates and i also reinstalled lightbox/thickbox/greybox, but that didn't help.

i tried to find a solution to this in this forums, but unfortunately i wasn't successful.

does somebody have an idea why this is not working?

Re: staticpage: pictures always inserted into introduction

Posted: Wed Nov 05, 2008 1:02 pm
by garvinhicking
Hi!

thickbox/lioghtbox and the template can be excluded from the list of possible causes.

The fix is sadly inside the s9y core.

You can fix this inside the include/functions_entries_admin.inc.php file. Search for:

Code: Select all

editorref = editor<?php echo $jsname; ?>;
and replace it with:

Code: Select all

editorref = editor;
I've also committed this to the upcoming s9y 1.4 release code branch.


HTH,
Garvin

Posted: Wed Nov 05, 2008 1:27 pm
by proberlin
thank you very much for your quick reply!

this way it works perfectly.

now i only have to find out where i disabled the full insertion of the whole url for the pictures, so that greybox will work again...

Posted: Wed Nov 05, 2008 1:37 pm
by proberlin
hi garvin,

i realized that the pictures are inserted now in the correct textfield, but greybox is not working any more - although the links to my pictures are correct. instead of opening greybox, the picture itself is opened, if you click on it.

can you help me with this prob too?

Posted: Wed Nov 05, 2008 3:38 pm
by garvinhicking
Hi!

Please show me the URL of such a staticpage where the link does not work.

My patch should not have affected any of this greybox stuff!

Regards,
Garvin

Posted: Fri Nov 07, 2008 10:30 am
by proberlin
garvin found the solution for the problem, that the "lightbox/thickbox js/graybox"-plugin is not working, although it is installed and activated:

in order to get it working, you have to activate "format text" in the staticpage-plugin, because "lightbox/thickbox js/graybox" is in fact a text-formatting plugin.

thanks a lot, garvin!