The Arcive of vBulletin Modifications Site. |
|
|
Custom Script need WOL Location, EASY
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>";
}
|
|
#2
|
||||
|
||||
|
Nice. I'll have to remember this for new hacks.
Sidenote: It'd be really cool if we could Install Articles or even Rate them... any chance vB.org would install GARS? He he he...
|
|
#3
|
||||
|
||||
|
Quote:
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>";
}
|
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
||||
|
||||
|
Quote:
|
|
#6
|
|||
|
|||
|
This didn't work for me.....any ideas why? Using vBulletin 3.8.6.
|
|
#7
|
|||
|
|||
|
I'll try it,
Thank you very much |
|
#8
|
|||
|
|||
|
What's WOL?
|
![]() |
|
|