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.
}
I have been given this code to ammend and this should allow me to see who is using the chat room from VB WOL list. What values do i have to change the make it work, i know it may be a stupid question but i have only just started on the VB and flash chat integration path. Thanks in advance
Phil
|