There are two hook locations we need to add plugins to:
* vBulletin : Who's Online? -> online_location_process
* vBulletin : Who's Online? -> online_location_unknown
Add the online_location_process hook plugin...
Hook Location: online_location_process
Name: WOL Online Location Process
Active: YES
Code:
PHP Code:
if($filename=='YOUR_ADDIN_FILE.php'){$userinfo['activity'] = 'YOUR_ACTIVITY';}
Add the online_location_unknown hook plugin...
Hook Location: online_location_unknown
Name: WOL Online Location Unknown
Active: YES
Code:
PHP Code:
if($userinfo['activity']=='YOUR_ACTIVITY')
{
$userinfo['where'] = '<a href="YOUR_ADDIN_FILE.php?'.$vbulletin->session->vars[sessionurl].'">'.$vbulletin->options[bbtitle].' YOUR_ACTIVITY</a>';
$userinfo['action'] = 'YOUR_ACTIVITY';
$handled = true;
}
Following this convention should allow us to coexist in one plugin for each of those hooks or create good plugins for those hooks, either way.