Back to vBulletin 3 Articles

Custom Script need WOL Location, EASY
by PennylessZ28 21 Jul 2006
Rating: (1 vote - 5.00 average)

If you have a custom PHP page for vbulletin and want to add it to the WOL you can do it with two plugins very simply.

ACP > Plugin & Products System > Add New Plugin >

Hook Location: online_location_process
Title: Test WOL 1
Code:
if ($filename == 'test.php')
{
    $userinfo['activity'] = 'test';
}
Hook Location: online_location_unknown
Title: Test WOL 2
Code:
if ($userinfo['activity'] == 'test')
{
            $handled            = true;
            $userinfo['action'] = 'Viewing Test';
            $userinfo['where']  = "<a href=\"test.php?{$vbulletin->session->vars['sessionurl_q']}\">The Test</a>";
}
The end, enjoy, hope this was useful. Replace test with your own variablles.

vblts.ru supports vBulletin®, 2022-2024