Unknown location

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.
 
My php file is inside a folder not in the root vbstatus/vbstatus_ajax.php
it's not working, i did this before with VBA but with vbstatus it's not working

if($filename=='vbstatus/vbstatus_ajax.php'){$userinfo['activity'] = 'Editing Status';}
if($userinfo['activity']=='Editing Status')
{
$userinfo['where'] = '<a href="vbstatus/vbstatus_ajax.php?'.$vbulletin->session->vars[sessionurl].'">'.$vbulletin->options[bbtitle].' Editing Status</a>';
$userinfo['action'] = 'Editing Status';
$handled = true;
}

Do i have any idea what i'm doing wrong ?
 
Back
Top