coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: jmyers1643 on March 06, 2007, 02:44:38 PM

Title: only load header on index
Post by: jmyers1643 on March 06, 2007, 02:44:38 PM
is there a way to only show a header on the index page, i have a decent size flash header and do not want it loading on the entire site.
Title: Re: only load header on index
Post by: Nibbler on March 06, 2007, 04:01:31 PM
Make it as a custom header, put the flash into a php file and wrap it inside a conditional based on $_GET['cat'].
Title: Re: only load header on index
Post by: jmyers1643 on March 06, 2007, 07:18:07 PM
Quote from: Nibbler on March 06, 2007, 04:01:31 PM
Make it as a custom header, put the flash into a php file and wrap it inside a conditional based on $_GET['cat'].

thanks for the suggestion, however that solution exceeds my skills..  :P
Title: Re: only load header on index
Post by: Nibbler on March 06, 2007, 07:25:36 PM
Save this as header.php in your Coppermine directory


<?php

if ($_SERVER['PHP_SELF'] == 'index.php' && empty($_GET['cat'])){

?>


Your header here

<?php
}


Adding in your flash header as indicated. Then go into config and set 'Themes settings -> Path to custom header include' to header.php