PDA

View Full Version : Headers?


solatis
Wed 13th Dec '00, 6:54am
Hello,

Okay, I'm having some troubles here finding in the scripts where the headers are generated. I bought vBulletin last night, got it set up, etc etc. The problem is that my ad rotator (dotBanner) requires some PHP code to include. I couldn't find a file like header.inc.php or something like that, so I started searching, but I really couldn't find anything.

Any hints what to look for? Which file? It seems like it must be in global.php , but I can't seem to find anything...

btw: nice job customizing the layout for this forum... I like it :)

- Leon Mergen
BlazeNetwork.com, Inc.

Mike Sullivan
Wed 13th Dec '00, 10:41am
Click "Edit styles" in your CP. :)

solatis
Wed 13th Dec '00, 11:21am
I know I can do that, but it doesn't seem like PHP commands are compiled there, huh?

I found the solution already...

at the top of global.php , I have inserted

$dotBanner_file_directory = "dir";
include("$dotBanner_file_directory" . "ads-noprint.php");
$bannercode = dotBanner_PickBanner("forum");

and, at the bottom, I have added

$header=eregi_replace("{bannerad}","$bannercode",$header);

et voila, now you can add {bannerad} in the Styles, and it is replaced with the RichMedia adcode :)

Mike Sullivan
Wed 13th Dec '00, 12:51pm
Actually, that'll work, but I should've clarified :)

"Options"->Turn on advheader.
"Styles"->Header.