Your root/global.php should have these two lines, somewhere around line 270-280:
PHP Code:
// ###################### Start templates #######################
//prepare default templates **********************
If they aren't in it, you're using some weird unoffical version of vB, OR a different language version.
If you can't find that, try finding this:
PHP Code:
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]);
}
}
And add this below it:
PHP Code:
// guest/member register/usercp hack
if($bbuserinfo['userid'] != 0) {
$reg_ucp = "<a href=\"usercp.php?s=$session[sessionhash]\">".
"<img src=\"{imagesfolder }/usercp.gif\" ".
"alt=\"Here you can view your subscribed threads, work with private messages and edit your profile and preferences\" ".
"border=\"0\"></a>";
}else{
$reg_ucp = "<a href=\"register.php?s=$session[sessionhash]&action=signup\">".
"<img src=\"{imagesfolder }/register.gif\" ".
"alt=\"Registration is free!\" border=\"0\"></a>";
}
It won't work through templates, since you'd have to have a global-in-global template, which doesn't exist in vB.