View Full Version : Who's Online : Unknown Location
medicalforums
08-25-2009, 02:44 AM
I created php pages and placed them in my root folder
When users check Who's Online list these pages appear as unknown location
See this screenshot
103672
Any mod or hack or help to correct this issue!
Lynne
08-25-2009, 02:52 AM
Search would have given you the answer since I just answered this a couple days ago.
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.
}
medicalforums
08-25-2009, 07:22 PM
Sorry for not searching before hand
and thanks for the plugins, it worked perfectly
MagicThemeParks
09-21-2009, 11:16 AM
Lynne,
I created these two plugins, but the 'unknown location' still shows. Does it take a little while to take affect or is there something that I have to do to make it function once both plugins are active?
Lynne
09-21-2009, 03:03 PM
They should work right away (did you turn them plugins on?). It's hard to tell what is wrong since you haven't posted the exact plugins to wrote/are using, and we don't know the link to the page(s) you are trying to fix the location on.
MagicThemeParks
09-22-2009, 12:18 AM
Lynne, I'm using the same code you mentioned in post #2 above. And, I'm using it on the following custom page for my forum....
Magic Kingdom Forums - Attraction Page (http://www.magicthemeparks.com/mk/forum/mkattractions.php)
--------------- Added 1253583902 at 1253583902 ---------------
Forget it....someone took a look and noticed that I had forgotten to change one of the "my page" parts of the code :)
Thank you Lynne!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.