There should be two plugins to make it work. Perhaps you disabled one? This is what I do:
Create two plugins using the following hooks. Replace mypage and similar with your information.
hook online_location_process:
Code:
PHP Code:
switch ($filename)
{
case 'mypage.php':
$userinfo['activity'] = 'mypage';
break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.
}
hook online_location_unknown
Code:
PHP Code:
switch ($userinfo['activity'])
{
case 'mypage':
$userinfo['where'] = '<a href="mypage.php?'.$vbulletin->session->vars[sessionurl].'">My Page</a>';
$userinfo['action'] = "Viewing My Page";
$handled = true;
break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.
}