Advanced search  

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]

Pages: [1]   Go Down

Author Topic: ?? Cannot add attributes in <BODY> tag for my rollover  (Read 2969 times)

0 Members and 1 Guest are viewing this topic.

nori

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://www.saitomedia.com/photo
?? Cannot add attributes in <BODY> tag for my rollover
« on: November 13, 2003, 09:38:55 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
?? Cannot add attributes in <BODY> tag for my rollover
« Reply #1 on: November 14, 2003, 12:32:12 am »

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
Code: [Select]
$template_header = ereg_replace("<body[^>]*>",$replacement_body,$template_header);and replace it with
Code: [Select]
//$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
Logged

nori

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://www.saitomedia.com/photo
Thank you very much Gaugau ^__^
« Reply #2 on: November 14, 2003, 10:38:01 am »

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!
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 18 queries.