only load header on index only load header on index
 

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

only load header on index

Started by jmyers1643, March 06, 2007, 02:44:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jmyers1643

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.

Nibbler

Make it as a custom header, put the flash into a php file and wrap it inside a conditional based on $_GET['cat'].

jmyers1643

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

Nibbler

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