@DarkDraco07 - It depends where you want it to show...
By default, I made it globalised, so you can add it to your header template
If you want it to only add to index, revert the global.php change, remove the variable from the header template, and add it to the forumhome template...
Then open forum/index.php (this is untested)
Find:
Code:
// if user is know, then welcome
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
eval("\$welcometext = \"".gettemplate('forumhome_welcometext')."\";");
eval("\$logincode = \"".gettemplate('forumhome_logoutcode')."\";");
eval("\$newposts = \"".gettemplate('forumhome_newposts')."\";");
} else {
$welcometext = "";
eval("\$newposts = \"".gettemplate('forumhome_todayposts')."\";");
eval("\$logincode = \"".gettemplate('forumhome_logincode')."\";");
}
add below:
Code:
// ###################### vBaffiliates Stuff #########################
// vBaffiliates stuff
$affillinky = $DB_site->query("SELECT linkid,name,link,b_link,height,width,hits,userid FROM vbaffiliates WHERE moderated='1' ORDER BY RAND() LIMIT $maxbannernumbers");
while ($affillink=$DB_site->fetch_array($affillinky)) {
if ($bbuserinfo[userid]==$affillink[userid]) {
$editlink = " <a href=\"vbaffiliates.php?s=$session[sessionhash]&action=useredit&linkid=$affillink[linkid]\">Edit</a>";
}else{
$editlink = "";
}
if ($imginfo=@getimagesize($affillink[b_link])) {
if ($imginfo[0]>$affillink[width] or $imginfo[1]>$affillink[height]) {
$affiliate = "";
}else{
eval("\$affiliate .= \"".gettemplate('affiliate')."\";");
}
}
}
Satan