Quote:
Originally Posted by blind-eddie
On the WhosOnline Page guest show.
Unknown Location
/forum/staff.php
How do I change that to Show, what I wish it to show?
|
Go to your AdminCP > Plugins & Products > Plugin Manager > Add new Plugin
Product: vBulletin
Hook Location: online_location_process
Title: Extra Online Users Process
Execution Order: 5
PHP Code:
if ($filename == 'staff.php')
{
$userinfo['activity'] = 'Viewing Staff Page';
}
Save.
Go to your AdminCP > Plugins & Products > Plugin Manager > Add new Plugin
Product: vBulletin
Hook Location: online_location_unknown
Title: Extra Online Users Unknown
Execution Order: 5
PHP Code:
if ($userinfo['activity'] == 'Viewing Staff Page')
{
$userinfo['action'] = 'Viewing Staff Page'; // you might wanna use a $vbphrase here...
$userinfo['where'] = '<a href="./staff.php?' . $vbulletin->session->vars['sessionurl'] . '">Staff</a>'; // you might wanna use a $vbphrase here...
$handled = true;
}
Save.
Hope this helps !!