View Full Version : Overlib and <IMAGE_NOTE_CLEAN>
marcel1974
10-20-2006, 02:05 PM
Hey guys,
I an using the overlib javascript library. I read some posts about this subject, but I can't solve the problem I have.
This is the code I am using in the template:
<a onmouseover="return overlib('<IMAGE_TITLE>','<IMAGE_NOTES_CLEAN>');" onmouseout="return nd();" href="index.php?showimage=<IMAGE_PREVIOUS_ID>"><img id="photo" src="images/<IMAGE_NAME>"/></a>
The adress of the page is: www.amvanleeuwen.nl
The image notes however do not appear on a mouseover.
Can somebody tell me what I am doning wrong?
Thx,
marcel
Error: unterminated string literal
Source File: http://www.amvanleeuwen.nl/
Line: 1, Column: 34
Source Code:
return overlib('Marcel en Robin.','Marcel en Robin, broers. Samen op de foto op de huwelijksdag van Robin. Marcel was getuige van Robin. De huwelijksdag was op 14 juli 2005. Een hele bijzondere dag.
marcel1974
10-20-2006, 05:05 PM
GeoS, could you please explain what this error means en what I have to do to solve this?
I appreciate your support.
Dennis
10-20-2006, 06:08 PM
Marcel,
In plain English the "unterminated string literal," error means that you have a pair of quotes that don't match.
Looking at the documentation I found this:
onmouseover="return overlib('Clicking here does nothing!', CAPTION, 'Insert witty caption here...');" onmouseout="return nd();"
So please change your mouse over statement to:
onmouseover="return overlib('<IMAGE_TITLE>', CAPTION, '<IMAGE_NOTES_CLEAN>');"
Hope this helps.
marcel1974
10-20-2006, 08:29 PM
Found a solution: I replaced the code:
$image_notes = markdown(pullout($row['body']));
in the index.php file
by:
$image_notes = pullout($row['body']));
Now the overlib javascript functions correctly.
Allthough I don't understand the differency, I am happy that it functions.
See you next time!
Dennis
10-20-2006, 09:24 PM
It is in general not a good idea to change something in the core code of Pixelpost. This will haunt you when you update the code and you have to figure out why things are going wrong.
Markdown is a text-to-HTML filter; it translates an easy-to-read /
easy-to-write structured text format into HTML.
Have you tried my solution or didn't that work?
Markdown was a small mistake and oryginaly has got some bug with additional <p> tag at the beginning of text :/
marcel1974
10-21-2006, 01:07 PM
It is in general not a good idea to change something in the core code of Pixelpost. This will haunt you when you update the code and you have to figure out why things are going wrong.
Markdown is a text-to-HTML filter; it translates an easy-to-read /
easy-to-write structured text format into HTML.
Have you tried my solution or didn't that work?
I did try your solution, but it didn't work. Maybe there's a better solution but for the time being it works for me.
Check this out:
http://forum.pixelpost.org/showthread.php?t=3299&highlight=markdown+comment
Marek
11-08-2006, 12:54 AM
I had the same problems like marcel1974 and I changed the index.php, too. I erase the line 248 in index.php $image_notes = markdown($image_notes);
and now the overlib js works.
Probably starting from next version this (markdown) can be a option (if it still would be there).
Marek
11-10-2006, 11:45 AM
My alternative is not using overlib anymore I´m using boxover (http://boxover.swazz.org/) now.
And there are more such solutions like:
http://orangoo.com/labs/GreyBox/
http://jquery.com/demo/thickbox/
and so on.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.