vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Who's Online simple request... (https://vborg.vbsupport.ru/showthread.php?t=65827)

|oR|Greg 06-04-2004 03:27 PM

Who's Online simple request...
 
I'm trying to figure out why my Chat page doesn't show up in the Who's Online.

I added

Code:

case '/chat/index.php':
                        $userinfo['activity'] = 'chat';
                break;

Code:

                case 'Chat':
                        $userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'In Chat');
                        $userinfo['where'] = "<a href=\"/chat/index.php?$session[sessionurl]\">$vboptions[bbtitle] Chat</a>";
                        break;

To the Functions_Online.php, yet it still doesn't work. Any thoughts?

Do I have the wrong path or something?

My Site: www.OrderOfRonin.com :ermm:

Sylvus 06-04-2004 04:15 PM

If it's anything like the v2 series, using a path will not work. Who's Online displays the location based on the file they are viewing. If you have multiple index.php files, it will always take the Forum Home Page index.php and display that as the location in the Who's Online, regardless of the fact the user might be viewing index.php under your /chat directory. That particular index.php in /chat should also be linked to a global file that vbulletin uses. I don't know if it's still global.php for vb3 or not but that's how it worked with vb2, otherwise there is no way to tell the forum that a user is viewing something outside of the forum structure.

It should work if you rename that index.php in /chat to chat.php and you're loading up a global file that vbulletin requires. So it's like this:

PHP Code:

case 'chat.php'
           
$userinfo['activity'] = 'chat'
            break; 

PHP Code:

case 'Chat'
                
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'In Chat');
            
$userinfo['where'] = "<a href=\"/chat/index.php?$session[sessionurl]\">$vboptions[bbtitle] Chat</a>";
                break; 

Change the case 'Chat': in the latter code, to 'chat'. Might be case sensitive as well.

Syl...

|oR|Greg 06-07-2004 12:07 PM

Thanks I changed it to chat.php and moved the files around some, it works nicely now.


All times are GMT. The time now is 03:07 PM.

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.01052 seconds
  • Memory Usage 1,722KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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