?? Cannot add attributes in <BODY> tag for my rollover ?? Cannot add attributes in <BODY> tag for my rollover
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

?? Cannot add attributes in <BODY> tag for my rollover

Started by nori, November 13, 2003, 09:38:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nori

Hello everybody,

First of all, I would like to thank Coppermine for making such a great program available for public use.  I have installed in my website and it's working great.  Though, I have one small but pretty difficult issue I would like to present.

Q:  Does anyone know how to incert an extra attributes in <BODY> tag?

I have read everything about the faq.htm in regard to modifying the template.html, however, in that particular file, when I add attributes to the body tag for my image roller (generated by photoshop), it gets overwrited with  onkeydown = "onKeyDown()" statement.  Specifically, I need to add  ONLOAD="preloadImages();" attribute to the body tag, and I have looked into other PHP files with no luck.

Can anyone help me with this issue?  I would be greatly appreciated, for that I have been digging the codes for days without any results.  If there's a better alternative, I would like to hear about it as well.  Thank you very much in advance.

Nori

Joachim Müller

I'm the one to blame for this "strange behaviour", as this issue is closely related to the buggy "no right-click" feature I introduced into cpg1.2.0rc2.

To get rid of the silly bodytag replacement, edit include/functions.inc.php and look for$template_header = ereg_replace("<body[^>]*>",$replacement_body,$template_header);and replace it with//$template_header = ereg_replace("<body[^>]*>",$replacement_body,$template_header);
This solution only applies to cpg1.2.0rc2, the final won't have this bug in it.

GauGau

nori

I've followed your instructions and it did work great.  Although it's unfortunate to know that the no-right-click script you wrote is buggy, I am looking forward to the new updates.  As for now, your solution did solve my problem and I am a very happy person.  I will post my photo gallery link here as soon as I am done with the design.  Thanks again!   :D

-------033104-------
Ok, the link has been posted and thanks to the moderators for moving the thread to the appropriate forum:

http://forum.coppermine-gallery.net/index.php?topic=34&start=120

For direct access, http://www.saitomedia.com/photo

The rollover issue with the <BODY> tag has been resolved! Please take a look!