PDA

View Full Version : Overlib Issue


brains
02-25-2007, 01:13 PM
I seem to be having an issue with the Overlib boxes. Some show and some dont.

When I hover over the announcements on the main home page the first announcement overlib can be seen....for the second announcement I get nothing.

For the subjects enrolled into....I see nothing but an empty overlib box for some and nothing for others.

Anyone any ideas?

den
02-25-2007, 02:12 PM
This problem could appear if your text has some special characters or quotes. Could you provide for me content of overlib boxes? (Usually it's a description of displayed item)

brains
02-25-2007, 02:51 PM
If i enter an announcement e.g. a test announcement just containing the word 'test' then the description appears as:

test
\r\n

The HTML code when viewed is:

test<br />
\r\n

This works FINE for the overlib.

However, if i remove the \r\n then the overlib does not work. It's not great having the description full of line escapes.

Any suggestions?

brains
02-25-2007, 03:02 PM
Hi Den

I think I have traced the problem to the WYSIWYG editor - JCE.

It seems to be adding the \r\n characters and additional < \br> tags which are causing the issue.

Anyone come across this before?

brains
02-25-2007, 03:07 PM
As an example the HTML output on the page after using the JCE editor:

onMouseOver='overlib("test
", CAPTION, "Description")' onMouseOut="return nd();">test</a>



When not using the JCE editor:

onMouseOver='overlib("test", CAPTION, "Description")' onMouseOut="return nd();">test</a>

Notice how it breaks the line.

brains
02-25-2007, 07:03 PM
I finally managed to track down the problem to the JCE editor.

/mambots/editors/jce.php

find the line that says:

tinyMCE.init({

Under this add the following:

cleanup : false,
verify_html : false,

Hope this helps others.

den
02-28-2007, 05:54 PM
May be those options possible to change from admin Back-End? In TinyMCE mambot settings i found the "Code Cleanup" option.

brains
03-01-2007, 10:39 AM
Yes, tried those options but it did not seem to work.