Quote:
Originally Posted by Lynne
Instructions to Add your Page to the Who's Online List (WOL):
Create two plugins using the following hooks. Replace mypage and similar with your information.
1. hook location - online_location_process:
Code:
switch ($filename)
{
case 'test.php':
$userinfo['activity'] = 'mypage';
break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.
}
.
2. hook location online_location_unknown:
Code:
switch ($userinfo['activity'])
{
case 'mypage':
$userinfo['where'] = '<a href="test.php?'.$vbulletin->session->vars[sessionurl].'">My Page</a>';
$userinfo['action'] = "Viewing My Page";
$handled = true;
break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.
}
.
The colored part in the code above shows what you need to change in the plugins (both reds should be the same and both blues should be the same, whereas green can be whatever you want).
[/URL]
|
Hey i quoted this from your "[HOW TO - vB4] Create your own vBulletin page" but didnt want to ask on that Article because my question is to do with a None Vbulletin page
Can i use this code for adding a none Vbulletin page on 4.0?
case 'href="www.test.com'
Something like that?
Thanks