View Full Version : vBChat v2.3
X-Fan
11-11-2004, 11:03 PM
Very, very, very cool addition! I was using phpMyChat but I've switched to vBChat now and will be sticking with it for the long haul! Thanks ZT!
djjeffa
11-11-2004, 11:12 PM
i reistalled and still no luck with the who is in chate and still cant fix the smilies? also can i make it so the time goes next to the messages like the first version?
Harley D
11-12-2004, 02:40 AM
Had this working perfectly with the first version, now that I updated my VBCHAT page is blank? ADMINCP is working fine. VBv 3.0.3
Harley D
11-12-2004, 02:55 AM
DOH, I forgot, the install only changes one on the skins templates, the rest have to be manually edited.
My bad
bendigo-tech
11-12-2004, 03:22 AM
Upgrade went smoothly. Took 5 minutes to upgrade... very sweet!
Thanks.
Thanks for the update.
Only problem I have is some the smilies are showing up as just red x's.
yey works ^^ only 1 problem..............
How can i chang inframe background without killing the style?
How can i select how many/Witch smilies can be viewed?
SVTOA
11-12-2004, 11:43 AM
If you have trouble with your forumhome "Who's online" or find that no members show up as chatting on the forumhome even when they are in the chat, this may work for you:
Make a backup of your forums root index.php file before you try this!
Now, in your fourms root index.php file, look for:
$inforum = array(); which should be around line 368.
Replace everything below it down to (but not including)
// memory saving which should be around line 426 with this:
// Get the users in vBChat
$vbchat_users = array();
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;
$numberregistered++;
if ($userid != $bbuserinfo['userid'])
{
$inforum["$loggedin[inforum]"]++;
}
$loggedin['musername'] = fetch_musername($loggedin);
if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
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>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
This should work for 3.0.0 and 3.0.1.
Harley D
11-12-2004, 12:24 PM
Got this working this morning - thank you very much for all the help and for developing the mod - it's much appreciated. The only thing I would like to change is the size of the messages window which at the moment needs to scroll to the right to be able to see all of the posted messages.
Is there any way to stop this from happening? Cheers.
Anyone have any luck correcting this?
If you have trouble with your forumhome "Who's online" or find that no members show up as chatting on the forumhome even when they are in the chat, this may work for you:
Make a backup of your forums root index.php file before you try this!
Now, in your fourms root index.php file, look for:
$inforum = array(); which should be around line 368.
Replace everything below it down to (but not including)
// memory saving which should be around line 426 with this:
// Get the users in vBChat
$vbchat_users = array();
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;
$numberregistered++;
if ($userid != $bbuserinfo['userid'])
{
$inforum["$loggedin[inforum]"]++;
}
$loggedin['musername'] = fetch_musername($loggedin);
if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
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>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
This should work for 3.0.0 and 3.0.1.
It works, but the only problem is that i cannot see myself online, how can i fix this? please help
jzewatsky
11-12-2004, 05:14 PM
Let me start by saying that I just started with VB this week and found the mod install very easy to follow....THANK YOU!!!!
I was wondering if a chat log option was available or in consideration for the future.
Thanks for the great mod!!
SVTOA
11-12-2004, 07:17 PM
It works, but the only problem is that i cannot see myself online, how can i fix this? please help
Others see you, don't worry about it. Nobody sees themselves as in the chat, so it works correctly. If you can access another machine, and view your forums while logged out (and remain logged in and in the chat on the other machine) you will see yourself listed along with everyone else.
Blam Forumz
11-12-2004, 07:35 PM
Others see you, don't worry about it. Nobody sees themselves as in the chat, so it works correctly. If you can access another machine, and view your forums while logged out (and remain logged in and in the chat on the other machine) you will see yourself listed along with everyone else.
wrong.
My users dont show up in chat for ages for some reason
I however do...
along with 1 or 2 of the people in chat.
I gave up on that........... i deletede the "whose in vbchat" thing.. All i wanna know .. And i wanted to know for a week now...
1)How can i change the inframe background without killing the style sheet?
Recent Question:
2)How can i set what/how many smilies to show in the milie panel?
madhouse
11-13-2004, 02:04 AM
ok ZT , what would be the code differnce between 3.0.1 Vb and 3.0.3Vb for the Forum Home "Who's in Vb Chat " Box to make it show the users...
I dug through the file and really did not see that big of a change and what was change does not appear to be such a big issue for it not to print out.
Red Blaze
11-13-2004, 02:34 AM
I gave up on that........... i deletede the "whose in vbchat" thing.. All i wanna know .. And i wanted to know for a week now...
1)How can i change the inframe background without killing the style sheet?
Recent Question:
2)How can i set what/how many smilies to show in the milie panel?
You can't. You have to make your own style sheet in that template so you can have your own bg in the chat.
Can't answer the second question, sorry.
Vorty
11-13-2004, 02:22 PM
Only problem I have is some the smilies are showing up as just red x's.
I have the exact same problem.
All my smilies are in: http://www.FORUMNAME.com/forums/ :ermm:
They should be at: http://www.FORUMNAME.com/forums/images/smilies/ - right?
How can I fix that? Please help me.. :)
nnjj.net
11-13-2004, 05:09 PM
hi,
the Prune vBChat By Days,
how I can change this to be deleted aout as soon the member leave the chat?
nnjj.net
11-13-2004, 05:19 PM
can somebody answer my Q's
how I can change the timing of the refresh and the background of the refresh?
also if I have catagories of smiles, how I can spacify one category only of that to be appear on the chat?
thanks
wattieuk
11-13-2004, 10:27 PM
I have it working fine now - thanks for the mod. However, when people leave the chatroom they still show on forum home 'Who's Chatting' for some time. Any way of refreshing this?
reteep
11-14-2004, 12:13 PM
Thanks Zero Tolerance, that's a really great hack!
djjeffa
11-14-2004, 05:42 PM
Thanks Zero Tolerance, that's a really great hack!
have we found a fix on the whosin chat and the smilly problem?
Sweet Evil
11-14-2004, 06:18 PM
My Avatars are showing up in the chat smilies line.. Weird?
SVTBlackLight01
11-14-2004, 07:05 PM
Thanks for the update.
Only problem I have is some the smilies are showing up as just red x's.
Same problem here.
Another feature could be to have a pop-up for the rest of the smilies like normal posting.
Harley D
11-15-2004, 03:14 AM
If you have trouble with your forumhome "Who's online" or find that no members show up as chatting on the forumhome even when they are in the chat, this may work for you:
Make a backup of your forums root index.php file before you try this!
Now, in your fourms root index.php file, look for:
$inforum = array(); which should be around line 368.
Replace everything below it down to (but not including)
// memory saving which should be around line 426 with this:
// Get the users in vBChat
$vbchat_users = array();
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;
$numberregistered++;
if ($userid != $bbuserinfo['userid'])
{
$inforum["$loggedin[inforum]"]++;
}
$loggedin['musername'] = fetch_musername($loggedin);
if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
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>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
This should work for 3.0.0 and 3.0.1.
This also worked on 3.0.3
Harley D
11-15-2004, 03:16 AM
Can a time stamp replace the status text? I think it would be more usefull.
Europeanlee
11-16-2004, 12:08 AM
Does this work on VB 2.3.2 by any chance?
Koutaru
11-16-2004, 08:11 PM
Does this work on VB 2.3.2 by any chance?
NO, it is only for vb3
Nice job by the way ;) I don't know why I never saw this hack here before o_O
Another cool feature would probably be AUTO prune as cron, but I'm sure that I will be able to set one up anyway
Zero Tolerance
11-16-2004, 09:07 PM
vBChat 1.1.1 Released
This minor upgrade release has the following 2 features:
Ability to change the smilie data grab type - This will stop Red X's appearing (but will use 1 extra mySQL query)
Auto Prune vBChat - Turn On/Off And Set How Many Days To Prune MSG's
Enjoy :)
- Zero Tolerance
Thanks alot ^^ bdw, i wanned 2 know how i can set specific smilies to appear, and now for the 1 question that remains unanswered, and plz someone help me fix this:
How can I change the inframe background without killing the style sheet?
Zero Tolerance
11-16-2004, 09:47 PM
Well you can't set specific once's to be shown, if im correct on newthread it picks random ones, and thats exactly what it does here.
As for changing the background, edit the template "chat_iframe"
Find:
$headinclude
Underneath Place:
<style type="text/css">
<!--
body {background-color:#ffffff;background:url();}
-->
</style>
Find:
<body class='alt2'>
Replace With:
<body>
Save the template, change the color #ffffff (thats white) to whatever you want.
- Zero Tolerance
IT WORKS!! thanks man!!
i dont wanna be a jerkbut i have 2 ask 2 more things: when i change the color it stays white - heres the template (including color changes)
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
$headinclude
<style type="text/css">
<!--
body {background-color:#c2c2c2;background:url();}
-->
</style>
</head>
<body>
$chat_page
</body>
<if condition="$do_scroll_auto == '1'">
<script type="text/javascript">
<!--
scroll(0,999999999)
-->
</script>
</if>
</html>
And also , yu see, i have about 1025 smilies, and i organized them into 2 groups:
1)Generic smilies (Viewed in the reply 'smilie' box) (25 smilies)
2)All Smilies (Viewed when u click 'More' under smilie box) (1000 smilies)
My problemm is that the smilie box in the vbchat pulls random smilies from the All Smilies category... Is there a way to set it to take smilies only from the Generic Smilies?
EDIT: I found where i can change it, but i dont wanna mess with it.. :/ I am even willing to set 25 permanent smilies to show...(via. setting smilie image addresses)
$Smile_Display = "";
if($Chat_Options['d_smiliedisplay'] == 1){
if($Chat_Options['d_smilequery'] != 1){
// Total Amount Of Smilies
$total = sizeof($smiliecache);
$smilie_select = array();
for($x=0;$x<$Chat_Options['d_smilieamount'];$x++){
$smilie_select[] = $smiliecache[rand(1,$total)];
}
} else {
// Your getting red x's, so instead of using cached data lets query the database
$smilies = $DB_site->query("
SELECT smilieid, smilietext, smiliepath, smilie.title,
imagecategory.title AS category
FROM " . TABLE_PREFIX . "smilie AS smilie
LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)
ORDER BY imagecategory.displayorder, smilie.displayorder
");
$stotal = 0;
while($gSmile = $DB->fetch_array($smilies)){
$allsmilies[] = $gSmile;
$stotal++;
}
for($x=0;$x<$Chat_Options['d_smilieamount'];$x++){
$smilie_select[] = $allsmilies[rand(1,$stotal)];
}
}
if(is_array($smilie_select)){
foreach($smilie_select as $smiliegot){
$Smile_Display .= "
<td width='1%' height='1%'>
<a href='javascript:AddSmilie(\"{$smiliegot['smilietext']}\");'><img src='{$smiliegot['smiliepath']}' alt='{$smiliegot['title']}' border='0' /></a>
</td>
";
}
}
}
unset($smiliecache);
unset($smilie_select);
Zero Tolerance
11-16-2004, 10:57 PM
I dunno what the hex color #c2c2c2 is, but it may be that that hex colour is a lightish one, maybe.
As for choosing which category the smilies get pulled out of, i suppose that could be a feature in future versions.
- Zero Tolerance
Harley D
11-17-2004, 03:09 AM
Can a time stamp replace the status text? I think it would be more usefull.
What do ya think Zero? If you've ever seen shoutbox, The time stamp is to the left of the text. Where you have put [STATUS]. I have remove the WORD Status and left the names people have add there. but it would be nice to see when they posted, because most the chatters stay in the room wall the time.
Also #c2c2c2 is a light grey. :squareeyed:
Zero Tolerance
11-17-2004, 03:32 AM
What do ya think Zero? If you've ever seen shoutbox, The time stamp is to the left of the text. Where you have put [STATUS]. I have remove the WORD Status and left the names people have add there. but it would be nice to see when they posted, because most the chatters stay in the room wall the time.
Also #c2c2c2 is a light grey. :squareeyed:
Yeah there was a time stamp before the status addon, i guess in the next version i can do a little renovating of the templates :)
- Zero Tolerance
Skyline_GT
11-17-2004, 04:28 AM
when I am trying to save my setting in the admincp
I got his
Database error in vBulletin 3.0.3:
Invalid SQL: update vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups= '1|3|4|8',d_bannedusers='',d_chat_order='bottom',d _smiliedisplay='0',d_smilieamount='0',d_allowbanta g='0',d_maxrooms='0',d_smilequery='0',d_autoprune= '1',d_autoprunedays='1' where did='1'
mysql error: Unknown column 'd_smiliedisplay' in 'field list'
mysql error number: 1054
Date: Tuesday 16th of November 2004 10:27:04 PM
Script: http://www.gamerzplanet.net/forums/admincp/admin_vbchat.php
Referer: http://www.gamerzplanet.net/forums/admincp/admin_vbchat.php
Username: Skyline_GTR
IP Address:
then when I go to vbchat, I got this error
Database error in vBulletin 3.0.3:
Invalid SQL: select m.*,u.* from vbchat_store m
left join user u on (u.userid = m.s_postby) where m.s_forroom = '' order by m.s_postime desc limit 0,15
mysql error: Unknown column 'm.s_forroom' in 'where clause'
mysql error number: 1054
Date: Tuesday 16th of November 2004 10:28:08 PM
Script: http://www.gamerzplanet.net/forums/vBChat.php?&do=chatFrame
Referer: http://www.gamerzplanet.net/forums/vBChat.php?
Username: Skyline_GTR
IP Address:
I follow your step.. but still has errors..
Zero Tolerance
11-17-2004, 04:30 AM
when I am trying to save my setting in the admincp
I got his
then when I go to vbchat, I got this error
I follow your step.. but still has errors..
Im guessing you upgraded to v1.1.1, but which version did you have "before" you upgraded?
The upgrade in the download is specified for users that were on v1.1.0, not any lower
- Zero Tolerance
Skyline_GT
11-17-2004, 05:05 AM
oh.. fixed:)
THanks.
ok so i can wait till 1.1.2 for those features ^^
some suggestions:
Background color picker in the vBCat options in admincp
Smile category picker in the vBCat options in admincp
wattieuk
11-17-2004, 03:25 PM
Deleted - solved my own problem!
cr95gst
11-17-2004, 06:29 PM
I don't get what I am supposed to put in my "user status". I like the date and time thing in the example. How do I get that to appear?
spence2
11-18-2004, 12:04 AM
Wow! Thank you!!! I just installed perfectly due to your terrific instructions. This is a very professional hack, and a great addition to my forum.
I think I agree that the time stamp is superior to the "status" ... is there any possible way for you to include your "old code" in this thread?
In any case, thanks again for all your hard work and for sharing it with everyone. :)
Im having 1 problem...
#1 the IM to a member is not working
Thanks for the help. Love it and so do my members!!!
Are you able to make it soo it auto prunes if there is no activity for like 30 min?
reach_srinivas
11-18-2004, 03:50 AM
how can remove the installation?? thanks
Hey Zero, Thanks for the hard work...cool hack.
One thing, invisible members, shouldn't be listed in the who is currently in vBchat! right?
Scerina
11-19-2004, 03:22 AM
OOOOO!!!! Could someone PLLLEEEAAASSSeEEE install this hack for me??? Tis totally awesome!!!! If you can help me out, please contact me via email at: Pandora@Sweet-November.Net
Thankies!
If you have access to your server and AdminCP, its really a simple hack...just follow the instruction...The only way to learn is thru trial and error like most of us have done!....
Just give it a try and if it screws up, then ask via a post what to do next to fix it!...
Harley D
11-19-2004, 04:59 AM
Is there a way to update from 1.1.0 to 1.1.1 WITHOUT changing my templates?
Yuneek
11-19-2004, 11:37 AM
Parse error: parse error, unexpected '}' in /home/yuneek/public_html/forum/index.php on line 422
Here is the code from line 422:
$recorddate = vbdate($vboptions['dateformat'], $maxusers['maxonlinedate'], true);
$recordtime = vbdate($vboptions['timeformat'], $maxusers['maxonlinedate']);
$show['loggedinusers'] = true;
} // Line 422
else
{
$show['loggedinusers'] = false;
}
Harley D
11-19-2004, 12:45 PM
Parse error: parse error, unexpected '}' in /home/yuneek/public_html/forum/index.php on line 422
Here is the code from line 422:
Try Del the "//"
khaleel
11-19-2004, 01:12 PM
is there a way to clear chat history? :squareeyed:
Zero Tolerance
11-19-2004, 02:02 PM
Im having 1 problem...
#1 the IM to a member is not working
Thanks for the help. Love it and so do my members!!!
The format is like this:
/msg [Zero Tolerance] your message here....
The brackets are needed around the username, since the username can be anything i had to set some parameters in the regexp search to make it find who you were sending the message to.
- Zero Tolerance
SVTOA
11-19-2004, 02:07 PM
is there a way to clear chat history? :squareeyed:
This is a trick question, right? I sure hope so!! :rolleyes:
SVTOA
11-19-2004, 02:08 PM
vBChat Prune Options
Prune By Days - Prunes messages older than number of days inputted
Prune By Member - Prunes all messages by member inputted
Pune By Private MSG's Sent By User - Prunes All Private MSG's sent by user
Pune By Private MSG's Recieved By User - Prunes All Private MSG's recieved by user
Complete Prune - Removes All Messages
Zero Tolerance
11-19-2004, 02:09 PM
Plus theres now an auto prune option
- Zero Tolerance
cr95gst
11-19-2004, 04:58 PM
So anyone want to tell me how to get the date and time where "user status" is like in the 1.0.0 version?
khaleel
11-19-2004, 08:21 PM
thanks and this chat hack is what ive been looking for it goes well with all my templates its great thanks mate :D
passionboss
11-20-2004, 09:20 AM
.....but I've read through all the messages on this topic and I'm still unsure how this works.
Can I just install this and it works off my vb server or do I need a dedicated irc server? If so how do I go about sorting an irc server? And what do I need?
SVTOA
11-20-2004, 12:28 PM
.....but I've read through all the messages on this topic and I'm still unsure how this works.
Can I just install this and it works off my vb server or do I need a dedicated irc server? If so how do I go about sorting an irc server? And what do I need?
This is a simple add-on that uses your SQL database. you do not need anything else. Install it and go. :D
madhouse
11-20-2004, 01:26 PM
ZT are you going to still include an auto annountment so the chat can post important information in series?
G-khan
11-20-2004, 02:11 PM
Very nice hack I installed it and it works great.....
Would like to suggest a scroll type page where it could be set up to just read the old chat from a preset time. That way when you log in you can check what has been happening for the last hour or day or whatever it is set for without the constant refresh...
Great hack and very nice work...
dethfire
11-20-2004, 04:11 PM
would it be possible to add an option to disable a usergroup from being able to chat? Say you have a featured guest and you only want them to be able to post in the chat with the questions coming through PM?
Zero Tolerance
11-20-2004, 05:49 PM
would it be possible to add an option to disable a usergroup from being able to chat? Say you have a featured guest and you only want them to be able to post in the chat with the questions coming through PM?
Look in the ACP Panel for Chat, it allows you to ban usergroups and users ;)
ZT are you going to still include an auto annountment so the chat can post important information in series?
All in good time ;)
- Zero Tolerance
dethfire
11-20-2004, 06:24 PM
does banning mean they can still login and view the chat and PM, just not post a message? Thats what I need :)
djjeffa
11-20-2004, 06:57 PM
So anyone want to tell me how to get the date and time where "user status" is like in the 1.0.0 version?
yea im wondering this aswell is there a file or files that could be eddited?
lancepoint
11-20-2004, 11:54 PM
after installation i tried to edit options i got this sql error
Database error in vBulletin 3.0.3:
Invalid SQL: update vbulletin_vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups= '',d_bannedusers='',d_chat_order='bottom',d_smilie display='0',d_smilieamount='0',d_allowbantag='1',d _maxrooms='1',d_smilequery='0',d_autoprune='1',d_a utoprunedays='1' where did='1'
mysql error: Unknown column 'd_smiliedisplay' in 'field list'
mysql error number: 1054
then i went to check out the chat from client side by hitting vbchat on the navbar and where the chat goes i got this error
Database error in vBulletin 3.0.3:
Invalid SQL: select m.*,u.* from vbulletin_vbchat_store m
left join vbulletin_user u on (u.userid = m.s_postby) where m.s_forroom = '0' order by m.s_postime desc limit 0,15
mysql error: Unknown column 'm.s_forroom' in 'where clause'
mysql error number: 1054
your help is much appreciated!
Rageem
11-21-2004, 01:52 AM
after installation i tried to edit options i got this sql error
Database error in vBulletin 3.0.3:
Invalid SQL: update vbulletin_vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups= '',d_bannedusers='',d_chat_order='bottom',d_smilie display='0',d_smilieamount='0',d_allowbantag='1',d _maxrooms='1',d_smilequery='0',d_autoprune='1',d_a utoprunedays='1' where did='1'
mysql error: Unknown column 'd_smiliedisplay' in 'field list'
mysql error number: 1054
then i went to check out the chat from client side by hitting vbchat on the navbar and where the chat goes i got this error
Database error in vBulletin 3.0.3:
Invalid SQL: select m.*,u.* from vbulletin_vbchat_store m
left join vbulletin_user u on (u.userid = m.s_postby) where m.s_forroom = '0' order by m.s_postime desc limit 0,15
mysql error: Unknown column 'm.s_forroom' in 'where clause'
mysql error number: 1054
your help is much appreciated!
I too this error after installation, show up
Scerina
11-21-2004, 02:13 AM
I installed this hack and everything works perfectly good...all but my forum users are all invisible when they are ACTUALLY LOGGED in...err...can someone check out my forum home index file to see if it is configured correctly? I got a feelin something went wrong in that area...
Also, when you click to "Join Room" are you suppose to be automatically redirected to it after clicking "Join Room"? Cuz it just refreshes and does nothing...
Can someone plz help me out here???
Scerina
11-21-2004, 02:19 AM
K, I think I know where it went wrong...can someone plz check this bit out to see if it is configured correctly it is from my forum home index file:
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;
$numbervisible++;
}
}
// 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>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
$numberregistered++;
}
Can someone please check it out and tell me where I went wrong and how to fix it?
djjeffa
11-21-2004, 02:23 AM
I upgraded and everything but I still have the damm rex x'x on the smillies and also still not showing whos in chat .
Any ideals?
rexlu
11-21-2004, 03:31 AM
Is there anyway to show "who is in chat" in the vbadvanced homepage?
I tried, but couldn't make it :(
Vorty
11-21-2004, 10:16 AM
I upgraded and everything but I still have the damm rex x'x on the smillies and also still not showing whos in chat .
Any ideals?
I have exacly the same problema.
Most of my smilies are ok, but some are in red x. :ermm:
What can I do?
Tru Smiles
11-21-2004, 11:23 AM
I've had a lot of problems with my forum recently (Mainly related to my damn host ?_?) but HURRAH! I finally have vBChat working :D And it's mighty nice too!
There is just one little thing. You know the iFrame where the text appears? Because of the skin I use, the background for the iFrame uses the background for the skin, which is dark and unreadable. Does anyone know where it is that I can change the background colour to white? I'll show a picture of what it is I mean.
I've tried looking around myself, but I honestly don't trust myself to change things, even simple things >_> I've famous for breaking my old forums by trying to 'fix' them ;)
Anette
11-21-2004, 02:52 PM
It is 5 hours ago since someone left the chat.It stills says in the chatroom that he is there.People logs out, but it says they are there.It also said that he was in the chat, for about an hour or so after he had left.
What is the problem, can someone help please?
Zero Tolerance
11-21-2004, 03:32 PM
I have exacly the same problema.
Most of my smilies are ok, but some are in red x. :ermm:
What can I do?
Go to your ACP, and look at the vBChat options, you will see an option to set to yes if your smilies are showing as red-x's, the reason this is optional is because it uses an extra query, therefore - must only be set to yes if the red x's problem occurs to you, if it doesn't this extra query is "un-needed"
- Zero Tolerance
lancepoint
11-21-2004, 03:40 PM
can you post a response that referrs to my errors? they're posted above.
thanks
djjeffa
11-21-2004, 04:57 PM
Go to your ACP, and look at the vBChat options, you will see an option to set to yes if your smilies are showing as red-x's, the reason this is optional is because it uses an extra query, therefore - must only be set to yes if the red x's problem occurs to you, if it doesn't this extra query is "un-needed"
- Zero Tolerance
dam it was right infront of me lol now my last question is is there a way to pick what smilles show up? like to just have a set group?
Vorty
11-21-2004, 08:07 PM
Go to your ACP, and look at the vBChat options, you will see an option to set to yes if your smilies are showing as red-x's, the reason this is optional is because it uses an extra query, therefore - must only be set to yes if the red x's problem occurs to you, if it doesn't this extra query is "un-needed"
Thank you Scot, that solve my problem.
But now I have the same problem that Anette has:
It is 5 hours ago since someone left the chat.It stills says in the chatroom that he is there.People logs out, but it says they are there.It also said that he was in the chat, for about an hour or so after he had left.
The members still in the chat, but they really are log out.. (they aren't there)
What can cause this? :ermm:
Zero Tolerance
11-21-2004, 11:12 PM
Thank you Scot, that solve my problem.
But now I have the same problem that Anette has:
The members still in the chat, but they really are log out.. (they aren't there)
What can cause this? :ermm:
Possibly an error with my query to get members online, can't say the query has been changed since i first released this, ill check it out, if it is wrong it will be fixed in v1.1.2
- Zero Tolerance
Tru Smiles
11-22-2004, 04:53 PM
Can someone help me? ;_;
Koopa
11-22-2004, 06:11 PM
I get a blank screen after installation :S
http://www.footballmanager2005.com/forums/vBChat.php
freakz
11-22-2004, 09:54 PM
I made the mistake of upgrading from v1.0.1 to v1.1.1 which obviosly cause a database error......
How can I fix this with out uninstalling the hack?
I am running VB 3.0.3
Installation went extremely well and was easy. My problem - when I click on the chat link I get a blank page. I've checked and rechecked my file changes. Where exactly might my error be?
cclaerhout
11-23-2004, 08:23 AM
Installation went extremely well and was easy. My problem - when I click on the chat link I get a blank page. I've checked and rechecked my file changes. Where exactly might my error be?
Look at if the style you use has the vBChat templates. The automatic installation script only installs vBChat templates in your default style.
Rabbitoh Warren
11-23-2004, 11:11 AM
Looks like a great hack. Is there a way to automatically open and close the chatrooms at specified times during the day? If not, can I suggest this feature be looked at for a future version?
Look at if the style you use has the vBChat templates. The automatic installation script only installs vBChat templates in your default style.
Hmmm. It seems to have not installed the templates. Should I restore the files I deleted and run the installation again?
Never mind. I found them.
Is there an easy way to copy them to my other styles? Or is it cute and paste one by one?
LordDG
11-23-2004, 01:43 PM
For the blinking problem, ZT, have you considered having a hidden iframe that pulls the data in and then update the actual HTML of the display iframe with JavaScript (.innerHTML). This way the refreshing is done in a hidden frame and the display frame doesn't blink.
Awesome job though :) Thanks!
Zero Tolerance
11-23-2004, 02:22 PM
For the blinking problem, ZT, have you considered having a hidden iframe that pulls the data in and then update the actual HTML of the display iframe with JavaScript (.innerHTML). This way the refreshing is done in a hidden frame and the display frame doesn't blink.
Awesome job though :) Thanks!
Very possible, i can extend javascript to do almost anything, before i scripted php i was using javascript, even made a full battle featured rpg in javascript =/.
Anyway the only flaw with the js integration would be if the user doesn't have js turned on. Or there browser is 100% ancient and doesn't support any js.
- Zero Tolerance
LordDG
11-23-2004, 02:39 PM
I think it's a big enough benefit to warrant not catering to Lynx users ;)
Or you can have more than one iframe templates and depending on settings in admincp it will either be the blinking more friendly version, or the non-blinking JavaScript version.
Blam Forumz
11-23-2004, 03:15 PM
Very possible, i can extend javascript to do almost anything, before i scripted php i was using javascript, even made a full battle featured rpg in javascript =/.
Anyway the only flaw with the js integration would be if the user doesn't have js turned on. Or there browser is 100% ancient and doesn't support any js.
- Zero Tolerance
You could make an option whether to use JS or just plain HTML couldnt you? :P
Tru Smiles
11-23-2004, 05:12 PM
I've had a lot of problems with my forum recently (Mainly related to my damn host ?_?) but HURRAH! I finally have vBChat working :D And it's mighty nice too!
There is just one little thing. You know the iFrame where the text appears? Because of the skin I use, the background for the iFrame uses the background for the skin, which is dark and unreadable. Does anyone know where it is that I can change the background colour to white? I'll show a picture of what it is I mean.
I don't mean to bug, but, can someone help me please? o_O
aranthorn
11-24-2004, 12:14 AM
This is simply a brilliant mod. Easy install, great featues and above all works.
Bug report:
A user using Opera has reported that when there are enough messages so that a scrollbar shows up, the scrollbar jumps to the top at every refresh, even if the page is set to have newest messages show up at the bottom.
It looks like the Javascript call of scroll(0,99999999) does not work for Opera.
morrow
11-24-2004, 01:58 AM
For some reason, the chat page is a blank screen on some systems and it works on others. Any ideas what might be wrong with the systems that get the white screen?
Thanks
Harley D
11-24-2004, 03:20 AM
I don't mean to bug, but, can someone help me please? o_O
This is what I used for my "chat_iframe" template, as you can see all the different colors can be changed just like HTML. I found this in this thread.
hope this is what your needing.
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<style type="text/css">
body
{
color: #000000;
font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
margin: 0px 0px 0px 0px;
}
a:link
{
color: #22229C;
}
a:visited
{
color: #22229C;
}
a:hover, a:active
{
color: #FF4400;
}
</style>
</head>
<body bgcolor='#FFFFFF'>
$chat_page
</body>
<if condition="$do_scroll_auto == '1'">
<script type="text/javascript">
<!--
scroll(0,999999999)
-->
</script>
</if>
</html>
Harley D
11-24-2004, 03:28 AM
For some reason, the chat page is a blank screen on some systems and it works on others. Any ideas what might be wrong with the systems that get the white screen?
Thanks
The only thing I can think of is.... If others are using a different skin, this may be the problem. the reason I say this is, after I finished installing vbchat, I found some of my skins showed blank in vbchat, I then manually added the new templates, found in my default skin, that where added during the vbchat install.
The install doesn't add templates to skins that are not child skins from the default skin. I hope I'm making sense.LOL
cclaerhout
11-24-2004, 06:56 AM
A little question : how to delete private rooms ? After more than 2 hours, they are still alive. Any idea ?
Rageem
11-24-2004, 09:00 AM
I made the mistake of upgrading from v1.0.1 to v1.1.1 which obviosly cause a database error......
How can I fix this with out uninstalling the hack?
I am running VB 3.0.3
fortnox
11-24-2004, 11:00 AM
Hi!
First thanks for this great Hack.
I have a small Problem.
My smileys are animated Smileys and if i klick on a Smiley to insert them, all Animation will stop. :ermm:
If i klick in my Browser on refresh the Animation beginns.
kevin_r1
11-24-2004, 01:33 PM
I get a blank screen after installation :S
http://www.footballmanager2005.com/forums/vBChat.php
I had the same problem. I uploaded vBChat.php to the forums directory (again) and it worked.
Tru Smiles
11-24-2004, 05:17 PM
This is what I used for my "chat_iframe" template, as you can see all the different colors can be changed just like HTML. I found this in this thread. hope this is what your needing.
Thank you SOOOOOOOO much, I could kiss you :D :D
I was wondering, cos you such a lovely person, if you would know how to adapt that code for the BV Shoutbox here? > https://vborg.vbsupport.ru/showthread.php?p=574510&posted=1#post574510
Please?
:D
Since I didn't see any code to insert the time when each message was sent, I went ahead and coded it myself.
After:
if($thisIgnore == 0){
I inserted:
$time = date("g:ia",
mktime(date("H",
$ThisMSG['s_postime'])-$timediff+$ThisMSG['timezoneoffset'],
date("i, s, m, d, Y", $ThisMSG['s_postime'])));
I can now use $time in the chat_row and chat_row_special_recieved (sic) templates. $time takes into consideration the current chatter's timezoneoffset setting and the server's timezone setting so that each person should see their own local time when the messages were posted.
Hope that helps!
I now have alternating backgrounds for each message.
Somewhere near the top of chat_iframe, I inserted:
<if condition="$messagenum = 1"></if>
Then, in chat_row, I replaced:
<tr>
with
<tr <if condition="$messagenum%2 == 1">BGCOLOR="#F5F5F5"</if>>
I also inserted into the end of chat_row:
<if condition="$messagenum++"></if>
Of course you can change #F5F5F5 to whatever color you wish.
Hope that helps!
Harley D
11-25-2004, 04:37 AM
Since I didn't see any code to insert the time when each message was sent, I went ahead and coded it myself.
After:
if($thisIgnore == 0){
I inserted:
$time = date("g:ia",
mktime(date("H",
$ThisMSG['s_postime'])-$timediff+$ThisMSG['timezoneoffset'],
date("i, s, m, d, Y", $ThisMSG['s_postime'])));
I can now use $time in the chat_row and chat_row_special_recieved (sic) templates. $time takes into consideration the current chatter's timezoneoffset setting and the server's timezone setting so that each person should see their own local time when the messages were posted.
Hope that helps!
Where is this portion of code at? I'm unable to find it.
Where is this portion of code at? I'm unable to find it. You should be able to find the "if($thisIgnore == 0){" on line 331 of vBChat.php.
bidouilleur
11-25-2004, 06:15 PM
I added vbchat to my board, it worked except the smileys, they didn't show in the chat window. I have some other hacks installed but anyway, Resis Is Futile, one of my support members and good scripter had a look at it and tweaked it to make it work. Since it can help some others, I take the freedom to copy his changes here.
"
To make the smilies work I just changed to things. I removed the code in the smilie-bar generating section to make them appear in random order, and added a smilie-parser for the display of messages. I changed these two parts:
if($Chat_Options['d_smilequery'] != 1){ // Total Amount Of Smilies $total = sizeof($smiliecache); $smilie_select = array(); for($x=0;$x<$Chat_Options['d_smilieamount'];$x++){ $smilie_select[] = $smiliecache[rand(1,$total)]; } } else { // Your getting red x's, so instead of using cached data lets query the database $smilies = $DB_site->query(" SELECT smilieid, smilietext, smiliepath, smilie.title, imagecategory.title AS category FROM " . TABLE_PREFIX . "smilie AS smilie LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid) ORDER BY imagecategory.displayorder, smilie.displayorder "); $stotal = 0; while($gSmile = $DB->fetch_array($smilies)){ $allsmilies[] = $gSmile; $stotal++; } for($x=0;$x<$Chat_Options['d_smilieamount'];$x++){ $smilie_select[] = $allsmilies[rand(1,$stotal)]; }
to
if($Chat_Options['d_smilequery'] != 1){ // Total Amount Of Smilies $total = sizeof($smiliecache); $smilie_select = array(); for($x=0;$x<$Chat_Options['d_smilieamount'];$x++){ $smilie_select[] = $smiliecache[$x]; } } else { // Your getting red x's, so instead of using cached data lets query the database $smilies = $DB_site->query(" SELECT smilieid, smilietext, smiliepath, smilie.title, imagecategory.title AS category FROM " . TABLE_PREFIX . "smilie AS smilie LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid) ORDER BY imagecategory.displayorder, smilie.displayorder "); $stotal = 0; while($gSmile = $DB->fetch_array($smilies)){ $allsmilies[] = $gSmile; $stotal++; } for($x=0;$x<$Chat_Options['d_smilieamount'];$x++){ $smilie_select[] = $allsmilies[$x]; }
and
if($Chat_Options['d_allowbbcode'] == "yes"){ // URL Parse Then BBCode Parse? $ThisMSG['s_message'] = convert_url_to_bbcode($ThisMSG['s_message']); $ThisMSG['s_message'] = parse_bbcode($ThisMSG['s_message'], 'nonforum'); } else { $ThisMSG['s_message'] = htmlspecialchars_uni($ThisMSG['s_message']); } // Check Status if($ThisMSG['vbchat_pref_status'] == ""){ $ThisMSG['vbchat_pref_status'] = "<i>None</i>"; }
to
if($Chat_Options['d_allowbbcode'] == "yes"){ // URL Parse Then BBCode Parse? $ThisMSG['s_message'] = convert_url_to_bbcode($ThisMSG['s_message']); $ThisMSG['s_message'] = parse_bbcode($ThisMSG['s_message'], 'nonforum'); } else { $ThisMSG['s_message'] = htmlspecialchars_uni($ThisMSG['s_message']); } if($Chat_Options['d_smiliedisplay'] == 1){ // Your getting red x's, so instead of using cached data lets query the database $smilies = $DB_site->query(" SELECT smilieid, smilietext, smiliepath, smilie.title, imagecategory.title AS category FROM " . TABLE_PREFIX . "smilie AS smilie LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid) ORDER BY imagecategory.displayorder, smilie.displayorder "); while($smiliegot = $DB->fetch_array($smilies)){ $ThisMSG['s_message'] = str_replace($smiliegot['smilietext'], "<img src='{$smiliegot['smiliepath']}' alt='{$smiliegot['title']}' />", $ThisMSG['s_message']); } } // Check Status if($ThisMSG['vbchat_pref_status'] == ""){ $ThisMSG['vbchat_pref_status'] = "<i>None</i>"; }
Once again thanks Resis and I hope this can help others that have the same problem
I want to use the chat only for my moderators. So I don't want vBChat to display in the navbar or at the bottom where it displays: Users Currently Inside vBChat
How can I hide these from other usergroups?
Ehm, I put all the files where the readmefile told to. Now i have this error:
Fatal error: Call to undefined function: xml_parser_create() in /usr/home/*********/www/********/admincp/install_vbchat.php on line 31
Line 31 says $parser = xml_parser_create();
Help??
cclaerhout
11-25-2004, 10:54 PM
i've sent a french translation (only the user part - not the config one) of vBChat 1.1.1 to Zero Tolerance by PM, but he still hasn't read my PM. The zip counts two files. They will replace the english ones BEFORE the installation. Here's the link (Zero Tolerance can ask me to take it back if he wants to) :
http://www.lesatirique.info/vBChat1.1.1_french_translation_v2.zip
Harley D
11-25-2004, 11:53 PM
You should be able to find the "if($thisIgnore == 0){" on line 331 of vBChat.php.
Thank You!
darksen
11-26-2004, 05:46 AM
I have question I want to install this chat hack. If vbulletin will upgrade to a newer version do we need to remove the installed chat hack ? i'm somehow concern if newer version of Vbulletin core software will we have some problem? sorry for me newbie question
cclaerhout
11-26-2004, 09:56 AM
I have question I want to install this chat hack. If vbulletin will upgrade to a newer version do we need to remove the installed chat hack ? i'm somehow concern if newer version of Vbulletin core software will we have some problem? sorry for me newbie question
Upgrading Vbulletin means replacing old php files with new ones. If a hack required to modify a php file of Vb, you will have to re-install it. If the hack just create some templates in your styles and works alone (has his own php files), there's no modification to do :)
With vBChat, as you can see at the third step, you have to modify vb php files. So after any upgrade, you will have to repeate these modififations. Hope you understand my poor english ;-)
kevin_r1
11-26-2004, 12:46 PM
Since I didn't see any code to insert the time when each message was sent, I went ahead and coded it myself.
After:
if($thisIgnore == 0){
I inserted:
$time = date("g:ia",
mktime(date("H",
$ThisMSG['s_postime'])-$timediff+$ThisMSG['timezoneoffset'],
date("i, s, m, d, Y", $ThisMSG['s_postime'])));
I can now use $time in the chat_row and chat_row_special_recieved (sic) templates. $time takes into consideration the current chatter's timezoneoffset setting and the server's timezone setting so that each person should see their own local time when the messages were posted.
Hope that helps!
:up: Thanks! For boards that are not pruned daily, could you provide the code to include the date as well?
Vorty
11-26-2004, 02:18 PM
I added vbchat to my board, it worked except the smileys, they didn't show in the chat window. I have some other hacks installed but anyway, Resis Is Futile, one of my support members and good scripter had a look at it and tweaked it to make it work. Since it can help some others, I take the freedom to copy his changes here.
Once again thanks Resis and I hope this can help others that have the same problem
Thank You bidouilleur, that solve my problem!!
Thank you again :banana:
Ehm, I put all the files where the readmefile told to. Now i have this error:
Fatal error: Call to undefined function: xml_parser_create() in /usr/home/*********/www/********/admincp/install_vbchat.php on line 31
Line 31 says $parser = xml_parser_create();
Help??
Anyone? :nervous:
lanc3lot
11-26-2004, 06:18 PM
There is no way, this hack can be compiled for use in Irc too?
:)
lange
11-26-2004, 08:14 PM
Thanks. I'll test it.
yellow281
11-26-2004, 09:17 PM
What I would like to do is remove the header and footer part of this hack and have it running at the top of my forum board all the time with a link to turn it off if someone wants to. Anyone have any ideas on how to do this? I have it installed right now as a seperate iframe above the iframe that displays my forum on my home page. This works fine but the header and footer are showing above and below the chat making it look abit odd.
One other quick question.. once the chat window fills up, is there no way to scroll back up and see the previous lines of text? Also when I create another chat room, nothing happens. Anyone else having that issue? And lastly! Can anyone guesstimate the bandwidth each chat uses so I can work out what mine will be drawing simultaneously?
Thanks!
royals
11-27-2004, 09:32 AM
I've hit a snag with the install.
It's asking me to find
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;
}
}
found it, but I have something additional before the closing brackets. Mine looks like:
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]['lastactivity']) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
$numberregistered++;
if ($userid != $bbuserinfo['userid'])
{
$inforum["$loggedin[inforum]"]++;
}
$loggedin['musername'] = fetch_musername($loggedin);
if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}
}
}
I think I can add the additional part that is missing after location - but I'm not 100% sure how many } to add before adding the rest on.
I have a closed board so I dont know if its that or some other install.
SVTOA
11-27-2004, 12:06 PM
I've hit a snag with the install.
It's asking me to find
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;
}
}
found it, but I have something additional before the closing brackets. Mine looks like:
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]['lastactivity']) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
$numberregistered++;
if ($userid != $bbuserinfo['userid'])
{
$inforum["$loggedin[inforum]"]++;
}
$loggedin['musername'] = fetch_musername($loggedin);
if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}
}
}
I think I can add the additional part that is missing after location - but I'm not 100% sure how many } to add before adding the rest on.
I have a closed board so I dont know if its that or some other install.
try this:
https://vborg.vbsupport.ru/showpost.php?p=571821&postcount=258
Harley D
11-27-2004, 12:13 PM
I've hit a snag with the install.
It's asking me to find
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;
}
}
found it, but I have something additional before the closing brackets. Mine looks like:
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]['lastactivity']) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
$numberregistered++;
if ($userid != $bbuserinfo['userid'])
{
$inforum["$loggedin[inforum]"]++;
}
$loggedin['musername'] = fetch_musername($loggedin);
if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}
}
}
I think I can add the additional part that is missing after location - but I'm not 100% sure how many } to add before adding the rest on.
I have a closed board so I dont know if its that or some other install.
I had the same problem, this is what I did. Please make a backup the original just incase this doesn't work for you, but it should :o)
// Get the users in vBChat
$vbchat_users = array();
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>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
royals
11-27-2004, 12:51 PM
Thanks Harley D and SVTOA :D It's up and going!
SVTOA
11-27-2004, 01:06 PM
Thanks Harley D and SVTOA :D It's up and going!
No problem, that's what we're here for.
royals
11-27-2004, 02:46 PM
ok..... may I please have the text for the chat_main template?
etaslim
11-27-2004, 03:02 PM
installed perfectly in vb 3.0.3! thanks for this great hack
John Lester
11-27-2004, 11:09 PM
Holy cow. What a fantastic mod! I finally got it all set up on my site. Was waiting for you to iron out a few bugs and add a few features. Version 1.1.1 is fantastic.
This.....is just what I needed.
Can't wait to see future versions...you've got a real hit on your hands!
Excellent work, Zero. You are my hero. :)
John Lester
11-27-2004, 11:39 PM
Just two quick questions. I would like to do two things:
1) increase the lines of chat in the buffer. I read I can do this by editing vbchat.php and changing:
left join ".TABLE_PREFIX."user u on (u.userid = m.s_postby) order by m.s_postime desc limit 0,15");
to
left join ".TABLE_PREFIX."user u on (u.userid = m.s_postby) order by m.s_postime desc limit 0,<some_larger_number>");
This won't screw up the database, will it? Since the buffer is, I assume, stored in the database, I wasn't sure if I had to change any variable properties.
Also,
2) increase the size of the chat window. It's a bit small and I'd like it to fill most of the page. I couldn't figure out how to do that based on this thread. Any tricks?
Harley D
11-28-2004, 01:15 AM
ok..... may I please have the text for the chat_main template?
<script type="text/javascript">
<!--
setBlank = false;
function doRestore(){
setBlank = true;
}
function checkInp(){
if(setBlank){
document.forms['chatForm'].message.value = ""
setBlank = false;
}
}
function chatFrameReload(){
window.frames['vBChatFrame'].location.href = window.frames['vBChatFrame'].location.href
window.frames['vBChatUser'].location.href = window.frames['vBChatUser'].location.href
}
function AddSmilie(code){
document.forms['chatForm'].message.value += " " + code + " "
}
setInterval("chatFrameReload()",10000)
-->
</script>
<form name='chatForm' method='post' action='vBChat.php?{$session['sessionurl']}' target='vBChatFrame' onsubmit='doRestore()'>
<input type='hidden' name='do' value='post_message' />
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan='2'>
<a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_vBChat')"><img id="collapseimg_forumhome_vBChat" src="$stylevar[imgdir_button]/collapse_tcat.gif" alt="" border="0" /></a>
<div align='center'>vBChat</div></td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_vBChat" style="{$vbcollapse['collapseobj_forumhome_vBChat']}">
<tr>
<td class='alt2' align='center' width='80%' height='300' rowspan='2'>
<iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatFrame' name='vBChatFrame' onload='checkInp()'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
</td>
<td class='alt2' align='center' width='20%' height='300'>
<iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatUser' name='vBChatUser'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
</td>
</tr>
<tr>
<td class='alt2' align='center'><img alt='Powered By vBChat' src='images/vbchat.gif' /></td>
</tr>
<if condition="$Chat_Options[d_smiliedisplay] == '1'">
<tr>
<td class='alt2' align='center' width='100%' colspan='2'>
<table width='100%' height='1%' border='0'><tr>{$Smile_Display}</tr></table>
</td>
</tr>
</if>
<tr>
<td class='tfoot' align='left' width='100%' colspan='2'>
<b>Post Message:</b>
<input type='text' name='message' class='button' size='70'> <input type='submit' value=' Post ' class='button'>
</td>
</tr>
</tbody>
</table>
</form>
<br />
:up: Thanks! For boards that are not pruned daily, could you provide the code to include the date as well? You can just change the "g:ia" format to whatever you want according to the PHP "date" documentation (http://us2.php.net/manual/en/function.date.php). For example, "M j Y g:ia" will show something like "Nov 27 2004 8:30pm".
Hope that helps!
John Lester
11-28-2004, 07:19 PM
I figured out how to make the chat window larger on my own.
editing "chat_main" template:
Changed:
<td class='alt2' align='center' width='80%' height='300' rowspan='2'>
To:
<td align='center' width='85%' height='600' rowspan='2'>
Changed:
<td class='alt2' align='center' width='20%' height='300'>
To
<td align='center' width='15%' height='500'>
Works like a charm. :)
John Lester
11-28-2004, 10:17 PM
Here's something I haven't been able to figure out.
I have 100 different chatrooms set up using vBChat. People like to jump between them. However, once people are chatting they have no indication of which room they are currently in.
Is there a way to display the NAME of the chatroom while people are chatting?
Also, once people "join" a different chatroom, they are brought back to the same "choose a chatroom" screen. Is there a way for them to be automatically jumped INTO the chatroom they have selected from the "join a chatroom" screen? It's a bit confusing the way it works right now.
Thanks for any help or ideas.
djjeffa
11-29-2004, 03:02 AM
is there a way i could ad a module for my vbadvance page to tell whos in chat?
sstrayer
11-29-2004, 05:46 AM
Installed, thanks Zero
Since I didn't see any code to insert the time when each message was sent, I went ahead and coded it myself.
After:
if($thisIgnore == 0){
I inserted:
$time = date("g:ia",
mktime(date("H",
$ThisMSG['s_postime'])-$timediff+$ThisMSG['timezoneoffset'],
date("i, s, m, d, Y", $ThisMSG['s_postime'])));
I can now use $time in the chat_row and chat_row_special_recieved (sic) templates. $time takes into consideration the current chatter's timezoneoffset setting and the server's timezone setting so that each person should see their own local time when the messages were posted.
Oops -- bug. It looks like the code I used above didn't do the timezone offset very well.
Instead of the code that I inserted above, try using:
$time = date("g:ia",
mktime(date("H",
$ThisMSG['s_postime'])-$vboptions['timeoffset']+$bbuserinfo['timezoneoffset'],
date("i, s, m, d, Y", $ThisMSG['s_postime'])));
This should then have $time set to the user's local timezone (provided they set it in their own profile options, of course).
kevin_r1
11-29-2004, 07:33 PM
You can just change the "g:ia" format to whatever you want according to the PHP "date" documentation (http://us2.php.net/manual/en/function.date.php). For example, "M j Y g:ia" will show something like "Nov 27 2004 8:30pm".
Hope that helps!
That helped a lot. Thanks for the resource!
That helped a lot. Thanks for the resource!
You're welcome! Make sure you use the latest code that I just posted that corrects some timezone issues...
blitzkrg
11-29-2004, 09:25 PM
I had the same problem, this is what I did. Please make a backup the original just incase this doesn't work for you, but it should :o)
// Get the users in vBChat
$vbchat_users = array();
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>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
I had the same problem as others, with the extra code.
the fix that was provided, solves the "who's logged on" problem, but now it wont show who's in chat..
any ideas?
GunsNetwork
11-29-2004, 10:23 PM
I can now use $time in the chat_row and chat_row_special_recieved (sic) templates. $time takes into consideration the current chatter's timezoneoffset setting and the server's timezone setting so that each person should see their own local time when the messages were posted.
Hope that helps!
Give us an example of how you would put $time in those two templates!
blitzkrg
11-29-2004, 10:32 PM
I had the same problem as others, with the extra code.
the fix that was provided, solves the "who's logged on" problem, but now it wont show who's in chat..
any ideas?
i take that back, it does work, however
it wont show *you* as logged in.
meaning if i'm in chat, it wont tell me so on the main page.
if another user logs in, it shows me on the main page that he is in chat, but it wont show him as logged in, to himself.
blitzkrg
11-29-2004, 10:35 PM
Give us an example of how you would put $time in those two templates!
here's what i did for the first temp.
<tr>
<td nowrap="nowrap" valign="top"><span class='time'></span>$time <b>{$ThisMSG['username']}:</b>
<font face='{$ThisMSG['vbchat_pref_font_face']}' style='color:{$ThisMSG['vbchat_pref_font_color']};'>{$ThisMSG['s_message']}</font></td>
for the 2nd
<tr>
<td nowrap="nowrap" valign="top">[<span class="highlight"><b><i>Private Message From {$ThisMSG['username']} @ $time</i></b></span>]
</td>
<td><font face='{$ThisMSG['vbchat_pref_font_face']}' style='color:{$ThisMSG['vbchat_pref_font_color']};'>{$ThisMSG['s_message']}</font></td>
GunsNetwork
11-29-2004, 11:54 PM
here's what i did for the first temp.
<tr>
<td nowrap="nowrap" valign="top"><span class='time'></span>$time <b>{$ThisMSG['username']}:</b>
<font face='{$ThisMSG['vbchat_pref_font_face']}' style='color:{$ThisMSG['vbchat_pref_font_color']};'>{$ThisMSG['s_message']}</font></td>
for the 2nd
<tr>
<td nowrap="nowrap" valign="top">[<span class="highlight"><b><i>Private Message From {$ThisMSG['username']} @ $time</i></b></span>]
</td>
<td><font face='{$ThisMSG['vbchat_pref_font_face']}' style='color:{$ThisMSG['vbchat_pref_font_color']};'>{$ThisMSG['s_message']}</font></td>
Thanks that worked out nicely!
docvader
11-30-2004, 06:16 AM
I like the VBChat, but since I already own Digichat, I'd like to uninstall it. Reverting the files are easy, but getting the database back to where it was is not. I have found two vbchat tables in mysql, but I think there are more alterations. How do you uninstall this?
docvader
11-30-2004, 06:52 AM
OK, figured out the conflict. VBChat overwrites the Digichat integration hack's "chat" template (and calls it CHAT). Which screws it up. If you had a text file of the template changes, I could probably go back to using both.
pets.ca
11-30-2004, 04:34 PM
Is there a way to programmatically quiet the click sound that is made when a webpage does a postback. (ie whenever a user clicks the submit button you will here a quiet click sound).
Currently I know how to manually go into windows and set the clicking sound to nothing (Which stops the clicking sound):
*control panel
*sounds and audio device properties
*Go to the topic for (window explorer) and set ths start navigation.wav to none
But is there a way to add this to the current script?
Thank you very much
dave
Thanks again,
pets.ca
11-30-2004, 07:11 PM
Thanks for the amazing script.
I installed it rather quikcly and it seems to be working.
Suggestions for future updates
1. Fix the missing smiley issue. Also, I get several duplicates
2. When chat is offline, be able to post via Admin page the Reason For Turning Chat Off in the same way that you can include a reason for turing the Forum OFF.
3. *** Save transcript of chats in a text file (includes time and user names)
4. Disable ability to create multiple chat rooms. I simply wanted one chat room and had to go into the codes to remove the Create chat option.
5. *** get rid of the annoying click sound whenever the page refreshes, change the time delay for page refreshes.
6. Be able to change the size of the cache for previous posts (seems to be 10 - 15 posts).
7. Allow admins to have a much LARGE chache then guests.
Thanks again.
dave
Fatal error: Call to undefined function: xml_parser_create() in /usr/home/*********/www/********/admincp/install_vbchat.php on line 31
Line 31 says $parser = xml_parser_create();
Anyone? :nervous:
Hello? Am I invisible? Is there anyone who knows what this is?
cclaerhout
12-01-2004, 12:26 AM
Just to repeat that this hacks is excellent :-D
Harley D
12-01-2004, 03:48 AM
Just to repeat that this hacks is excellent :-D
I second that!!!!
Good for you.. :disappointed:
TruckMuddr
12-01-2004, 09:54 PM
Is there anywhere to make it beep when someone comes in or says something????
Also, everytime it refreshes a member on the side goes away then comes back. is that maybe because they are on two differnt pages at once??
Other then that I love the chat.
--- EDIT ---
Also I read that you got rid of the timestamp and replaced it with the member status. How could I get the Timestamp back??? and remove the status???
One more :)
would it be possible to link to a certain room??? like if I made an Admin/Mod chat(password protected), could I have a link so they don't have to go into the main chat first?? or maybe linked to the change room page. Just a thought I guess.
Thanks
Jmonto
12-02-2004, 02:56 AM
very awesome hack...wish it didnt reload like that though..only complaint
intrigue
12-02-2004, 12:57 PM
hey any reason why it only adds the templates to the default skin?
And how would i do this for my other skins without doingit manually
.matt
Harley D
12-03-2004, 03:38 AM
hey any reason why it only adds the templates to the default skin?
And how would i do this for my other skins without doingit manually
.matt
Make your other skins the default skin one at a time, and just run that portion of the install for each skin.
capslock
12-03-2004, 03:48 PM
compliments for the script.
i have a problem: users are not shown in user's on line, neither in chat users on line.
http://forum.moddingplanet.it
cosmin
12-03-2004, 10:34 PM
is there a way i could ad a module for my vbadvance page to tell whos in chat?i second this need as well.. considering many use vbadvanced as the main page, it would be a HUGE bonus to have a module to display the chatters on the main page... instant traffic to the chat room :)
ahh.. btw.. its installed in our community of over 10K members and works great! :) ...excellent job!
Matt Bush
12-03-2004, 11:07 PM
How do I go about changing the background color of my chat?
taffy056
12-04-2004, 12:13 PM
Hi,
Just installed version 1.1.1 on my two forums, excellent stuff! Glad you released an updated version because I could not get the other versions to work for some reason.
Anyway thanks for the hack :)
taffy
Arboristsite
12-05-2004, 02:55 AM
I am trying to figure out how you edit the default room. I see I edit the rooms that I have inputed, but the default page does not show up in the vchat room control. I just don't want a room that says default.
Thank you, it works great and we are already enjoying it.
djjeffa
12-05-2004, 04:28 PM
i second this need as well.. considering many use vbadvanced as the main page, it would be a HUGE bonus to have a module to display the chatters on the main page... instant traffic to the chat room :)
ahh.. btw.. its installed in our community of over 10K members and works great! :) ...excellent job!
also it may be nice to make a modual with the main chat room in it for the home page
Adrian Schneider
12-06-2004, 02:36 AM
Anyway to kick auto-kick idle users, since it refreshes every x ammount of seconds, it keeps them as 'online' in the current minute. Probably bad for bandwidth & is a pain.
Also, anyway around the bug relating to the # of users online?
brianj
12-06-2004, 03:33 AM
Very sweet addition! Got one question though. At the end of the instructions, there is this last thing to do:
Go to your Admin CP, then go to the following area:
Scheduled Tasks -> Add New Scheduled Task
Fill in the form as follows:
Title: vBChat Auto Prune
Day of the Week: *
Day of the Month: *
Hour: 0
Minute: 2
Log Entries: Yes
Filename: ./includes/cron/vbchat.php
Well, I don't have this setting to choose from in my admincp....what to do?
brianj
12-06-2004, 02:46 PM
ok, does the above info mean that this needs to run every 2 minutes every day of the week every month of the year? I can use wget and windows task manager until I find a fix for this issue...anyone else using this to run maintanence?
Holidazed
12-06-2004, 10:00 PM
I made the mistake of attempting to upgrade from 1.0.0 to 1.1.1 using the upgrade script (1.1.0-1.1.1). I did not seem to have a problem when running the install script even though it was obviously it is the wrong script. Anyway, when I update my "vBChat Options" I get the following database error:
Database error in vBulletin 3.0.1:
Invalid SQL: update vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups= '1|3|8|11',d_bannedusers='',d_chat_order='bottom', d_smiliedisplay='1',d_smilieamount='10',d_allowban tag='1',d_maxrooms='5',d_smilequery='0',d_autoprun e='1',d_autoprunedays='1' where did='1'
mysql error: Unknown column 'd_chat_order' in 'field list'
mysql error number: 1054
Ideas?
Adrian Schneider
12-07-2004, 12:40 AM
The bug on the forum home showing who's online is really bugging me (shows I am only one online, when there are others online). Any way to fix this?
bi11i
12-07-2004, 01:04 AM
I just installed this and although a room is created when I enter one, i'm never forwarded on to the next page or given a confirmation. It looks like it takes, and i can even join the room - but even on the join room page, when i select the room and click to get there, the page still never refreshes. Is anyone else seeing this? It looks like all my templates are there - what gives?
Is there a way to turn that clicking refresh of the page sound of from IE globally (like so all my users don't have to mess with their audio settings?)
this is a great mod - thanks. my only suggestions would've been to add a global phrase for vbchat so the word 'vBchat' could be changed throughout the navigation and chat pages and maybe provide a little more control on where the smilies are coming from. I have some smilies that are really tall (like a BS Flag) and when those happen to show themselves, the chat window is pretty much one line. Where is it pulling the default smilies from? is there a way to control this?
Yes there will be an update script and a fresh install script when new versions are released :)
- Zero Tolerancehow about an uninstall script (for those like me, that tried to modify some stuff and didn't know what they were doing....) actually - after editing some of this, it would be really handy if there was an uninstall script or someone could just tell me how to do it manually. I shudder at the thought of messing with mySQL tables knowing what I did the last time. OOOPSIES.
Thanks for an awesome mod, however - really cool.
Katman
12-08-2004, 12:41 AM
There is a security hole in this hack!
If a person logs into your forum, enters the chatroom, then logs off, then clicks their back button they can post in the chatroom and it doesn't show a member/user name. If you refresh the screen then you see the No Guest Access message.
bi11i
12-08-2004, 12:46 AM
oh man, better contact macafee (sorry, just kidding....)
trilOByte
12-08-2004, 12:47 AM
About the blinking/refresh thing. I ran PHPMyChat for a while, and as far as I can tell, theat uses a similar refresh system, but it doesnt blink. Anyone know how they got round the issue?
Katman
12-08-2004, 12:49 AM
oh man, better contact macafee (sorry, just kidding....)
Macafee sucks! I'd call Symantec.
It's not a big deal but I do have some members that like to spy on other members to see if people are talking about them. Kind of childish if you ask me but still, I don't need the headaches on my fourms so I'd like someone to fix the problem, if it's possible.
b6gm6n
12-10-2004, 12:32 AM
anyone ever get rid of the horizontal scrollbars in IE in the main chat window?
and for the love of Christ i cannot find the text where is says "No one is currently inside vBChat"... where is that? is the 'vbchat' part calling on the actual name of the script? anyways...please advise, cheers
-b6
pets.ca
12-11-2004, 11:30 AM
How does one go about unistalling this script?
Andrew
12-11-2004, 07:53 PM
anyone ever get rid of the horizontal scrollbars in IE in the main chat window?
I fixed mine by just putting <div style="width:100%"> after $header and </div> after {$chat_page} on the CHAT template. Take a look at mine here :
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $pagetitle</title>
$headinclude
</head>
<body>
$header
<div style="width: 100%">
$navbar
<if condition="$bbuserinfo[userid]=='0'">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="3">Guest - No Permissions</td>
</tr>
<tr>
<td class="thead">Unable To View</td>
</tr>
<tr>
<td class="alt1" colspan="1">Guests Are Unable To Use The vB Chat System</td>
</tr>
</table>
<br/>
<else />
{$chat_page}</div>
<br />
</if>
$footer
</body>
</html>
Boback
12-11-2004, 09:42 PM
Hi ZT,
Great hack, really great. I just have one question; Is there a way to increase the chat buffer?
Cheers
bi11i
12-11-2004, 10:34 PM
How does one go about unistalling this script?
That's what I"d like to know - anyone?
Boback
12-12-2004, 12:15 AM
That's what I"d like to know - anyone?
I believe you run the install script again, and select Uninstall.
AbstractHipHop
12-13-2004, 06:19 AM
great script
AbstractHipHop
12-13-2004, 06:59 AM
i wanna show who's in the chat room on a non-vb page
anyone have the code for this?
was anyone able to fix the "who is online in the vbchat" error? (wouldnt show user even if he was there)
John Lester
12-13-2004, 08:03 PM
Still wondering about this...
People like to jump between the different rooms I have set up in vBChat. However, once people are chatting they have no indication of *which* room they are currently in.
Is there a way to display the NAME of the chatroom on the main chat window while people are chatting?
Also, once people "join" a different chatroom, they are brought back to the same "choose a chatroom" screen. Is there a way for them to be automatically jumped INTO the chatroom they have selected from the "join a chatroom" screen? It's a bit confusing the way it works right now.
Is anyone else trying to do this?
oh nvm i tried it again and it works.
Does anyone know how to make a "Who is in vBChat" module for CMPS vBAdvanced home page please? I need it very much.
ok, i took the code needed from the whats going on box in the forumhome template and updated it and put it in the who is online module.
What do i need to change/add in the onlineusers.php for the code to work?
Please help me, this is urgend. Thanks in advance
brianstevz
12-14-2004, 06:26 PM
I made the mistake of attempting to upgrade from 1.0.0 to 1.1.1 using the upgrade script (1.1.0-1.1.1). I did not seem to have a problem when running the install script even though it was obviously it is the wrong script. Anyway, when I update my "vBChat Options" I get the following database error:
Database error in vBulletin 3.0.1:
Invalid SQL: update vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups= '1|3|8|11',d_bannedusers='',d_chat_order='bottom', d_smiliedisplay='1',d_smilieamount='10',d_allowban tag='1',d_maxrooms='5',d_smilequery='0',d_autoprun e='1',d_autoprunedays='1' where did='1'
mysql error: Unknown column 'd_chat_order' in 'field list'
mysql error number: 1054
Ideas?
I did the same thing. You need to go to your SQL tables and drop anything with VBChat in it. There should be two user files and two main files. Then try to install. You should get another error since the SQL tables are now gone. I did that and it installed fine.
laskos
12-15-2004, 09:46 PM
i have installed it but getting a blank white page ??? at http://www.DNuk.co.uk any ideas what i have done wrong appreciate guys.
thanks
laskos
camoman
12-16-2004, 01:44 AM
Question..
Everything installed find and functions fine except the "Users Currently inside vbchat" it doesn't pull the user names from there it's just blank. Any ideas?
Installed on vb 3.0.3
shuichi_akai
12-16-2004, 02:19 AM
The page loads very quick, I can not read when there're many people in chat room :(
MikaK
12-16-2004, 07:42 AM
*click* install:)
My 1st mod used.
=MikaK=
morph2004
12-16-2004, 04:07 PM
Hi all.
I have done a fair bit of searching and index file hacking, but cant still get any users to show in the "online" box.
If theres a way to hack this to work in 3.0.3 I (and probably others) would love to know.
My deepest gratitude in advance.
Owen Lees
www.modelracer.com
camoman
12-16-2004, 04:27 PM
Hi all.
I have done a fair bit of searching and index file hacking, but cant still get any users to show in the "online" box.
If theres a way to hack this to work in 3.0.3 I (and probably others) would love to know.
My deepest gratitude in advance.
Owen Lees
www.modelracer.com
I am having the exact same problem..
eXtremeTim
12-17-2004, 01:27 AM
The pages seem to want to take a bit before they reload the same page again such as when I join another chat. Or update my preferences. Also where it says vBChat in the sidebar where it lists the users should list the room name they are currently in. I think that would work better.
MorrisMcD
12-18-2004, 02:48 AM
I am having an issue with the step of editing the root index.php...
The instruction says to find this...
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;
}
}
But the problem is I found this...
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]['lastactivity']) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
$numberregistered++;
if ($userid != $bbuserinfo['userid'])
{
$inforum["$loggedin[inforum]"]++;
}
$loggedin['musername'] = fetch_musername($loggedin);
if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}
}
}
My brackets close later than your instructions say they should.. Can anyone enlighten me to why this is? I assume a previous hack I installed.. If so, can someone tell me where I should fit in the new chatroom related code?
Boback
12-18-2004, 07:46 PM
I have a problem with the users in the default chat room not clearing, even for days. And its getting worse. More and more users are becoming ghosts in that list and seems like once you join the chat, it never clears you. :disappointed:
Is there anything I can do to solve this? I'm using 1.1.1 with vb3.0.3
Thanks.
P.S. on the forum home page, it says no users in the chat rooms, but when you go in, theres people from previous sessions who have not been cleared.
MikaK
12-19-2004, 12:09 PM
Are there any plans to change the smilies support. IMO the current way of showing random smilies is not a very good way to use them. Especially when those randomly selected may show several same smilies:(
If anybody has a way to show selected 10 I'd surely appreciate instructions posted here.
Otherwise this seems to work all ok for me.
Regs,
-MikaK-
ncangler
12-19-2004, 08:45 PM
I installed the mod last night and it works great. Thank you! I followed the instructions and it worked flawlessly.
ncangler
12-19-2004, 08:50 PM
[QUOTE=Boback]I have a problem with the users in the default chat room not clearing, even for days. And its getting worse. More and more users are becoming ghosts in that list and seems like once you join the chat, it never clears you. :disappointed:
Boback, I was able to clear the Chat history in the Admin control panel under the "vBChat Control" "vBChat Prune Options" section. You can choose to "vBChat Total Prune" to eliminate all chat posts or you can set it up to Prune by days or members. Worked fine for me.
Hope this helps.
Randy
ncangler
12-19-2004, 08:54 PM
I noticed that you have to select "logout" of the forum when in vBChat in order to log out of the Chat room. Otherwise you show as as still in the Chat room. Am I missing the correct way to leave the Chat room or is another option for leaving a room necessary?
Thanks for a great Mod!
Randy
ncangler
12-19-2004, 08:59 PM
I have vB3.03 with Photopost Pro gallery software, Reviewpost product review software, and Classifieds sales program. Photopost allows for integration with vB3 styles and after installing the vBChat mod I can see the vBChat option in the menu structure of the Photopost part of my site. But if you select vBChat there you can an error message:
404 Not Found
The requested URL /photopost/vBChat.php? does not exist.
Anyone have an idea how to fix this? Thanks for any input.
Randy
camoman
12-20-2004, 02:31 PM
Question..
Everything installed find and functions fine except the "Users Currently inside vbchat" it doesn't pull the user names from there it's just blank. Any ideas?
Installed on vb 3.0.3
Has anyone found a solution to this problem?
MaTtY PiMpZ
12-20-2004, 03:14 PM
Ya, me too !
I want to creat private chat rooms !!!
cool hack, i wish some1 would help with these hacks i got
SVTBlackLight01
12-20-2004, 06:07 PM
I have vB3.03 with Photopost Pro gallery software, Reviewpost product review software, and Classifieds sales program. Photopost allows for integration with vB3 styles and after installing the vBChat mod I can see the vBChat option in the menu structure of the Photopost part of my site. But if you select vBChat there you can an error message:
404 Not Found
The requested URL /photopost/vBChat.php? does not exist.
Anyone have an idea how to fix this? Thanks for any input.
Randy
It sounds like you are using a relative URL in your link to vBChat.php, which will cause this to happen on any page outside of the forums directory.
Roxie
12-20-2004, 07:20 PM
Is there a way to change the number of chat messages that are viewable? My chat room only shows about 15 of the past messages and then they disappear.
The-Aeon
12-20-2004, 08:45 PM
Hello I have Installed this Chat in my Board and I found one little Bug,
cause off the Board is in Germany I have the Timezone WEZ +1
the chat shows the wrong Time.
on Forum home I can see for Example: WEZ +1 23:32
on the Chat I see WEZ +1 22:32
How I can fix this Bug ?
sorry for my bad englich, I speak it not very often
korny
12-21-2004, 03:02 AM
Installed....great hack.
Not sure if this was asked before, but is there a way to extend the chat psots...where more posts are shown. Like the old ones?
EDIT : Looks like someone already posted that same question...2 posts up /\ /\ :mad:
Boback
12-22-2004, 12:18 AM
Yea its been asked a good few times, but noone has answered it :(
The problem with my chatboard not clearing the userlist seems to have fixed itself. Though a total prune didn't do it. It seems to have fixed it on its own.
bi11i
12-22-2004, 01:01 AM
Could someone write a quick uninstall script on this? At least for the SQL tables? I can manually delete everything else, but I'm not experienced enough to touch my SQL stuff....
Anyone?
The Avatar
12-22-2004, 03:56 AM
How do I go about changing the background color of my chat?
I would also love to know this..
Im also experiencing some of the errors other are complaining about. There users dont auto-prune and the chat doesnt parse in BB code either. Thats annoying...........
Any hints to this?
johnmurphy
12-22-2004, 08:49 PM
first time I ever installed a hack...works like a charm!!!
took me 15 minutes (mainly reading)
color change: has been addressed several times... (iframe => change body)
what I do miss is "How To" get rid of the status thing. Don't know what it's good for anyway...
THX ZT!!!
shiva
12-22-2004, 11:31 PM
Here's a funny bug everytime I enter the chat room (see picture attached) where my entire website design is included in the chat box. It clears up soon as I enter the user section (and I think it clears when I post a message)
Using Firefox. Sorry if this was answered before, but 30 plus pages to this thread...
fustanella
12-23-2004, 10:52 AM
Man, this looks good on my board, and has been needed for quite some time. Thank you very much for a nearly painless installation!
red_baron2000
12-25-2004, 03:58 PM
is there a way to turn the radom smilies to a fixed ..or in a way it display them in the same order as they are saved in the cp and shown on board?
example smily1 ,smily2 etc..
thank you
MikaK
12-25-2004, 06:57 PM
is there a way to turn the radom smilies to a fixed ..or in a way it display them in the same order as they are saved in the cp and shown on board?
example smily1 ,smily2 etc..
thank you
This is the way I?d want to have it as well. For example the group "generic smilies" included.
Mika
arob42
12-26-2004, 05:25 AM
Just installed the hack and I'm very happy with it. I was using phpMyChat previously, but that required a separate registration. This one works very well with my web site. Now I'm one step closer to a unified web site. Thanks!
ncangler
12-26-2004, 05:50 AM
It sounds like you are using a relative URL in your link to vBChat.php, which will cause this to happen on any page outside of the forums directory.
Thanks for the input. I fixed it and also figured out how to add new navigation links in the Navbar. Everything is working! Very cool. Thanks for the great input on this forum.
Randy
Adrian Schneider
12-26-2004, 06:45 AM
I've had this installed for nearly a month now, everthing works great, but under Currently Active Users, it only shows myself, when many more people are online. I saw this problem mentioned but I thought he meant just for the chat. (He suggested it was ISP/browser problem, but only started to occur after installation).
Anyway I checked the templates and the changes in the includes_online file, couldn't find the problem. Anyone know how to fix this?
docvader
12-26-2004, 08:57 PM
Is there a reason why we don't see "redirect" pages when you change options or rooms in vBChat? Same in the ADMIN CP, for vBChat, when you save new options, you don't get a "settings were saved" redirect.
Have I missed something?
PaceAdvantage
12-27-2004, 03:09 PM
I have a couple of questions:
1) Is there any way to get rid of the horizontal scroll bar and have the text automatically wrap?
2) Is it just me, or are private messages tabbed way across the screen, forcing you to scroll to the right for even the shortest of private messages....how to fix this?
Other than that (and smiley 'X' problems that are NOT fixed by the built in vbChat "fix") it's a great script.....
==PA
(Oh yeah, and how about a command to reveal more history on a per-user basis, for say, someone who joins the chat late)!
NFLForums
12-27-2004, 09:27 PM
Quick problem that we've noticed...Every once in a while, a user will type something in & hit post & it never shows up..other times it will show up twice...Is that something on our end or is there a little glitch?
Other than that it's great! Thanks! Much easier than the other kind with the raidersoft chat program! :)
PaceAdvantage
12-28-2004, 03:32 AM
Some more requests from my users:
1) like to see the text wrapped
2) Be able to click on someones name without having to type it in every time, much like the way Private Messages are done by clicking on the name on the right hand box....I would suggest making the name that appears in the actual chat room CLICKABLE for a normal, non private message. When clicked, the user name appears in the send box, so that you don't have to type the person's name that you are addressing
3) Not enuff history it goes back 20 post approx not nearly enough
4) And you already know about the Private Messages appearing all the way to the right, for whatever reason....is that just my problem, or do other people see this?
Takamine334
12-28-2004, 04:57 AM
I'm not able to change rooms....just loops back to the room select page.
Takamine334
12-29-2004, 01:38 AM
anyone?
vishalsachar
12-29-2004, 12:17 PM
Absolutely superb.
Well done!
Just a couple of easy questions:
1. is there any way of pruning the messages automatically when there is no one there? I dont like the idea that all chats are logged for 24 hours.
2. Is there any way for members displayed in the chat to have different coloured display? (for example when it says > VISH says: < it is displayed in black, but can all members be displayed with a different colour? Not the text, just the name?)
Great hack, my fave and look forward to future versions!
*clicks install*
herk483
12-29-2004, 02:48 PM
anyway for force pruning - to clear the room out
Sai01
12-30-2004, 12:39 AM
questions!
1. can user create their own room?
2. is there a scroll bar in the message box? cause in my forum the text goes up auto and you can't read what's already been passed.
3. can each user have their own color text?
4. where can i edit the default font size?
5. will there be a future version of this with all the stuff that everyone here mentioned?
vishalsachar
12-30-2004, 02:26 AM
anyway for force pruning - to clear the room out
1. is there any way of pruning the messages automatically when there is no one there? I dont like the idea that all chats are logged for 24 hours.[/color]
I just had an idea - does anyone know how to modify the code so that the messages are completely pruned every 10minutes or so? At the moment it is set to 24 hours (variable is in days, which i have set to 1). However i do not think keeping the messages there is a good idea at all.
I am sure that someone here will know how to modify the code so that in admincp, the choice can be set to minutes rather than days.
Thanks,
Vishal
Sai01
12-30-2004, 03:26 AM
I install this on my forum just to test things out...
and now i prefer an IRC intergration chat better so how do i uninstall this?
i want to completely remove it.
Joe Black
12-31-2004, 12:24 AM
Wow, nice app! Even a complete vB newb like me can pull this off! Thanks!
Joe Black
DSMNightmare
12-31-2004, 01:19 AM
I know this is kind of a newb question but how does a user officially "leave" a room? Is there a command they can enter or does it just wait for the user to timeout on the next refresh?
Jason McConnell
12-31-2004, 02:57 AM
Is there an uninstall planned for this?
andor
12-31-2004, 09:31 PM
... but I would like to increase the lines of history visible . . . where do I go for that?
I have just managed to lure my members in and they're going off. This is a great hack . . .
Joe Black
01-01-2005, 02:20 AM
Does anyone know if there's a FAQ or user instructions for this hack? My users love it but aren't the most chat literate folk.
red_baron2000
01-03-2005, 09:46 AM
is there no support for this hack anymore ?!!! if so does anyone of you knows how to uninstall it..:(
Eagle Creek
01-03-2005, 04:53 PM
Can it be autopruned?
BrianLarsen
01-03-2005, 09:44 PM
Perhaps its an isp problem but the page refresh is whacked.... sometimes it doesnt refresh, sometimes it double posts. I have even had it refresh to older pages. The problem extends to the user list as well. Is my ISP perhaps cacheing the page and feeding an older copy at times?
Is there a different refresh method availible? I have had similar problems with other chats of the php/sql type. Would a java client version be possible? Java seems to be immune to the refresh problems (tunneling protocall ?)
cdasso
01-03-2005, 11:35 PM
oh nvm i tried it again and it works.
Does anyone know how to make a "Who is in vBChat" module for CMPS vBAdvanced home page please? I need it very much.
I'd kinda like to know also, if anyone has done it. Thanks
SIINSI
01-04-2005, 02:32 AM
Unfortunately I have tried every fix in this thread. Yep, i actually read the whole thing... LOL However, I can't even get it to show the users on forumhome :( It just says no users chatting when they are.
I have tried everyones fix to no avail. Everything else works like a charm though. I am using 3.0.1 if anyone can help I would be forever in your debt :D
GREAT HACK!!!
Thanks,
Miguel
Roxie
01-04-2005, 02:53 AM
Is there a way to change the number of chat messages that are viewable? My chat room only shows about 15 of the past messages and then they disappear.
Is there any support for this hack any longer?
:rolleyes:
mismatch
01-04-2005, 09:04 AM
Firstly thanks for the great hack - lovely clear instructions and took less than 5 mins to install :) you've made it the easiest hack I've ever installed :)
my qus are the same as most already asked & unanswered
- can I direct it to use smilies from my generic smilies list rather than all smilies
- can the history of posts be longer than 15 lines
- any improvement of screen flashing/refreshing would be a plus
- can I set the "create room" link to only show to certain usergroups? eg my paying ones :)
- Can we show the room that a user is in somewhere
- can autoprune be hours/mins rather than days
TIA
Intex
01-04-2005, 10:30 AM
This is a great little mod :cool:. I have a few questions:
Is there any way a sound can be triggered if someone types a message, if you're in teh chat room, but have it open in another browser window / popup?
Can the mod be modified to include a way to invite someone to the chat room. I used to have this feature on vB2.x where they'd receive a popup, which the recipient could say 'Yes' or 'No' to. If they selected 'Yes, they'd be taken to the chat room
Can it be modified to show the current room you're in on the room itself
There's a bit of text on the forumhome that says 'No one is currently in vbchat'. I'd like to change that text, but I can't find it in the DB, templates or files themselves. Any ideas?
cdasso
01-04-2005, 02:14 PM
Unfortunately I have tried every fix in this thread. Yep, i actually read the whole thing... LOL However, I can't even get it to show the users on forumhome :( It just says no users chatting when they are.
I have tried everyones fix to no avail. Everything else works like a charm though. I am using 3.0.1 if anyone can help I would be forever in your debt :D
GREAT HACK!!!
Thanks,
Miguel
My Users In Chat worked froom the start but I had just installed a clean install of 3.0.3.
I would just like to be able to show the Users in Chat somewhere else besides the forum home. I'm sure if I knew more about php programming it would be very easy.
I think support for this hack is gone.
Corriewf
01-05-2005, 01:35 AM
Wonder if I did something wrong or not, but is there supposed to be an option for vbchat in the admin control panel cause I have to actually type in the address to the file to access it?
cdasso
01-05-2005, 05:59 AM
Is anyone still wanting to know how to put a "Users In Chat" block on your vBadvanced portal home page?
If so, I will post it since I got it working on my board. :rolleyes:
cdasso
01-05-2005, 06:00 AM
Wonder if I did something wrong or not, but is there supposed to be an option for vbchat in the admin control panel cause I have to actually type in the address to the file to access it?
If you did everything right there should be a menu option for vBChat.
MikaK
01-05-2005, 07:21 AM
Is anyone still wanting to know how to put a "Users In Chat" block on your vBadvanced portal home page?
If so, I will post it since I got it working on my board. :rolleyes:
Sure! Thad would be cool:)
Intex
01-05-2005, 12:06 PM
I notice that the date/time stamp feature was removed at version 1.1.0. I know a 'Status' field was put in the user preferences, but how do I get it to show the date / time again?
Corriewf
01-05-2005, 12:41 PM
If you did everything right there should be a menu option for vBChat.
Yeah everything has been done correctly.I wonder if there is another hack that is effecting this one??
Also my scroll bar in chat keep disappearing, anyone having that problem?
camoman
01-05-2005, 01:47 PM
Unfortunately I have tried every fix in this thread. Yep, i actually read the whole thing... LOL However, I can't even get it to show the users on forumhome :( It just says no users chatting when they are.
I have tried everyones fix to no avail. Everything else works like a charm though. I am using 3.0.1 if anyone can help I would be forever in your debt :D
GREAT HACK!!!
Thanks,
Miguel
Has anyone found a fix for this yet as I am getting the same thing..
Corriewf
01-05-2005, 02:18 PM
I guess we dont need no support.Guess we are just another brick in the wall..LOL..I am turning on the batman/coders signaling light.
cdasso
01-05-2005, 03:41 PM
Sure! Thad would be cool:)
I will post it in a little bit.
cdasso
01-05-2005, 05:19 PM
OK, for those of you who would like to put a "Users In Chat" block on your vBadvanced portal pages.....
First of all, this assumes that you have "Users Currently In vBChat" already working properly on your forum home page.
I have vb 3.0.3 and PHP 4.3.10 installed on mine.
First, go to the Style Manager > Common Templates
In the phpinclude_start field paste the following code:
// For vBChat
require_once('./includes/functions_bigthree.php');
// ### LOGGED IN USERS ###
if ($vboptions['displayloggedin'])
{
$datecut = TIMENOW - $vboptions['cookietimeout'];
$numbervisible = 0;
$numberregistered = 0;
$numberguest = 0;
$forumusers = $DB_site->query("
SELECT
user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity, session.location,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > $datecut
" . iif($vboptions['displayloggedin'] == 1, "ORDER BY username ASC") . "
");
// Get the users in vBChat
$vbchat_users = array();
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
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>";
}
}
if($invBChat == ""){
$invBChat = "<i>None</i>";
}
}
Then create a new custom template called adv_portal_inchat and place the following code in it:
<!-- Start vBChat Users -->
<if condition="$show['member']">
<table align="center" border="0" cellpadding="4" cellspacing="$stylevar[cellspacing]" class="tborder"width="100%">
<tbody>
<tr>
<td class="tcat" colspan="2">
<span class="smallfont"><strong><a href='vBChat.php?$session[sessionurl]'>Users In Chat</a></strong></span>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chatusers" style="$vbcollapse[collapseobj_forumhome_chatusers]">
<tr>
<td class="alt2"><a href="vBChat.php?$session[sessionurl]"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="Chat" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
{$GLOBALS[invBChat]}
</div>
</td>
</tr>
</tbody>
</table><br>
<else /></if>
<!-- End vBChat Users -->
Then add a new cmps module with the following options:
Module Title: Who's In Chat
Template to include: inchat
Active: yes
That's it!!!
This code will only show the block to registered users. If you want guests to be able to see it just comment out the <if condition="$show['member']"> and <else /></if> tags from the template.
Now you can put it on any of your CMPS pages just like the other modules.
I'm sure that there's a better way to do it by including a file or something and someone who knows what they're doing can probably do it without adding a query but I couldn't. I just started messing around with this PHP stuff about 6 days ago when I installed vBulletin.
Hope it helps. It works on my board. :squareeyed:
CD
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.