coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: kat on July 30, 2005, 05:23:22 AM

Title: help with a midification (dont know wher to ask)
Post by: kat on July 30, 2005, 05:23:22 AM
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.
Title: Re: help with a midification (dont know wher to ask)
Post by: kat 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 pagefooter(); at the bottom, in an echo

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

replacing the "s in the js with 's