kontrabass
Sat 16th Sep '00, 1:17pm
I'm trying to set a different header for each forum, so that I can have multiple advert "zones" - one for each forum.
My PHP ad script works great when it's in the global (board-wide) header:
$dotBanner_file_directory = "/home/talkbass/web/dotbanner/";
include("/home/talkbass/web/dotbanner/ads-fAll.php");
$header=dotBanner_PickBanner("fAll");
srand((double)microtime()*389675);
But, when I edit a particular forum and tell it to use the "header2" template, and parse it for php (using the EXACT same code as above), I get errors up the wazzu.
I've tried changing the $header in the code above to $header2 but still no luck. It spits out a couple parsing errors, and then spits out the GLOBAL header (which it should not be doing at all...).
Thanks for your thoughts on this -
Paul
My PHP ad script works great when it's in the global (board-wide) header:
$dotBanner_file_directory = "/home/talkbass/web/dotbanner/";
include("/home/talkbass/web/dotbanner/ads-fAll.php");
$header=dotBanner_PickBanner("fAll");
srand((double)microtime()*389675);
But, when I edit a particular forum and tell it to use the "header2" template, and parse it for php (using the EXACT same code as above), I get errors up the wazzu.
I've tried changing the $header in the code above to $header2 but still no luck. It spits out a couple parsing errors, and then spits out the GLOBAL header (which it should not be doing at all...).
Thanks for your thoughts on this -
Paul