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: help with a midification (dont know wher to ask)  (Read 2533 times)

0 Members and 1 Guest are viewing this topic.

kat

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
help with a midification (dont know wher to ask)
« on: July 30, 2005, 05:23:22 am »

im trying to use this js
Code: [Select]
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function redirect(){
parent.location.href="pathtothumbs.php/thumbnails.php?album=1"
}
-->
</SCRIPT>
</HEAD>

<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
setTimeout("redirect()",0)
-->
</SCRIPT>
</BODY>

to get it to automaticaly take users to that album.
where must i insert each part of that code set to make it only redirect from the index.php page, and get no errors.
« Last Edit: July 30, 2005, 07:41:13 am by GauGau »
Logged

kat

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: help with a midification (dont know wher to ask)
« Reply #1 on: July 30, 2005, 06:12:13 am »

answered my own question, at least it appears to be working.

i added the head portion to the template.html for my theme (basic)

and added the body portion below the footer line in index.php, the
Code: [Select]
pagefooter(); at the bottom, in an echo
Code: [Select]
echo "<SCRIPT LANGUAGE='JavaScript'>
<!--
setTimeout('redirect()',0)";
-->
</SCRIPT>
replacing the "s in the js with 's
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.