vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Who's Online : Unknown Location (https://vborg.vbsupport.ru/showthread.php?t=221698)

medicalforums 08-25-2009 02:44 AM

Who's Online : Unknown Location
 
1 Attachment(s)
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

Attachment 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:

PHP 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:

PHP 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

--------------- Added [DATE]1253583902[/DATE] at [TIME]1253583902[/TIME] ---------------

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!


All times are GMT. The time now is 09:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01386 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete