if ($userinfo['activity'] == 'test') { $handled = true; $userinfo['action'] = 'Viewing Test'; $userinfo['where'] = "<a href=\"test.php?{$vbulletin->session->vars['sessionurl_q']}\">The Test</a>"; }