Here's global.php3, I have my actual website URL inserted where appropriate..
// ###################### Referrer Stuff #########################
// Referer stuff
if ($bbuserinfo['userid']==0 and $usereferrer and !$bbreferrerid and $referrerid) {
if ($r_id = $DB_site->query_first("SELECT userid FROM user WHERE userid = '".addslashes($referrerid)."'")) {
vbsetcookie("bbreferrerid",$r_id[userid]);
}
}
if ($bbuserinfo[usergroupid]==3)
{
$special_button='<a href="http://mywebsite.com"><img src="http://mywebsite.com/forum/database.gif" border="0"></a>';
}
else
{
$special_button='';
}
// ###################### Start templates #######################
|