View Full Version : unkown location in whos online
manning
01-11-2009, 12:24 AM
I have created custom pages working good - but it shows uknown location on whos online page...
I know I need to add those custom pages into function_online.php but Im not sure how exactly. I found several online mods for it, but they all say look for something thats not present.
Any help appreciated thanks.
Lynne
01-11-2009, 12:51 AM
Create two plugins using the following hooks. Replace mypage and similar with your information.
hook online_location_process:
Code:
switch ($filename)
{
case 'mypage.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.
}
hook online_location_unknown
Code:
switch ($userinfo['activity'])
{
case 'mypage':
$userinfo['where'] = '<a href="mypage.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.
}
manning
01-11-2009, 01:50 AM
Thank you very kindly - works like a charm.
What would I do for files that arent in the forum directory?
I have photopost installed and it doesnt show ... vb is in .com/forum/ pp is in .com/photos/ is there a way I can insert a path in the case to include any file in the photo directory?
Thanks again!
Bellardia
01-11-2009, 02:11 AM
You need to make those pages 'powered' by vbulletin so that it can access what is going on there.
https://vborg.vbsupport.ru/showthread.php?t=62164&highlight=powered+page
manning
01-11-2009, 03:06 AM
You need to make those pages 'powered' by vbulletin so that it can access what is going on there.
https://vborg.vbsupport.ru/showthread.php?t=62164&highlight=powered+page
Yes already created the custom pages ;) now just looking to see if its possible to case out a path ...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.