Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: help with a midification (dont know wher to ask)  (Read 2529 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.018 seconds with 20 queries.