Spinball
04-25-2004, 11:28 AM
Hi,
in vB2 I use a hack by MaDCaT75 which alters forumdisplay.php to place banners at the top of specific forums.
I have edited the code further to also display static HTML news items:
if ($forumid==36) {
$mycustombanner = file_get_contents("http://www.homecinemachoice.com/cgi-bin/hcgnewsheadlines.html") . "<P></P>";
} elseif ($forumid==37) {
eval("\$mycustombanner .= \"".gettemplate('forum37advert')."\";");
$mycustombanner .= "<P></P>" . file_get_contents("http://www.totaldvd.net/cgi-bin/dvdnewsheadlines.html");
} elseif ($forumid==124) {
$mycustombanner = file_get_contents("http://www.totaldvd.net/includes/dvddata.php") . "<P></P>";
} elseif ($forumid==126) {
$mycustombanner = file_get_contents("http://www.totaldvd.net/cgi-bin/hacks.php") . "<P></P>";
} elseif ($forumid==82) {
if (mt_rand(1,2) == 1) {
eval("\$mycustombanner .= \"".gettemplate('forum82nexnix')."\";");
} else {
eval("\$mycustombanner .= \"".gettemplate('forum82avsales')."\";");
}
}
eval("dooutput(\"".gettemplate('forumdisplay')."\");");
}
This hack uses some templates which display the banners.
Could some fantastic person tell me how I could implement this into vB3?
Please? If so then I can upgrade to it !!!
Thanks
in vB2 I use a hack by MaDCaT75 which alters forumdisplay.php to place banners at the top of specific forums.
I have edited the code further to also display static HTML news items:
if ($forumid==36) {
$mycustombanner = file_get_contents("http://www.homecinemachoice.com/cgi-bin/hcgnewsheadlines.html") . "<P></P>";
} elseif ($forumid==37) {
eval("\$mycustombanner .= \"".gettemplate('forum37advert')."\";");
$mycustombanner .= "<P></P>" . file_get_contents("http://www.totaldvd.net/cgi-bin/dvdnewsheadlines.html");
} elseif ($forumid==124) {
$mycustombanner = file_get_contents("http://www.totaldvd.net/includes/dvddata.php") . "<P></P>";
} elseif ($forumid==126) {
$mycustombanner = file_get_contents("http://www.totaldvd.net/cgi-bin/hacks.php") . "<P></P>";
} elseif ($forumid==82) {
if (mt_rand(1,2) == 1) {
eval("\$mycustombanner .= \"".gettemplate('forum82nexnix')."\";");
} else {
eval("\$mycustombanner .= \"".gettemplate('forum82avsales')."\";");
}
}
eval("dooutput(\"".gettemplate('forumdisplay')."\");");
}
This hack uses some templates which display the banners.
Could some fantastic person tell me how I could implement this into vB3?
Please? If so then I can upgrade to it !!!
Thanks