Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vB Chat
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
users not showing up in who's chatting area Details »»
users not showing up in who's chatting area
Version: , by rrr rrr is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-02-2005 Last Update: Never Installs: 0
 
No support by the author.

In the area that is supposed to say "Users in vbChat", there are no users listed, even if there are users in the chatroom.

It's almost like this part of the code isn't working in the FORUMHOME:

Code:
<div class="smallfont">
{$invBChat}
</div>

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-16-2005, 11:47 PM
rrr rrr is offline
 
Join Date: Oct 2004
Location: California
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello?
Reply With Quote
  #23  
Old 03-19-2005, 08:50 PM
rrr rrr is offline
 
Join Date: Oct 2004
Location: California
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anybody post the before and after of the few lines of code from the index.php file that show the code before the changes and after the changes?
Reply With Quote
  #24  
Old 03-23-2005, 11:13 PM
rrr rrr is offline
 
Join Date: Oct 2004
Location: California
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody? Bueller?
Reply With Quote
  #25  
Old 03-31-2005, 02:27 PM
mkdevo mkdevo is offline
 
Join Date: May 2004
Location: CT, USA
Posts: 269
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'm having the same problem - users are not showing up in Users Currently Inside vBChat on my forumhome.

it's completely blank, even though there are definitely users in chat..
Attached Files
File Type: (21.3 KB, 13 views)
Reply With Quote
  #26  
Old 03-31-2005, 03:25 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here it the part of code that you are asking for:

PHP Code:
        fetch_online_status($userinfos["$bbuserinfo[userid]"]);
        
$loggedin $userinfos["$bbuserinfo[userid]"];

        eval(
'$activeusers = "' fetch_template('forumhome_loggedinuser') . '";');
    }
    else
    {
        
$userinfos = array();
    }
    
$inforum = array();

    
$vbchat_users = array();
    
$chatusers=0;
    while (
$loggedin $DB_site->fetch_array($forumusers))
    {
        
$userid $loggedin['userid'];
        if (!
$userid)
        {    
// Guest
            
$numberguest++;
            
$inforum["$loggedin[inforum]"]++;
        }
        else if (empty(
$userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
        {
            
$userinfos["$userid"] = $loggedin;
        }
        if(
preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
        
$vbchat_users[$loggedin['userid']] = $loggedin;
        }
    }
    
// Configure Peeps In vBChat
    
$invBChat "";

    if(
is_array($vbchat_users)){
        foreach(
$vbchat_users as $invbc){
            if(
$invBChat == ""){
            
$extra "";
            } else {
            
$extra ", ";
            }

        
// Get Username Style
        
$invbc['musername'] = fetch_musername($invbc);

        
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
        
$invBChatText .= "{$extra}{$invbc['musername']}";
        
$chatusers $chatusers+1;
        }
    }

    if(
$invBChat == ""){
    
$invBChat "<i>No one is currently inside vBChat</i>";
    }

    foreach(
$userinfos AS $userid => $loggedin)
    {
        
$numberregistered++;
        if (
$userid != $bbuserinfo['userid']) 
That's the best I can do for you guys.

Rgds
Reply With Quote
  #27  
Old 04-01-2005, 09:15 PM
xfaethorx's Avatar
xfaethorx xfaethorx is offline
 
Join Date: May 2004
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've got a not too disimilar problem where users who are online aren't showing up online since we installed vbchat hack..it does pick users up who go into chat but not all the time, some times you'll have 2 users in and it'll work sometimes you'll be talking to a user who according to the board isn't online and nor is he/she in chat...

i run two boards one with this hack on and one without i've checked my code changes are all are correct so im really confused. it has completely buggered up my whos online as some users appear and others don't seem to be on the board when i know they are..
Reply With Quote
  #28  
Old 06-19-2005, 06:49 AM
testpig's Avatar
testpig testpig is offline
 
Join Date: Apr 2004
Location: Australia
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rrr
I'm still having the problem with no message being show for "No Users in VbChat" or when there are users, no usernames showing up.

Anything you can do to help me diagnose this?
I had a similar problem and tried altering the file 4 times with no luck.

Finally instead of simply cutting and pasting in the first section of text into the Index.PHP file I added the last section of code as specified. The only difference is the last line with the addition of session.location,

Quote:
::: Open File - ROOT FORUM DIRECTORY/index.php
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
FIND:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
$forumusers = $DB_site->query("
SELECT
user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity,
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
CHANGE TO:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
$forumusers = $DB_site->query("
SELECT
user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity, session.location,
I pasted over the second section as requested and saved it as a PHP file (I had been saving it out of word pad and renaming it on the server). It now works fine. Dont ask me why this makes a difference as I previously pasted over both sections and dont see why it wouldnt work. The only thing I did different is saving it as a PHP file.

Anyways......it works now so I'm going with it
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:51 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.04692 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete