View Full Version : users not showing up in who's chatting area
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:
<div class="smallfont">
{$invBChat}
</div>
Zero Tolerance
03-02-2005, 11:15 AM
Did you do the edit for "index.php"? Without that edit it won't work.
- Zero Tolerance
boysmom
03-02-2005, 02:45 PM
I've done that edit and my users still aren't showing up. Any ideas?
Zero Tolerance
03-02-2005, 02:45 PM
What appears there where its supposed to show any users inside?
- Zero Tolerance
yep, I did the edit for index.php, and when I go to my board and look at the spot where it's supposed to tell you who's inside, it's blank.
It doesn't say "No one is currently inside vBChat" when there are no users in the chatroom and it doesn't say any usernames when there are users in the chatroom.
boysmom
03-02-2005, 03:27 PM
Mine's fixed. We didn't have the forumhome template adjusted for each style.
Thanks!
I double checked mine, and all looks fine. Still not showing the user in (or not in) chat message.
Zero Tolerance
03-02-2005, 03:54 PM
Then if it doesn't even show the message "No one is currently inside vBChat", you have made a mistake when editing index.php
Ensure you are using the latest vBulletin installment, i don't test new versions on older installments.
- Zero Tolerance
Yes, I'm using the latest vBulletin (3.0.7).
Would it cause an error if the template edits for both the navbar and the forumhome were both made in the forumhome?
I don't have a navbar in my custom template, however, I did add the code for the navbar (which is basically just a link to the chatroom) right above the code for the forumhome that shows who's in the chat.
I double and triple checked my index.php edits and they are fine.
boysmom
03-02-2005, 05:20 PM
I currently have about 5 people in chat yet at the top, it says Total Users: 2 and in the list it has 2 listed.
If people are in invisible mode on the boards, does that make them invisible in chat so that they aren't listed in the total users? It's not a good thing for people popping into a room and not knowing who is there.
sv1cec
03-02-2005, 06:27 PM
I currently have about 5 people in chat yet at the top, it says Total Users: 2 and in the list it has 2 listed.
If people are in invisible mode on the boards, does that make them invisible in chat so that they aren't listed in the total users? It's not a good thing for people popping into a room and not knowing who is there.
You have to remember that the in the main forums page, the users are not updated automatically. So if you loaded that page 10 minutes ago, and in those 10 minutes 3 more people entered the Chat, they wouldn't appear there. You have to reload the page to see them. Maybe this is your problem?
Rgds
boysmom
03-02-2005, 08:46 PM
We refresh and still have the problem.
Zero Tolerance
03-03-2005, 01:29 PM
We refresh and still have the problem.
If a user is on the chat and on the forum, then it will show them sometimes in the chat and sometimes not, as they refresh or go onto a forum, the system registers them in the forum instead of the chat.
Only when they refresh the chat page or an iframe refreshes will it then register them inside the chat.
- Zero Tolerance
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?
boysmom
03-04-2005, 02:04 PM
We have the database errors corrected and the chat is running. We're still having the users online issue too and as soon as we installed chat, the boards stopped showing the users online as well. I know it's not a refresh problem. Several people are on the boards and they aren't in chat because we have permissions turned off right now for everyone but the moderators. Therefore, the people are on the boards only and they aren't showing up in the users online list on the boards.
vBulletin says it's not their problem because it started when we installed this hack.
Zero Tolerance
03-05-2005, 07:49 PM
@ rrr & boysmum - If your getting errors, such as "No Users Currently in vBChat" or the normal default users not showing up, then i have to say it again i'm afraid, you have made a mistake while editing ROOT DIRECTORY/index.php, also ensure your using the latest vBulletin version, i can't garentee it will work on previous versions.
- Zero Tolerance
@ ZT, I have the very latest vbulletin installed and I've re-applied the changes to the directory/index.php file and it's still not working.
Can you post what the revised index.php should look like before and after the hack so I can confirm the right lines have been replaced and changed?
ZT, Can you post what the revised index.php should look like before and after the hack so I can confirm the right lines have been replaced and changed?
Zero Tolerance
03-14-2005, 04:06 PM
Sorry, the rules are you can't post any vbulletin php files at all.
- Zero Tolerance
In the hack instructions it shows a snippet of vbulletin code and the code that should be replaced.
That's all I'm asking is for you to post the larger snippet of original vbulletin code (not necessarily the whole file) and the revised same code how it should look after the vbchat changes are made.
I just need to make sure I didn't remove too much or too little vbulletin code.
I'd really like to get this working properly, and since you insist that the errors must be in my index.php changes, I'd like to be able to double check my work.
Not asking you to break the rules at all, just post the before and after of a few lines of code.
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?
mkdevo
03-31-2005, 02:27 PM
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..
sv1cec
03-31-2005, 03:25 PM
Here it the part of code that you are asking for:
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
xfaethorx
04-01-2005, 09:15 PM
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..
testpig
06-19-2005, 06:49 AM
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,
::: 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 :rolleyes:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.