Quote:
Originally Posted by atambo
I am having trouble with the Who's Online Modification. I got the page to work.
It says all you have to do is just open up includes/functions_online.php and find:
PHP Code:
case 'bugs.php': $userinfo['activity'] = 'bugs'; break;
So i go to my ftp, drag the file functions_online.php to my desktop and edit it with dreameaver. I use dreamweaver to try and find the code above and it can't be found? Can someone let me know the actuall code i need to find so that i can make this work please! By the way i am using vBulletin 3.7.2 if this helps.
|
no, pls no fileedit!
it works also without

where'sthe post with the fileedit?
1. create a plugin at hook online_location_process
PHP Code:
if ($filename == 'myfile.php')
{
$userinfo['activity'] = 'myhack';
}
2. create a plugin at hook online_location_unknown
PHP Code:
if ($userinfo['activity'] == 'myhack')
{
$handled = true;
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], $vbphrase['my_hack']);
$userinfo['where'] = '<a href="myfile.php?' . $vbulletin->session->vars['sessionurl_q'] ."\">$vbphrase[my_hack]</a>";
}