Quote:
Originally Posted by PennylessZ28
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.
|
The second code will turn out an error. It'd need to be:
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 last } was missing.