[solved] staticpage: pictures inserted into introduction

Found a bug? Tell us!!
Post Reply
proberlin
Regular
Posts: 23
Joined: Wed Aug 02, 2006 8:59 pm
Location: Berlin, Germany

[solved] staticpage: pictures inserted into introduction

Post 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?
Last edited by proberlin on Fri Nov 07, 2008 10:31 am, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: staticpage: pictures always inserted into introduction

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
proberlin
Regular
Posts: 23
Joined: Wed Aug 02, 2006 8:59 pm
Location: Berlin, Germany

Post 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...
proberlin
Regular
Posts: 23
Joined: Wed Aug 02, 2006 8:59 pm
Location: Berlin, Germany

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
proberlin
Regular
Posts: 23
Joined: Wed Aug 02, 2006 8:59 pm
Location: Berlin, Germany

Post 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!
Post Reply