Originally Posted by Ian
tell us more wink


This is (part) of my headercode...

PHP Code

<?
$datum = date(md);

if ($datum>1205 | $datum<0106) { $event='kerst'; } 

elseif (($datum>"0320") && ($datum<"0325")) { $event='paas'; }
elseif ($datum=="0430") { $event='koningin'; }
elseif ($datum=="0521") { $event='verjaardag'; }
elseif ($datum>"1100") { $event='sint'; }
elseif ($datum>"1000") { $event='halloween'; } 
else { $event=''; }

if ($category==3) { $logo=$event.'kc'; } else { $logo=$event.'tp'; }

echo "<a href=\"/ubb/ubbthreads.php\"><img src=\"/images/".$logo."tim.png\" border=\"0\" style=\"padding: 5px;\" alt=\"\" /></a></td><td align=\"right\" valign=\"top\">";

$kcorg="Kermisclub organizer";

$tporg="Themepark organizer";

if ($category==3) { $kcorg="<b>".$kcorg."</b>"; }

if ($category==2) { $tporg="<b>".$tporg."</b>"; }

echo "<a href=\"/scripts/tporganizer/\">$tporg</a><br /><a href=\"/scripts/kcorganizer/\">$kcorg</a><br /><br />";

echo "<a href=\"/scripts/forumfaces/\">Forumfaces</a><br />";

if ($category==3) {
	echo $kvdw;
}
?>


I look at the date because we change logo's at holidays (christmas, sinterklaas, halloween, easter, queen's day and our forum birthday), and for category 3 we change to a different logo.

In our on topic fora categories (2 and 3) a specific link is highlighted. In category 3 an extra text is displayed with the funfair of the week.

So one header to rule them all.


[Linked Image from siemons.org]