help with a midification (dont know wher to ask) help with a midification (dont know wher to ask)
 

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

Main Menu

help with a midification (dont know wher to ask)

Started by kat, July 30, 2005, 05:23:22 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

kat

im trying to use this js

<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.

kat

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 pagefooter(); at the bottom, in an echo

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

replacing the "s in the js with 's