Thanks guys a combined effort has worked.
Boofo you are quite right
Code:
global $vbulletin;
if ($vbulletin->userinfo['userid'])
{
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
}
else
{
return "Guests cannot view links. You must <a href='register.php'>register</a> to see links.";
}
i like to take this step further how do i go about hiding links that are in between code /code and also in the archive