I’ve been trying to learn some PHP lately so I’m really chuffed I got this to work.
Anyway…
Backup your templates index.php file first (just in case:p)
Now open index.php and find on line 275…
[php]<!– BEGIN: HEADER –>
<div id=”ja-headerwrap”>
<div id=”ja-header” class=”clearfix” style=”background: url(<?php echo $tmpTools->templateurl(); ?>/images/header/<?php echo $tmpTools->getRandomImage(dirname(__FILE__).DS.’images/header’); ?>) no-repeat top <?php if($this->direction == ‘rtl’) echo ‘left’; else echo ‘right’;?>;”>[/php]and change to…
[php]<!– BEGIN: HEADER –>
<div id=”ja-headerwrap”>
<?php $menu = &JSite::getMenu(); ?>
<?php if ($menu->getActive() == $menu->getDefault()) { ?>
<div id=”ja-header” class=”clearfix” style=”background: url(<?php echo $tmpTools->templateurl(); ?>/images/header1/header1.jpg) no-repeat top <?php if($this->direction == ‘rtl’) echo ‘left’; else echo ‘right’;?>;”>
<?php } else { ?>
<div id=”ja-header” class=”clearfix” style=”background: url(<?php echo $tmpTools->templateurl(); ?>/images/header/<?php echo $tmpTools->getRandomImage(dirname(__FILE__).DS.’images/header’); ?>) no-repeat top <?php if($this->direction == ‘rtl’) echo ‘left’; else echo ‘right’;?>;”>
<?php } ?>[/php]
Note in the new text, /images/header1/header1.jpg is the path to the image you want to appear on the frontpage and you have to change it to suit yourself.
This new code will always display that image on your frontpage and will randomise all other header images.