Custom Script need WOL Location, EASY
by
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'; } 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>"; } |