View Full Version : vBChat v2.3
belindaj
01-06-2005, 02:49 AM
From a post back on page 23 or so - an answer to the question of how to increase the number of lines shown in the main chat window past the default 15. I did it and it worked perfectly. Now I just need to keep digging through the past posts here and find the trick to slow that refresh down.
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>");
By the way - AWESOME hack - and awesome installation instructions. This was my very first hack I've ever installed. I definately look forward to future improvements in teh upgrade versions to come.
chapsrulez
01-06-2005, 04:53 AM
I've installed this excellent hack on a 3.0.0 vb but previously i installed the "members who have visited today" hack, the problem im having is that i cant display the number of active users on chat.
In the instructions you ask to change
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 after installing "members who visited us today" this is what i have in the code i need to change.
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') . '";');
}
}
}
how do i change the above code in order to show how many active users are in chat??
Thanks again for this great hack.
Joe Black
01-06-2005, 05:05 AM
I'm having the issue with no one showing in the "Who's in vBChat" on forumhome. It worked great until the 3.0.4 update, now everything works except that one thing. Arrgh!
djnth
01-06-2005, 08:14 PM
I don't know if this has already been mentioned but there are a few things I think could really make the chat better:
1. A Log Out of Chat Button - Most people don't log off the site when they leave and it looks like they are still in the chat room.
2. A Checkbox that users could select that would open the chat in a new window.
3. A payment option to get rid of all the branding.
Keep up the great work though!! Much appreciated!!
djnth
01-06-2005, 08:35 PM
I actually had the same problem because this mod had me add text to the controlpanel/index.php file in the same spot that vbarcade did. which resulted in this text $printhr = true ;
construct_nav_option ( 'vBChat Options', 'admin_vbchat.php', '<br />' ) ;
construct_nav_option ( 'vBChat Room Control', 'admin_vbchat.php?do=room', '<br />' ) ;
construct_nav_option ( 'vBChat Prune Options', 'admin_vbchat.php?do=prune', '<br />' ) ;
construct_nav_group ( 'vBChat Control', '<hr />' );
$printhr = false; being one line too low. I moved it up one line above the <quote>$printhr = true ;</quote> that was already there and it worked.
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?
wacnstac
01-08-2005, 12:21 AM
I need a couple of hacks to this hack. Perhaps they are already there but I don't know where to look. First I would like to get rid of the Status:XXX field on every line and second I would like a smaller font.
Mr_Bob
01-08-2005, 12:37 AM
I've used vbchat for a bit and it works great :D. However, we are planing on getting Flashchat for the site for certain reasons of growth. I've used this for a bit though and I will say it's awsome. I tried to uninstall, although there is no uninstaller:(. Almost like some of those hosting companys out there they don't let you leave:D. So, I will need to drop the tables manuely so it doesn't take up space. Which tables and sections of the user table, etc does the chat add to operate so I know which tables to drop without destroying my database? Yet again though the chat is great and I recomend it for anyone who wants a very nicly Vbulletin intergrated program.
ncangler
01-08-2005, 07:34 PM
I did an upgrade last night to vBulletin 3.0.5 and then reloaded my vBAdvanced pages. Everything was running great till I tried to reinstall my vBChat program. I forgot that the templates were untouched in the vB upgrade and I ran the clean install program. Best I can tell is that it tried to create templates that were already there and screwed something up, because now I cannot access the templates through Style Manager. I get this error message:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /includes/db_mysql.php on line
vBulletin folks just told me to pull all the hacks (only vBAdvanced and vBChat) and upload all the vB 3.0. 5 files again. I just don't want to take a chance on losing all the header and style stuff I've already done. Is there a way to access the template files (list, database, etc) to delete the vBChat templates. If I can do that I think it will work. Anyone have any ideas? Thanks for your input.
John Lester
01-08-2005, 08:49 PM
Going on 2 months since the last update to this hack. No word from the developer...
Zero Tolerance, are you out there? Are you working on future versions?
I love this hack, but there are a number of issues being brought up again and again on this thread. Just a simple "yep, I'm alive and working on this" would give us all a lot of peace of mind. :)
Thanks.
oldengine
01-09-2005, 03:21 PM
From a post back on page 23 or so - an answer to the question of how to increase the number of lines shown in the main chat window past the default 15. I did it and it worked perfectly. Now I just need to keep digging through the past posts here and find the trick to slow that refresh down.
Unless ZT shows up, I guess we are on our own so lets stick together and make improvements.
I changed 15 to 30 and got rid on the scroll bars in the window! I had made a mod for this from elsewhere in this thread and it didn't work. Now it does!
As to refresh, edit the template "chat_main"
Find:setInterval("chatFrameReload()",8000)Change the 8000 to what you want it to be.
8000 = 8 Seconds, Thus 10000 = 10 Seconds.
Currently, I'm using 10.
oldengine
01-09-2005, 04:10 PM
I would like to get rid of the Status:XXX field on every line.I'll try to write this up, but I'm a hack at code so you are on your own. Back up your stuff and don't harass me if it doesn't work for you. It works for me.
Insert in: vBChat.php
// Check Status
if($ThisMSG['vbchat_pref_status'] == ""){
$ThisMSG['vbchat_pref_status'] = "<i>None</i>";
}
// post time conversion
$mychat['time'] = vbdate($vboptions['timeformat'], $ThisMSG['s_postime']);
// end post time conversion
// WAAAAIT! Is this person ignored?
Original: Template: chat_row
<tr>
<td nowrap="nowrap" valign="top">[<span class='time'>Status: {$ThisMSG['vbchat_pref_status']}</span>] <b>{$ThisMSG['username']}:</b>
</td>
<td><font face='{$ThisMSG['vbchat_pref_font_face']}' style='color:{$ThisMSG['vbchat_pref_font_color']};'>{$ThisMSG['s_message']}</font></td>
Changed: Template: chat_row
<tr>
<td nowrap="nowrap" valign="top">[<span class='time'>{$mychat['time']}</span>] <b>{$ThisMSG['username']}:</b>
</td>
<td><font face='{$ThisMSG['vbchat_pref_font_face']}' style='color:{$ThisMSG['vbchat_pref_font_color']};'>{$ThisMSG['s_message']}</font></td>
Nordinho
01-09-2005, 06:56 PM
I'll try to write this up, but I'm a hack at code so you are on your own. Back up your stuff and don't harass me if it doesn't work for you. It works for me.
Insert in: vBChat.php
// Check Status
if($ThisMSG['vbchat_pref_status'] == ""){
$ThisMSG['vbchat_pref_status'] = "<i>None</i>";
}
// post time conversion
$mychat['time'] = vbdate($vboptions['timeformat'], $ThisMSG['s_postime']);
// end post time conversion
// WAAAAIT! Is this person ignored?
Original: Template: chat_row
<tr>
<td nowrap="nowrap" valign="top">[<span class='time'>Status: {$ThisMSG['vbchat_pref_status']}</span>] <b>{$ThisMSG['username']}:</b>
</td>
<td><font face='{$ThisMSG['vbchat_pref_font_face']}' style='color:{$ThisMSG['vbchat_pref_font_color']};'>{$ThisMSG['s_message']}</font></td>
Changed: Template: chat_row
<tr>
<td nowrap="nowrap" valign="top">[<span class='time'>{$mychat['time']}</span>] <b>{$ThisMSG['username']}:</b>
</td>
<td><font face='{$ThisMSG['vbchat_pref_font_face']}' style='color:{$ThisMSG['vbchat_pref_font_color']};'>{$ThisMSG['s_message']}</font></td>
I just changed the status name to mood...so users can add their mood...
Paul M
01-09-2005, 07:47 PM
Going on 2 months since the last update to this hack. No word from the developer...
Zero Tolerance, are you out there? Are you working on future versions?According to his profile, he was last online yesterday - perhaps you could try PM'ing him.
BrianLarsen
01-09-2005, 08:26 PM
in the chat row template I ended up with this.... seems to work
<tr>
<td nowrap="nowrap" valign="top"><b>{$ThisMSG['username']}:</b>
</td>
<td><font face='{$ThisMSG['vbchat_pref_font_face']}' style='color:{$ThisMSG['vbchat_pref_font_color']};'>{$ThisMSG['s_message']}</font></td>
oldengine
01-10-2005, 01:15 AM
Yes, I didn't explain that my mod puts the post time stamp in place of status.
I'd rather see the time there. :ermm:
So much for sharing modifications. Over and out.
Murphinator
01-10-2005, 11:33 PM
ok something happened with mine, i cant see my acp :( i log into it and theres a blank screen
oldengine
01-13-2005, 06:01 PM
Is vBChat now dead? Has everyone moved to IRC with this one?
https://vborg.vbsupport.ru/showthread.php?t=59612
wheel
01-17-2005, 10:28 PM
Dead? I just installed it and it's working fine - users are all happy (thanks ZT) :).
What's better - this or the IRC? I think I'd have to install an irc server to run that other hack, would I not?
zendiz
01-18-2005, 12:03 AM
What to do for uninstall?
MikaK
01-18-2005, 04:31 AM
Any news on the smilies issue ie. having a fixed set of smilies showing instead of the random one?
Thanks for any info.
-Mika
Corriewf
01-18-2005, 03:10 PM
I actually had the same problem because this mod had me add text to the controlpanel/index.php file in the same spot that vbarcade did. which resulted in this text being one line too low. I moved it up one line above the <quote>$printhr = true ;</quote> that was already there and it worked.
Thanks.
"Users Currently Inside vBChat " show up blank, what have I missed to upload? :confused:
Joe Black
01-18-2005, 10:34 PM
"Users Currently Inside vBChat " show up blank, what have I missed to upload? :confused:
I think this may be a 3.0.4 bug, as the same thing happened to me after the vB upgrade. Just edit the forum_home template to not show it at all, the "Who's Online" still shows who's in vBChat for those that want to know without going into chat.
ambrosious
01-19-2005, 01:23 AM
Can someone help me sort some code here? I'll put it all in a box so prying eyes don't see...
Alright here are the instructions:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
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;
}
}
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
REPLACE WITH:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
// 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>";
}
But when I look at my file, well, it's been hacked so I have 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') . '";');
}
}
}
So I improvised and added it best I could to get 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;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['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') . '";');
}
}
// 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>";
}
But I am getting errors in the Who's online box (maybe called the "what's going on" box?)
Me trying to integrate the two of them, probably wasn't the brightest thing, i just can't figure out why I'm getting name duplication (it shows 4 of me, two of you, 3 of him online, but when you click the who's online link, everyone is back to being singular entities and I'm getting comma's.)
I run an adult site, but if you need to look at the error, I attached an example.
yoyoyoyo
01-19-2005, 04:46 AM
I understand that in the 1.0.1 version of this hack this was an "upgrade":
User Status - User status is displayed in the vBChat Page (in replace of time/date)
How can I get the time/date to display instead? I think that this should be an admin option (to choose to display either time/date, or user-defined chat status).
I think this may be a 3.0.4 bug, as the same thing happened to me after the vB upgrade. Just edit the forum_home template to not show it at all, the "Who's Online" still shows who's in vBChat for those that want to know without going into chat.
This is what Forum_home say's about the chat:
<!-- Start vBChat Users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatusers')"><img id="collapseimg_forumhome_chatusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatusers].gif" alt="" border="0" /></a>
<a href='vBChat.php?$session[sessionurl]'>Users Currently Inside vBChat</a>
</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="vBChat" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
{$invBChat}
</div>
</td>
</tr>
</tbody>
<!-- End vBChat Users -->
What should I remove? :nervous:
ambrosious
01-20-2005, 12:09 AM
Could anyone help with my coding problem?
nonet
01-20-2005, 03:46 PM
Hi everyone!
I am installing vBChat v1.1.1 and have an issue with changing the root index.php file. I am running version 3.0.1 with several hacks and the code does not match that I am to replace. I am suppossed 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;
}
}
However in my file I have:
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 tried several variations and just got errors. Any ideas.
Thanks for the help!
Toky0
01-20-2005, 08:13 PM
How do you uninstall this hack?
1nf3rn0
01-21-2005, 05:34 PM
i just can't figure out why I'm getting name duplication (it shows 4 of me, two of you, 3 of him online, but when you click the who's online link, everyone is back to being singular entities and I'm getting comma's.)
i too have the same problem...shows duplicates of members on th emain forum page in the whos online...if there is a quick solution..can someone point me to it..
do appreciate the knowledge here and the hack is awsome!..thx again!
UPDATE:never mind...i found the problem and fixed it..thx anways!!...also it fixed seeing my own username on the forums!..
ambrosious
01-21-2005, 08:41 PM
i too have the same problem...shows duplicates of members on th emain forum page in the whos online...if there is a quick solution..can someone point me to it..
do appreciate the knowledge here and the hack is awsome!..thx again!
UPDATE:never mind...i found the problem and fixed it..thx anways!!...also it fixed seeing my own username on the forums!..
How did you fix it?
1nf3rn0
01-22-2005, 07:21 AM
How did you fix it?
wellif you loook at the instructions given it shows this as a replacement variable in the index.php (under //Guest & Before //Configure Peeps In VBChat):
$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;
}
}
Now i dontknow anything when it comes to html or java..but idid look at one thing that was a lil a different and instead of actully manually editing it....i just copied from the main index.php from the original forum folder and pasted it to the revision for the chat (figured why not, it worked right when it was original):
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}
foreach($userinfos AS $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') . '";');
}
}
now this showed myself online and also got rid of the dup members....currently active users is right now as well...now...because i couldnt get the whos in chat to work i just completely removed it from the forums....to me its all good....the chat is the most important part...and BTW...i did this with vb3.0.5...i dont see a problem with it woking with 3.0.6....which i will be upgrading to, soon...i hope this has helped you as all i did was copy the original index.php variable from the original vbulletin 3.0.5 and re-replaced the instructions given (since i had already followed the instros and edited the index.php)...attached is the index edited...so in essence all you have to do is open the file and edit the license # with your LEGIT license # from vbulletin (i edited my license # out for this attachment for security reasons of course) then replace the index file...:nervous:
1nf3rn0
01-22-2005, 08:47 AM
Hi everyone!
However in my file I have:
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 tried several variations and just got errors. Any ideas.
Thanks for the help!
just leave what you have alone.....and add the first part of lines in the instructions:
// Get the users in vBChat
$vbchat_users = array();
to the top of the index variable >> while ($loggedin = $DB_site->fetch_array($forumusers)
Now get the last line of the instructions:
// 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>";
}
and enter it at the end of the index variable:
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}
}
}
so once done it should look somehting like 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;
}
}
foreach($userinfos AS $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') . '";');
}
}
// Configure Peeps In vBChat
$invBChat ="";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
ambrosious
01-22-2005, 10:20 PM
// 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;
}
}
foreach($userinfos AS $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') . '";');
}
}
// Configure Peeps In vBChat
$invBChat ="";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
I put that in and it took care of all the multiple names, all the commas. The only issue I currently have is each person sees themselves twice.
Looks much better! Any ideas why they still see themselves twice? (And edited to say that the "Who's In Chat" shows no one chatting, ever, but they are?
Can you help again?
Toky0
01-23-2005, 09:10 PM
Newb here.. How do you uninstall this hack? I like it, but it's murder on my 56k users.
djjeffa
01-24-2005, 01:41 AM
ok I updated vb from .3 to .5 now what do I have to do to get this hack working again? There are no options in my admin cp and the who in chat is not showing up.
NFLForums
01-24-2005, 09:33 PM
Newb here.. How do you uninstall this hack? I like it, but it's murder on my 56k users.
Same here -- I love it, but occasionally posts disappear...and the dialup users are whining...so we have to go with a different format...
MaXxed
01-26-2005, 02:28 AM
I am also looking for some help to uninstall this, I hope someone could help us?
Adrian Schneider
01-26-2005, 12:40 PM
ut that in and it took care of all the multiple names, all the commas. The only issue I currently have is each person sees themselves twice.
Looks much better! Any ideas why they still see themselves twice? (And edited to say that the "Who's In Chat" shows no one chatting, ever, but they are?
Did this, worked, but I see myself twice on the list. Any ideas?
Eagle Creek
01-26-2005, 01:44 PM
Did this, worked, but I see myself twice on the list. Any ideas?
If I read all these problemes... I was planning to install it but I think I won't.
Big Kahuna
01-27-2005, 08:22 PM
I kinda stumbled into this hack and need to replace the php Chat I'm currently using. I'll keep an eye on this for when the wrinkles get ironed.
It is a great idea -- I just can't afford to be bleeding edge right now.
KPalicz
01-28-2005, 03:48 AM
Does anyone have a chat set up somewhere I can try out before I decide to install this?
Have the bugs all been fixed?
ambrosious
01-28-2005, 09:28 PM
From what I can tell, no one is supporting this one right now. Maybe interest will be picked up again soon? I hope so because I love the parts that do work right now!
MaXxed
01-29-2005, 01:29 AM
If I read all these problemes... I was planning to install it but I think I won't.
fwiw, the hack has worked well for me. However, I need to uninstall it now and there is no support/help or even a hint in the general direction on how to do this. It kinda leaves me stuck and regretting the decision to install in the first place...
TripleOx
01-29-2005, 10:59 AM
If I read all these problemes... I was planning to install it but I think I won't.
Same here. Back to my constant mission to find a decent chat system for my forum... :disappointed:
Eagle Creek
01-29-2005, 03:33 PM
Triple--> if you fine one, PM me please ;)
Eagle Creek
01-29-2005, 03:34 PM
Triple--> if you find one, PM me please
(reposted becauce I dont see an edit button (!))
You may edit your posts
sv1cec
01-30-2005, 01:28 PM
Can someone who has been using this hack tell me a couple of things:
1. What is the option, in the AdminCP menu, "vBChat Room Control" for? I have a chat room open where we're discussing, and it shows nothing there. If that is for a permanent chat room, why doesn't I get any option to create a room (only to delete it).
2. This may have been answered in the past, but I am not sure. When are the user names refreshed? I have users who have left the site for hours, still showing there.
Thanks for your help, I just do not have time to go through all the pages, and the last remarks about no support, make me feel unease.
Rgds
Big Kahuna
01-30-2005, 02:05 PM
Is this the same chat used here at .org? The reason I ask is that my (normally pretty stable and up-to-date) puter locked up when I tried to use this site's chat. I haven't tried it on my other puters -- but if one of my puters locks up -- then 2,500 of the goofballs with a stone and chisel for a 12Mhz 386SX puter running Windows 3.0 on my board will commit mass suicide.
Too bad this never went anywhere -- the phpchat I use now (written in France 100 years ago) is a POS.
cloner001
01-30-2005, 02:45 PM
has anyone found any uninstall support?or know how to uninstall this hack?thanks :squareeyed:
FASherman
01-31-2005, 04:14 AM
Suggestions to add:
Prune all when room is empty (via cron)
On Join message
Room title
Built in responsebot
PKRWUD
01-31-2005, 05:36 AM
Does anyone have a chat set up somewhere I can try out before I decide to install this?
Have the bugs all been fixed?
You can check it out on my site. I have it set up so there is only one room, and it works great, but I would like to know how to review the days posts. For some reason, as of today, when I post in there, the text and the user name aren't lined up properly. Probably just my browser. Really, though, this Chat program is much better than any of the others I've tried, which is most of them.
http://www.ricehatersclub.com/vbulletin/vBChat.php?
You can log in as: Guest One
Password: one
Or as: Guest Two
Password: two
Eagle Creek
01-31-2005, 11:20 AM
chat seems nice :)
sv1cec
01-31-2005, 01:56 PM
Well, for one reason or another, I decided to give it a try. I installed it last night and it works OK. Some minor issues with IE (it spreads the first lines over the whole table, trying to space them out evenly over the whole height of the table), but these were not significant.
Some of the complaints I've read here, and which I've managed to fix are:
- Show the number of users in chat in FORUMHOME.
- Make the users column, show the right users, not users who are gone, for hours. This requires a "Logout" button of some sort, that the users have to press instead of just closing the browser window, when done (yes, I open a new window for the chat). This removes their session in the chat from the database, so they no longer show up on the list. At the moment, I am trying to figure out how to prevent them from pressing the X at the top right corner, instead of the log out button, that would need some more searching.
- I didn't exactly like the way the members could create new rooms and then leave them there for the admin to erase. That looked stupid to me, so I changed the hack to delete these rooms, when the last member in them logs out.
- with some changes in the cron job, I made the hack erase the posts which are older than a few minutes. I changed the autoprune parameter to specify minutes instead of days, and I have the cron job running every 15 minutes.
- I also didn't like the way the hack acted when you created a new room, or asked to join a room. If you go to the Select a room to join screen and you select a room, you are immediately transfered to that room. If you ask to create a new room, as soon as you create it, you are transfered to the Select a room to join.
If someone is interested in my changes, I could post them here. But do not take it for granted I'll provide support, in place of ZT.
Rgds
Big Kahuna
01-31-2005, 04:08 PM
Well I like the way it was implimented on the Rice Haters club and sure could use it -- but I don't know if I'm willing to take the plunge in something that appears to have been abandon. I've seldom required any support on any of the many hacks I've installed -- but I am concerned when a hack or addin gets abandon.
If you don't mind posting your changes -- I might give it a shot on my test board.
guydogg
01-31-2005, 07:54 PM
Is there a way to refresh the user list? I have 6 people in chat, but i know that only two are there, and the others havent been there in awhile.
Thanks in advance.
sv1cec
01-31-2005, 08:30 PM
The only way to have a correct user list, is if you force your users to log out, from the chat session. If they do not, they session stays in the list (I think there is a time limit, after that the session is erased). Until it gets erased, you see them in the list.
I added a log out button in my forms, so that the users can log out. In the vBChat.php file, you need to add something like this:
Find:
// ---------------------------------------------------
// Start Page Output
// ---------------------------------------------------
Above that, add:
// ---------------------------------------------------
// Start Logout
// ---------------------------------------------------
if($_GET['do']=="logout")
{
$DB->query("delete from ".TABLE_PREFIX."session WHERE userid=$bbuserinfo[userid] AND location like '%vBChat.php%'");
eval('print_output("' . fetch_template('chat_close') . '");');
exit;
}
The template chat_close can be something like:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript"><!--
function winClose() {
setTimeout('self.close()',8000);
}
//--></SCRIPT>
<title>$vboptions[bbtitle] - $pagetitle</title>
$headinclude
</HEAD>
<BODY>
$header
<br><br><br><br>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="3"><center>Thank you for using our Chat</center></td>
</tr>
<tr>
<td class="alt1"><CENTER>This window will now close.<br>Please come back at your convenience.</center></td>
</tr>
</table>
<SCRIPT LANGUAGE="JavaScript"><!--
//and at the end of the page place this call
winClose()
//--></SCRIPT>
</BODY>
</HTML>
I do that, because I have the chat open in a new window, which I want it to close after the user logs out.
As for the log out link, in your chat_main template, find:
<b>Post Message:</b>
<input type='text' name='message' class='button' size='70'> <input type='submit' value=' Post ' class='button'>
</td>
Below that, add:
<td align='right' class='tfoot'><a href='vBChat.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]'>
<input type="submit" class="button" name="logout" value="Log Out" accesskey="l" onClick="window.location='vBChat.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]'">
</a>
</td>
marster37
01-31-2005, 09:13 PM
When more messages are added they disappear from the box message area. I get about 14 one line messages before it starts with the new message. Any way to have all the messages stay on the screen. When I scroll up there isnt anything more than 14 messages at a time
sv1cec
01-31-2005, 09:45 PM
When more messages are added they disappear from the box message area. I get about 14 one line messages before it starts with the new message. Any way to have all the messages stay on the screen. When I scroll up there isnt anything more than 14 messages at a time
In vBChat.php find:
$chat_page .= "<table height='100%' border='0'>";
// Get All Chat Messege's If Any
$Get_Chat_MSG = $DB->query("select m.*,u.* from ".TABLE_PREFIX."vbchat_store m
left join ".TABLE_PREFIX."user u on (u.userid = m.s_postby) where m.s_forroom = '{$bbuserinfo['vbchat_pref_in_room']}' order by m.s_postime desc limit 0,15");
The last number there, at the last line, that 15, is the number of messages that it shows you. I changed that to 30 in my site. If you want all messages to show, remove the " limit 0,15" part. But it's useless, if you scroll up to read the previous messages, and the screen refreshes, you will be thrown back at the bottom again, so I do not see it very useful.
Rgds
Eagle Creek
01-31-2005, 10:51 PM
Are these nice alternatives:
https://vborg.vbsupport.ru/showthread.php?t=63107&highlight=chat
https://vborg.vbsupport.ru/showthread.php?t=74613&highlight=Flashchat
?
guydogg
02-01-2005, 05:59 AM
As for the log out link, in your chat_main template, find:
<b>Post Message:</b>
<input type='text' name='message' class='button' size='70'> <input type='submit' value=' Post ' class='button'>
</td>
Below that, add:
<td align='right' class='tfoot'><a href='vBChat.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]'>
<input type="submit" class="button" name="logout" value="Log Out" accesskey="l" onClick="window.location='vBChat.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]'">
</a>
</td>
[/QUOTE]
How do i get the "log out" button to be positioned beside the post button? Currently after entering the code you stated, it places the logout button on the right, and throws the page width off?
Also, can anyone post how to change the (status) field, to (posted time). My users are wanting this, as they never know when the posts are put there.
Thanks.
sv1cec
02-01-2005, 06:26 AM
As for the log out link, in your chat_main template, find:
<b>Post Message:</b>
<input type='text' name='message' class='button' size='70'> <input type='submit' value=' Post ' class='button'>
</td>
Below that, add:
<td align='right' class='tfoot'><a href='vBChat.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]'>
<input type="submit" class="button" name="logout" value="Log Out" accesskey="l" onClick="window.location='vBChat.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]'">
</a>
</td>
How do i get the "log out" button to be positioned beside the post button? Currently after entering the code you stated, it places the logout button on the right, and throws the page width off?
Also, can anyone post how to change the (status) field, to (posted time). My users are wanting this, as they never know when the posts are put there.
Thanks.[/QUOTE]
That's easy, but confusing (users may hit the wrong button). If you want it next to the post button, try this:
<b>Post Message:</b>
<input type='text' name='message' class='button' size='70'> <input type='submit' value=' Post ' class='button'> - <a href='vBChat.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]'>
<input type="submit" class="button" name="logout" value="Log Out" accesskey="l" onClick="window.location='vBChat.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]'">
</a>
</td>
Here is my modified template, it doesn't throw the tables off.
<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'>
<table cellpadding="0" cellspacing="1" border="0" width="100%" align="center">
<tr>
<td align='left' valign='top' width='40%'><font size='2'><b>Room:</b> $roomname</font></td>
<td valign='top'><div align='center'>vBChat</div></td>
<td valign='top' width='40%'><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></td>
</tr>
</table>
</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'><a href="http://gzevolution.net" target="_blank"><img border='0' alt='Powered By vBChat' src='images/vbchat.gif' /></a></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'>
<table width='100%' border='0'>
<tr>
<td class='tfoot' align='left' width='80%'>
<b>Post Message:</b>
<input type='text' name='message' class='button' size='70'> <input type='submit' value=' Post ' class='button'>
</td>
<td align='right' class='tfoot'><a href='vBChat.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]'>
<input type="submit" class="button" name="logout" value="Log Out" accesskey="l" onClick="window.location='vBChat.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]'">
</a>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</form>
<br />
To remove the status and use the time in the posted rows, use this, as your chat_row template:
<tr>
<td valign="top" width='25%'><font size='2'><b>{$ThisMSG['username']}</b> <span class='smallfont'>[{$mychat['time']}]</span></font>
</td>
<td valign="top" width='75%'><font size='2' face='{$ThisMSG['vbchat_pref_font_face']}' style='color:{$ThisMSG['vbchat_pref_font_color']};'>{$ThisMSG['s_message']}</font></td>
I hope I haven't forgotten something.
guydogg
02-01-2005, 07:26 AM
Wow thanks a lot.
Everything worked but the time part. It shows as follows
username []
it used to show as
username [status]
how do i fix this?
guydogg
02-01-2005, 07:42 AM
[QUOTE=sv1cec]The only way to have a correct user list, is if you force your users to log out, from the chat session. If they do not, they session stays in the list (I think there is a time limit, after that the session is erased). Until it gets erased, you see them in the list.
I added a log out button in my forms, so that the users can log out. In the vBChat.php file, you need to add something like this:
Find:
// ---------------------------------------------------
// Start Page Output
// ---------------------------------------------------
Above that, add:
// ---------------------------------------------------
// Start Logout
// ---------------------------------------------------
if($_GET['do']=="logout")
{
$DB->query("delete from ".TABLE_PREFIX."session WHERE userid=$bbuserinfo[userid] AND location like '%vBChat.php%'");
eval('print_output("' . fetch_template('chat_close') . '");');
exit;
}
The template chat_close can be something like:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript"><!--
function winClose() {
setTimeout('self.close()',8000);
}
//--></SCRIPT>
<title>$vboptions[bbtitle] - $pagetitle</title>
$headinclude
</HEAD>
<BODY>
$header
<br><br><br><br>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="3"><center>Thank you for using our Chat</center></td>
</tr>
<tr>
<td class="alt1"><CENTER>This window will now close.<br>Please come back at your convenience.</center></td>
</tr>
</table>
<SCRIPT LANGUAGE="JavaScript"><!--
//and at the end of the page place this call
winClose()
//--></SCRIPT>
</BODY>
</HTML>
Im sorry if i sound like a total n00b.
How would i make it so the chat opens in a new window like you state yours does, so that the user can still view the board, and also chat at the same time?
Also, if the user hits the log out button, how would i add a redirect into that template to send the user back to the forum_home, opposed to the window closing and the user having to open a browser window and go back manually?
Thanks again
sv1cec
02-01-2005, 07:45 AM
But didn't you ask to have the time instead of the status?
Also, can anyone post how to change the (status) field, to (posted time). My users are wanting this, as they never know when the posts are put there.
Oh, I got you, you mean it does not show the time in the brackets??
OK, in vBChat.php find:
// Check Status
if($ThisMSG['vbchat_pref_status'] == ""){
$ThisMSG['vbchat_pref_status'] = "<i>None</i>";
}
Below that, add:
// post time conversion
$mychat['time'] = vbdate($vboptions['timeformat'], $ThisMSG['s_postime']);
// end post time conversion
I knew I've forgotten something!
Rgds
sv1cec
02-01-2005, 07:52 AM
Im sorry if i sound like a total n00b.
How would i make it so the chat opens in a new window like you state yours does, so that the user can still view the board, and also chat at the same time?
Also, if the user hits the log out button, how would i add a redirect into that template to send the user back to the forum_home, opposed to the window closing and the user having to open a browser window and go back manually?
Thanks again
Open your navbar template and find the thing you added for the chat. According to the instructions, it should be something like:
<td class="vbmenu_control"><a href="vBChat.php?$session[sessionurl]">vBChat</a></td>
Replace that with:
<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
<td class="vbmenu_control"><a href="vBChat.php?$session[sessionurl]" onclick="window.open('vBChat.php?$session[sessionurl]','','width=1024, height=750, resizable=yes, scrollbars=yes'); return false;" target="_blank">vBChat</a></td>
That should open your chat in a new window. The original window is not closed, so the user can browse the forums and chat at the same time, by just switching from one window to the other. The new window is not full size, so he can still see the other one. That makes your second question irrelevant, because he does not need to go back, the chat window closes and the other one remains open. Isn't that what you want?
guydogg
02-01-2005, 07:55 AM
But didn't you ask to have the time instead of the status?
Oh, I got you, you mean it does not show the time in the brackets??
OK, in vBChat.php find:
// Check Status
if($ThisMSG['vbchat_pref_status'] == ""){
$ThisMSG['vbchat_pref_status'] = "<i>None</i>";
}
Below that, add:
// post time conversion
$mychat['time'] = vbdate($vboptions['timeformat'], $ThisMSG['s_postime']);
// end post time conversion
I knew I've forgotten something!
Rgds
YOU ARE THE MAN!!!
Only other thing is creating a new window for the chat....
Thanks :squareeyed: :nervous:
guydogg
02-01-2005, 08:11 AM
sv1cec
Thanks for all the help, everything is working great.
sv1cec
02-01-2005, 08:34 AM
sv1cec
Thanks for all the help, everything is working great.
Glad if I can be of help.
MaXxed
02-01-2005, 04:39 PM
any help on an uninstall option guys? it would really help...
has anyone found any uninstall support?or know how to uninstall this hack?thanks :squareeyed:
Craigr
02-01-2005, 06:48 PM
any help on an uninstall option guys? it would really help...
I had to un-install everything manually. :(
Didn't take too long though.
Joe Black
02-02-2005, 12:38 PM
After fighting various vBChat issues and no response from the author I finally gave FlashChat a try. FlashChat is awesome! Clicks uninstall.
sv1cec
02-02-2005, 12:51 PM
Well, I had several issues as well, but after a couple of days of code searching, I have them solved. I will reluctantly click install, just because I have too. Too many issues to solve, too much time spend on this one, but users like it and I do not want to go through the same customization again.
Is FlashChat the one which requires a special php feature to run?
Rgds
Joe Black
02-02-2005, 02:54 PM
Nope, takes $5 and about 15 minutes to install and configure. Easiest mod yet for my n00bness. My users are raving about it compared to vBChat.
Craigr
02-02-2005, 06:43 PM
Nope, takes $5 and about 15 minutes to install and configure. Easiest mod yet for my n00bness. My users are raving about it compared to vBChat.
Same here. :) Best $5 i've spent for a while.
Eagle Creek
02-02-2005, 06:59 PM
5 bucks??
sv1cec
02-02-2005, 07:10 PM
5 bucks??
Any links guys? Where can one find this miracle?
Joe Black
02-02-2005, 08:13 PM
Get it here: FlashChat (http://www.tufat.com/script2.htm)
sv1cec
02-04-2005, 10:39 AM
Well, I did purchased FlashChat and spend an entire afternoon installing it and trying to figure out how the heck it works. Here are my findings:
1. The installation instructions are garbage. If you want to try it out (and throw 5$ out of the window), do not follow what the readme.txt files say. Go directly to the integration directory and read the file that pertains to the vBulletin. It will save you the headache. Also, be prepared to alter the permissions of several files, but not in the way the instructions suggest. In order to install this POS, you have to set several files to 777 permission, otherwise their install script fails.
2. Flashy it is, usable it is not. I spend an entire afternoon trying to customize a few things here and there. No way. It doesn't even understand $vboptions variables. The worst thing I faced was the user interface, of the area where the messages are displayed.
Have a look at the picture below:
https://vborg.vbsupport.ru/
If you can separate who wrote the message, at what time, and what the message is, from this screen, then you are much better than I am. So I posted a request in the support site, asking for some help on how to put this in columns. One column for the time and user name, and another one for the message. Well, their first answer was that I can't change it because it is in Flash. So I said fine, tell me in which file I have to work to make the change I want. And the answer to that is "Sorry but you have to find out how to do this yourself. This Forum is not supporting you in your changes of FlashChat code".
Now I know that 5$ is nothing, but this is a matter of principle. These people proclaim that they have support, and that they give away the source code with the purchase. I didn't ask them to write any code for me, all I asked is where I should go in and change the code, I do not want to spend my time looking around. Nope, that's not available.
I do not know about you guys, but I am still in the look-out for a Chat system. That crap is out of my site.
Craigr
02-04-2005, 06:58 PM
For those who have installed this FlashChat, can you please tell me if the screen refreshes every now and then like ZT's one?
Rgds
No it doesn't.
interfx
02-04-2005, 08:10 PM
But didn't you ask to have the time instead of the status?
Oh, I got you, you mean it does not show the time in the brackets??
OK, in vBChat.php find:
// Check Status
if($ThisMSG['vbchat_pref_status'] == ""){
$ThisMSG['vbchat_pref_status'] = "<i>None</i>";
}
Below that, add:
// post time conversion
$mychat['time'] = vbdate($vboptions['timeformat'], $ThisMSG['s_postime']);
// end post time conversion
I knew I've forgotten something!
Rgds
I tried this, but the time is NOT showing up? Still says None???
What am I missing...
Thanks in advance...
InterFX
majdah
02-05-2005, 12:50 AM
can some help me please i have 2 qus. please
1- how can i display the room name in main chat box ?
that meen when i join to room GAMES how can i make the room name GAMES uper the online user?
---------------
2- when the user want to change the room , after he select the room and click on join room. how can make it that auto redirect to the room was selected without need to click on vBChat ?
sorry fo my language !!
sv1cec
02-05-2005, 05:49 AM
can some help me please i have 2 qus. please
1- how can i display the room name in main chat box ?
that meen when i join to room GAMES how can i make the room name GAMES uper the online user?
---------------
2- when the user want to change the room , after he select the room and click on join room. how can make it that auto redirect to the room was selected without need to click on vBChat ?
sorry fo my language !!
I've done these changes, use the attached vBChat.php as a guidance. It might not work in your setup, but you can get ideas. Also, I've attached a copy of my chat_main template. Again, use these as guidance only, I've done a lot of other mods in the templates, so do not just put them in your system and expect them to work 100%.
Here is what my chat window looks like:
https://vborg.vbsupport.ru/external/2005/03/1.jpg
Rgds
majdah
02-05-2005, 10:15 AM
very very nice Sv1cec
you make it for me as i need
coud you mind tell me abou this file ( includes/functions_warning.php )
if you can give it to or may this is private file ?
realy thank you so so much for your help
interfx
02-05-2005, 10:46 AM
I tried this, but the time is NOT showing up? Still says None???
What am I missing...
Thanks in advance...
InterFX
Figured it out, you also have to change the template file (chat_row)...
interfx
02-05-2005, 10:49 AM
I created a new graphic, hope others find it useful also... Looks more like other graphics on my site...
sv1cec
02-05-2005, 01:02 PM
very very nice Sv1cec
you make it for me as i need
coud you mind tell me abou this file ( includes/functions_warning.php )
if you can give it to or may this is private file ?
realy thank you so so much for your help
No problem giving it to you, but this is part of my Advanced Warning System Hack, it wouldn't work on its own. What it does, is if someone uses any "censored" words (from vB's Censor Options), it replaces them with **** and issues a warning to the poster.
Rgds
ambrosious
02-05-2005, 08:45 PM
I understand you got the "Who's online in chat" working correctly. Could you please post what you did?
sv1cec
02-06-2005, 04:45 AM
I understand you got the "Who's online in chat" working correctly. Could you please post what you did?
Well, here is that part of the code, from my index.php:
// Get the users in vBChat
$vbchat_users = array();
$chatusers=0;
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
$chatusers = $chatusers+1;
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
foreach($userinfos AS $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') . '";');
}
}
// memory saving
unset($userinfos, $loggedin);
$activeusers = substr($activeusers , 2); // get rid of initial comma
You may use the variable $chatusers in the forum home page, to show you how many users there are in the chat.
rgds
LeeWicKeD
02-06-2005, 10:28 AM
hiho,
how do i change the amout of messages/lines that are shown in the chat?
LeeWicKeD
sv1cec
02-06-2005, 01:22 PM
hiho,
how do i change the amout of messages/lines that are shown in the chat?
LeeWicKeD
If you mean how many messages are shown all together, that's easy:
Find this in vBChat.php:
$Get_Chat_MSG = $DB_site->query("select m.*,u.* from ".TABLE_PREFIX."vbchat_store m
left join ".TABLE_PREFIX."user u on (u.userid = m.s_postby) where m.s_forroom = '{$bbuserinfo['vbchat_pref_in_room']}' order by m.s_postime desc limit 0,15");
Change that 15 at the end to whatever you want. BUT THIS IS NOT how many lines are shown, it is how many lines are selected. How many lines are shown is a bit more involved.
Rgds
majdah
02-07-2005, 07:33 AM
i have one quis. please.
how can i make the chat for only the member who have 20 post in the forum ?
sv1cec
02-07-2005, 10:50 AM
i have one quis. please.
how can i make the chat for only the member who have 20 post in the forum ?
I haven't tried this, but here is a possible solution:
InvBChat.php, find:
if($UserIDBanned > 0){
Replace that with:
if($UserIDBanned > 0 OR $bbuserinfo[posts]<20 ){
Let me know if it works.
Rgds
majdah
02-07-2005, 02:03 PM
i don't know what i said thank you so much
it's working 100%
it's came with a band user message:
Your User Doesn't Have Permission To Access The vBChat System
that meen we have to change it to:
Your User Doesn't Have Permission To Access The vBChat System or may your posts is under limit.
sorry for my english i'm trying to improve my lang.
really i don't know how i thank you :up:
arob42
02-07-2005, 06:49 PM
Does anyone know if I can save or archive chatroom discussions for for reviewing later on? Thanks, --Robert
MaXxed
02-08-2005, 12:24 AM
Seems to work ok in 3.0.6
Reliable? I wouldnt say so.
Fast? No.
Seems that ZT has stopped supporting this, so I would imagine you need to pick and choose any mods as they crop up.
The biggest issue with this is that once its installed, youre pretty much stuck with it. There is absolutely no information on how to remove it :(
A couple of noob questions.
Does this work under 3.0.6?
Is it a relaible chat system?
Is it fast, even for dialup users?
And since there's 39 pages of messages, I'm sure there are a hundred hacks. Will Zero Tolerance or anyone publish a complation of all the good hacks into one distro?
Thanks in advance.
sv1cec
02-08-2005, 05:20 AM
It works OK on 3.0.6.
Fast, considering that it refreshes the screen every few seconds, it is as fast as it can get.
Reliable? Yes, absolutely, as long as your users remember to log out, else your chat user list grows with users who have left hours ago.
Not too many hacks for this hack. Most of the changes requested have been dealt by either ZT (before he lost interest in this hack), or by me, at the last few pages.
Rgds
MikaK
02-08-2005, 06:27 AM
*bump*
Any news on the smilies issue ie. having a fixed set of smilies showing instead of the random one?
Thanks for any info.
-Mika
marster37
02-08-2005, 11:39 AM
I want to see all messages in the chat area.. im planning on having big chat this friday and probably will have over 100 people in the chat area talking .. will this chat on my site hold that many people?
Thanks
Jim
cnczone
02-08-2005, 01:09 PM
Figured it out, you also have to change the template file (chat_row)...
What do you change there?
spence2
02-08-2005, 01:13 PM
sv1cec
thanks for all the help you are giving us for this orphaned hack!
sv1cec
02-08-2005, 02:24 PM
sv1cec
thanks for all the help you are giving us for this orphaned hack!
It looks as if it is my destiny to take over, wherever ZT's leaves. The same thing happen with his Warning Hack. That's where I got started to make my Advanced Warning System.
One more thing, if there are any of you here, who use AWS as well, be advised that you can integrate the two hacks together, so when a chat user uses a censored word, he gets a warning. Also, your moderators have the ability to warn a user from within the chat.
Kind rgds
oldengine
02-08-2005, 08:00 PM
What do you change there?
<tr>
<td class="smallfont" nowrap="nowrap">[<span class='time'>{$mychat['time']}</span>] <b>{$ThisMSG['username']}:</b>
</td>
<td><font face='{$ThisMSG['vbchat_pref_font_face']}' style='color:{$ThisMSG['vbchat_pref_font_color']};'>{$ThisMSG['s_message']}</font></td>
This was written up before on post #511.
MaXxed
02-09-2005, 12:58 AM
sorry to trouble you but do you think you could give some more detail on this? I have no problem reverting all my templates to the standard, but I would like to get rid of the tables and have no clue how to even start....
For uninstalling i just followed the install steps in reverse and deleted the relevant database tables.
Craigr
02-09-2005, 12:19 PM
sorry to trouble you but do you think you could give some more detail on this? I have no problem reverting all my templates to the standard, but I would like to get rid of the tables and have no clue how to even start....
Okay, delete these files:
vBChat.php --> ROOT FORUM DIRECTORY
vbchat.gif --> ROOT FORUM DIRECTORY/images
admin_vbchat.php --> ROOT FORUM DIRECTORY/admincp
install_vbchat.php --> ROOT FORUM DIRECTORY/admincp
vbchat.xml --> ROOT FORUM DIRECTORY/admincp
vbchat.php --> ROOT FORUM DIRECTORY/includes/cron
Go to admin-cp, scheduled tasks, delete vBChat Auto Prune.
Delete the following tables from your database using phpmyadmin or equivalent:
vbchat_store
vbchat_datastore
Then delete these columns in the user table:
vbchat_pref_font_face
vbchat_pref_font_color
vbchat_pref_user_ignore
vbchat_pref_status
vbchat_pref_auto_on
vbchat_pref_auto_msg
vbchat_pref_in_room
Remember to back up before doing the above. ;)
Revert the templates you've edited, remove the vbchat templates too.
Do the opposite for the php files that you did to install.
MaXxed
02-11-2005, 07:51 AM
craigr, thanks so much for the info, that really helped. Was finally able to remove this :)
Raven_FCF
02-11-2005, 02:23 PM
Most of the changes requested have been dealt by either ZT (before he lost interest in this hack), or by me, at the last few pages.
cool. all i need to know is how i get "Users Currently Inside vbChat" showing on my VBAdvanced portal/front page.
this variable is all that needs changing.
{$invBChat}
below is what i've got so far in my template.
<table cellpadding="4" cellspacing="$stylevar[cellspacing]" border="0" class="tborder" width="100%">
<!-- Start vBChat Users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatusers')"><img id="collapseimg_forumhome_chatusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatusers].gif" alt="" border="0" /></a>
<a href='$vboptions[bburl]/vBChat.php?$session[sessionurl]'>Users Currently Inside vBChat</a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chatusers" style="$vbcollapse[collapseobj_forumhome_chatusers]">
<tr>
<td class="alt2"><a href="$vboptions[bburl]/vBChat.php?$session[sessionurl]"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="vBChat" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
{$invBChat}
</div>
</td>
</tr>
</tbody>
<!-- End vBChat Users -->
</table>
<br>
who can help?
Daniel.C
02-11-2005, 05:16 PM
I can't see the chat program, i uploaded the files and modified the old ones succsefully and now everytime i click on the link to it i just get a blank white page. Any Suggestions ?
sv1cec
02-11-2005, 06:07 PM
I can't see the chat program, i uploaded the files and modified the old ones succsefully and now everytime i click on the link to it i just get a blank white page. Any Suggestions ?
Check your templates.
sv1cec
02-11-2005, 06:10 PM
cool. all i need to know is how i get "Users Currently Inside vbChat" showing on my VBAdvanced portal/front page.
this variable is all that needs changing.
{$invBChat}
below is what i've got so far in my template.
<table cellpadding="4" cellspacing="$stylevar[cellspacing]" border="0" class="tborder" width="100%">
<!-- Start vBChat Users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatusers')"><img id="collapseimg_forumhome_chatusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatusers].gif" alt="" border="0" /></a>
<a href='$vboptions[bburl]/vBChat.php?$session[sessionurl]'>Users Currently Inside vBChat</a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chatusers" style="$vbcollapse[collapseobj_forumhome_chatusers]">
<tr>
<td class="alt2"><a href="$vboptions[bburl]/vBChat.php?$session[sessionurl]"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="vBChat" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
{$invBChat}
</div>
</td>
</tr>
</tbody>
<!-- End vBChat Users -->
</table>
<br>
who can help?
I am not sure what exactly you want. You want the user names, for the users who are in the chat? The code for that, is found in index.php, I think this is it:
// Get the users in vBChat
$vbchat_users = array();
$chatusers=0;
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
$chatusers = $chatusers+1;
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
Kyderoy
02-12-2005, 04:20 AM
I am having the same problem with the blank page .... I checked everything ...
sv1cec
02-12-2005, 04:41 AM
I am having the same problem with the blank page .... I checked everything ...
Could you please be more specific? Were you able to see them before and now you can't?
Rgds
Kyderoy
02-12-2005, 04:45 AM
No I just finished the install and when I click the vbchat link in the menu bar i get a blank page. I double checked the templates so I am now lost. :(
Daniel.C
02-12-2005, 09:18 AM
Me too i double checked the templates and still nothing but a blank page. http://www.infinitiveintentions.com/forums/vBChat.php?
sv1cec
02-12-2005, 09:47 AM
Me too i double checked the templates and still nothing but a blank page. http://www.infinitiveintentions.com/forums/vBChat.php?
Are you using more than one style? Maybe the templates are not in all styles.
Just a thought.
Rgds
Raven_FCF
02-12-2005, 02:31 PM
I am not sure what exactly you want. You want the user names, for the users who are in the chat?
yep. i want usernames current;y inside chat to appear in left block on front page. will the one you gave me work?
Daniel.C
02-12-2005, 06:48 PM
Are you using more than one style? Maybe the templates are not in all styles.
Just a thought.
Rgds
Nope i only have the one style up, i gues the hack just doesn't want to work.
highlander_RD
02-16-2005, 08:55 AM
Great hack, zero tolerance: thank you!
clicked ***install ***
I would be very impressed if you can add few more improvements:
1) a text formatting bar (Font, size, color, bold, italic, underlined, paragraph align, etc.), just above the post input line, identical to the one in vB interface when you quote/reply a post.
2) visible/invisible users to appear in chat as set in vB, same features/permissions.
3) consent the Admins to enter as invisible the private chats (even passworded) to control any illegal abuse of them.
4) ignore users: both cannot read each other posts.
Thank you so much! :D
sv1cec
02-16-2005, 12:03 PM
yep. i want usernames current;y inside chat to appear in left block on front page. will the one you gave me work?
Yes, that part of the code will collect the user names inside vBChat for you. In order to see them though, you have to edit your ForumHome template, to include something like:
<!-- Start vBChat Users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatusers')"><img id="collapseimg_forumhome_chatusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatusers].gif" alt="" border="0" /></a>
<a href='vBChat.php?$session[sessionurl]'>Users Currently Inside vBChat</a>
</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="vBChat" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
{$invBChat}
</div>
</td>
</tr>
</tbody>
<!-- End vBChat Users -->
Put the above, right after the part which looks like:
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
rgds
ambrosious
02-16-2005, 05:22 PM
Well, here is that part of the code, from my index.php:
// Get the users in vBChat
$vbchat_users = array();
$chatusers=0;
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
$chatusers = $chatusers+1;
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
foreach($userinfos AS $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') . '";');
}
}
// memory saving
unset($userinfos, $loggedin);
$activeusers = substr($activeusers , 2); // get rid of initial comma
You may use the variable $chatusers in the forum home page, to show you how many users there are in the chat.
rgds
Thanks, but I am having trouble with getting this to work in the What's Going On Box on my forums home page. Is there anyone who has this working that would like to share the code with me? (Now, if you just answered my question with the code above, then I apologize for being a total noob with this, could you instruct me how to make it work?)
Thanks!
sv1cec
02-16-2005, 06:10 PM
Thanks, but I am having trouble with getting this to work in the What's Going On Box on my forums home page. Is there anyone who has this working that would like to share the code with me? (Now, if you just answered my question with the code above, then I apologize for being a total noob with this, could you instruct me how to make it work?)
Thanks!
The code above, will collect the names of users in vBChat, the names are collected in the variable $invBChat, while the variable $chatusers tells you how many users are in vBChat.
Now in order to show the user names in your Forum Home, "What's going on" box, you should edit your FORUMHOME template, and add the code I supplied a few posts back. In that template, find:
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
Right below that, add:
<!-- Start vBChat Users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatusers')"><img id="collapseimg_forumhome_chatusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatusers].gif" alt="" border="0" /></a>
<a href='vBChat.php?$session[sessionurl]'>Users Currently Inside vBChat</a>
</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="vBChat" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
{$invBChat}
</div>
</td>
</tr>
</tbody>
<!-- End vBChat Users -->
This is how I have it in my system and it works fine.
Rgds
ambrosious
02-16-2005, 11:09 PM
I almost have it running, see if this makes sense:
The edit for index.php looks like 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;
}
}
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
REPLACE WITH:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
// 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>";
But, my index.php has this instead:
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') . '";');
}
}
}
So I have no idea what to do here. It seems to work up until this point. I am still not showing whos in chat, although the box is there. If I replace what I have with the recommeded file changes then I lose "Who's Online" except for myself.
If you can help out, I'll be forever in your debt.
TNAImpact
02-17-2005, 01:21 AM
Installed within minutes. Works like a charm, the page re-loading can get a little annoying, other than that I'm very impressed. :) Keep it up.
sv1cec
02-17-2005, 05:03 AM
In your index.php find:
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') . '";');
}
}
}
Replace that with:
$vbchat_users = array();
$chatusers=0;
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]['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') . '";');
}
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>";
$chatusers = $chatusers+1;
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
See if this works.
Rgds
illusions
02-17-2005, 09:57 AM
:( I followed the instructions clearly, even had my vbchat installed correctly... but when i try to upload my forum I recieve the following error msg...
Parse error: parse error, unexpected T_VARIABLE in /home/illusion/public_html/forums/index.php on line 298
can anyone tell me where i have gone wrong? would appreciate your input.
savageracer
02-17-2005, 02:00 PM
my vbchat works great with the default style on the board.. If a user is in another of the styles all they get is a blank page.. www.savageracer.com/forum/index.php
I added all the mods to each of the templates.. Any help would be greatly apreciated
savageracer
02-17-2005, 02:17 PM
I just looked and the templates.. Custom Templates is only in my default style. How do I add these to all the styles in the forum
Thanks
RICH
Chrissicom
02-17-2005, 06:52 PM
I did the required changes in functions_online.php but it still says Unknown Location in Who is Online... might the reason be that I also have v3 Arcade installed?
ambrosious
02-19-2005, 07:36 PM
In your index.php find:
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') . '";');
}
}
}
Replace that with:
$vbchat_users = array();
$chatusers=0;
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]['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') . '";');
}
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>";
$chatusers = $chatusers+1;
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
See if this works.
Rgds
I put the above in and got a parse error, unexpected else on a line way down. If you dont mind, would you look to see what is wrong with this code? Have I mucked it up?
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') . '";');
}
}
}
// memory saving
unset($userinfos, $loggedin);
$activeusers = substr($activeusers , 2); // get rid of initial comma
$DB_site->free_result($loggedins);
$totalonline = $numberregistered + $numberguest;
$numberinvisible = $numberregistered - $numbervisible;
// ### MAX LOGGEDIN USERS ################################
$maxusers = unserialize($datastore['maxloggedin']);
if (intval($maxusers['maxonline']) <= $totalonline)
{
$maxusers['maxonline'] = $totalonline;
$maxusers['maxonlinedate'] = TIMENOW;
build_datastore('maxloggedin', serialize($maxusers));
}
$recordusers = $maxusers['maxonline'];
$recorddate = vbdate($vboptions['dateformat'], $maxusers['maxonlinedate'], true);
$recordtime = vbdate($vboptions['timeformat'], $maxusers['maxonlinedate']);
$show['loggedinusers'] = true;
}
else
{
$show['loggedinusers'] = false;
}
Thanks for all your help on this so far!
Code3Services
02-20-2005, 02:13 AM
Quick question, everything regarding vBChat is running slowly, such as sending a message in the chat rooms, or modifying personal settings. Any suggestions on how to speed things up?
Thanks!
iSpanish
02-20-2005, 11:04 AM
hello
hi Zero Tolerance
i have q.?
i am using v1.0.1
how can i update it to v1.1.1 Features????
Zero Tolerance
02-22-2005, 07:32 PM
Seems like a familiar thread .. sorry for my abscence, my time was greatly limited due to certain things which i'd rather not announce publically...
In any case, this mod deserve's an upgrade, so if anyone could reply below to this post giving future requests/ideas, id be happy to think about them, gather up numerous ideas and get started on a v2.
I'd give support, but i've probably missed around 20 pages of this thread, so i think it would be better to release a new versions and restart support from there on. :)
So, let's hear those ideas people!
- Zero Tolerance
cnczone
02-22-2005, 07:38 PM
Ideas-
1- some kind of pop-up to notify when a member coming in or leaves the chat while browsing in the forums
2-something to stop the constant updating of the chat session
3-real time user list of who is chatting and a notification when someone leaves
4-allowing the posting of url that work
Zero Tolerance
02-22-2005, 07:42 PM
1. Perhaps a message in the chat display which says "[User] has just entered/left this room" (i think a pop up would be annoying, especially if it's an active room)
2. Hmm, little more specific please? :)
3. The list shows real time, as sessions are updated on every page load.
4. Posting URL's do work if you allow BBCode to be posted.
- Zero Tolerance
ambrosious
02-23-2005, 12:53 AM
How about adding "Who's in chat" code that dummys like me can use easily?!
Code3Services
02-23-2005, 12:55 AM
I afraid I can't think of anything that would improve this script, but I do have a couple of questions if you have the time to help me out a bit.
1) I use vbAdvanced, and the vBChat link in the Navbar on the vBAdvanced page does not include the correct url of /forums/vbchat.php. While in the Forums the link in the Navbar links to the correct url. Any suggestions on how to repair this?
2) vBChat is running very slow, such as editing options, joining rooms, and entering text into the chatroom. I'm not sure what other info you might need on this one, it's a clean install.
If you have time for those two questions I would gretly appreciate it! Other than that, I'm looking forward to the new version even though the current version is great!
oldengine
02-23-2005, 03:01 AM
Please see Post #511 regarding a time stamp on each line of text.
sv1cec
02-23-2005, 05:02 AM
Hey Zero,
Nice to have you back here. I took the liberty of playing with your code a little, nothing major since it was nicely executed to start with.
Some changes I would suggest are:
- Make the chat window open in a new browser window. In that way users can still browse the forums, while also keeping an eye on the chat.
- Alter the route the program takes, when creating or selecting a room. When one creates a room, I think the most logical next step, is to take him to the room selection form, so he can select which room he wants to go in.
- Add a log out button, which when pressed removes the user from the chat session. That helps in having an accurate user list shown. Of course, there will be users which just close the window without logging out, but the button can reduce the ghost users who left an hour ago. I have it created and my user list is quite more accurate now than before. Unfortunatelly, there is no easy way to stop a user from clicking the X button and close the window, at least I haven't find one.
- I changed the code, so that when the last user logs out from a user-created room, this room is deleted. In that way, there are no useless rooms there, which need to be deleted by the admin.
- Some cosmetic changes to show the user in which room he is etc. See pic below.
https://vborg.vbsupport.ru/external/2005/02/1.jpg
- I also added some code in the first page of the site, so that users can immediately see if there are other users in the chat. You can make the code, so that when you move your mouse over it, the <A HREF> title, shows you which users are already in the chat, if your "Users in Chat" table is positioned at the bottom of the page, like mine is.
https://vborg.vbsupport.ru/external/2005/02/2.jpg
- I've also added the feature of allowing moderators to warn members inside the chat. If a moderator clicks on the user name, on the left column, Warn.php gets activated with the proper offenses. Also, if a user has warning points, then these are shown next to his name, in red color, inside brackets. Integration with AWS! Oh yes, I've also changed your code a bit, so that if a user types a censored word, in a message, this word is replaced by **** or whatever, and the user gets an automatic warning.
- The most important feature, for my users, is the way the chat messages are presented (separate columns, for the poster name and message), this makes the chat easier to read. Also, the ability to seamlessly integrate it with vBulletin, is a huge benefit.
- The only thing that everyone complained about, but have all accepted after a few trials, is the screen refreshing thing. But I prefer this to a solution based on Java scripts (which I can't modify, ignorant coder) or Flash, which can't be that well-integrated with vB.
Overall, a big thanks for a lovely hack, as usual.
Rgds
P.S.: If I think of anything else I've done, and forgot it, I'll let you know.
oldengine
02-23-2005, 11:34 AM
I changed the code, so that when the last user logs out from a user-created room, this room is deleted. In that way, there are no useless rooms there, which need to be deleted by the admin.No way!
I want to used FIXED named rooms that are always available. In fact, I'd like for each of the rooms to have a URL that I could link users into for an immediate room choice. Like having four individual chat rooms available at any time.
sv1cec
02-23-2005, 11:42 AM
No way!
I want to used FIXED named rooms that are always available. In fact, I'd like for each of the rooms to have a URL that I could link users into for an immediate room choice. Like having four individual chat rooms available at any time.
Then, there should be two room categories, those which are created by the admin, and remain permanently in the chat, and those which are created by users, which should be erased when the last user logs out of that room.
Either that, or the admin will have to erase rooms created by the users, and left in the chat.
But you gave me an idea, I'll go add that parameter in my own chat, so that I can create permanent rooms.
Rgds
guydogg
02-23-2005, 09:08 PM
Can someone post an uninstaller
Zero Tolerance
02-24-2005, 07:31 AM
Thanks sv1cec/John, they will be definatly something i consider.
Current v2.0 Features Completed:
- Iframe Refresh Abolished
--- The system now uses hidden iframes to gather data, then uses Javascript to transport the HTML to the display iframe, which never reloads, and never flashes white when recieving chat messages or posting, just like any of chat system like MSN etc...
- Users Currently In vBChat Reformatted
--- The display of users is now more formal, showing the there chat status here, also displaying a link to send a private message instead of clicking there username
- Timestamp in messages
--- The timestamp has been put back, it was removed in an earlier release due to the user chat status, however this has been moved to Users Currently In vBChat Display
- vBChat Preferences Redesigned
--- The vBChat Preferences form has been re-designed to be a more neater and easier to use form.
- Smilies Animation Problem
--- Before when clicking to insert an emoticon, the animation of any current ones would come to a complete pause, this has been fixed, you can click on them continually and the animations will continue to play onwards.
- Improved Users In vbChat
--- The users in vbchat display is now more correct, and works towards your forums session cut-off time, where as before it may of displayed a user offline, but still showed them within vBChat, this is no longer a case, improving accuracy more :)
That's it for now, i'll get working on more things to stuff into this thing. Thanks to everyone who has supported this modification.
- Zero Tolerance
iSpanish
02-24-2005, 07:42 AM
Can someone post an uninstaller
i want uninstaller too
Zero Tolerance
02-24-2005, 07:48 AM
I'll make an un-installer come with v2.0 :)
I'll make an un-installer come with v2.0 :)
- Zero Tolerance
sv1cec
02-24-2005, 07:50 AM
Zero, good to have you back, your programming skills are certainly very welcome here.
The new features take away most of the problems. I would like to suggest something, as far as the Chat rooms are concerned, and which has been discussed here a few posts back.
The chat rooms can be divided in two categories, those created by the admin and those initiated by users, in order to have private discussions or whatever. The ones the admin creates should be permanent, while the others should get erased (according to my opinion) automatically, as soon as the last member logs off. That takes care of the wishes of some admins for permanent rooms, while in the same time reduces the admin work, who does not have to go around erasing private rooms which were created and then abandoned.
Of course, the thing that remains to deal with, is the log out, which is a problem. In my board, the log out button has made the users list neater, no more users showing there, if they are not really there. But if you have any idea on how to disable or forbid users from closing the chat window, that would be really neat.
I am looking forward to ... re-patch your new version for AWS.
Kind rgds
Zero Tolerance
02-24-2005, 07:55 AM
Well that's a good idea, however i think an alternative method would be more appropriate, let me hear what you think.
When an admin create's a room, they can choose for it to be permanent or not, as for rooms getting deleted after the creator logs out, kinda bad, people would be annoyed if they are still chatting inside that room. So..
How about rooms that are *not* permanant are pruned after 1 hour of inactivity, this prune time would ofcourse be admin controllable, but i think if the room has had no messages inside it for the last 60 minutes, or whatever time the admin specifies, it should then be automatically pruned.
That's my thoughts on this anyway, i think it would be the most appropriate and liked method.
- Zero Tolerance
iSpanish
02-24-2005, 08:05 AM
I'll make an un-installer come with v2.0 :)
- Zero Tolerance
i am asking about unisntaller for v1.0.1???
to install a new Version.
sv1cec
02-24-2005, 08:08 AM
Well that's a good idea, however i think an alternative method would be more appropriate, let me hear what you think.
When an admin create's a room, they can choose for it to be permanent or not, as for rooms getting deleted after the creator logs out, kinda bad, people would be annoyed if they are still chatting inside that room. So..
How about rooms that are *not* permanant are pruned after 1 hour of inactivity, this prune time would ofcourse be admin controllable, but i think if the room has had no messages inside it for the last 60 minutes, or whatever time the admin specifies, it should then be automatically pruned.
That's my thoughts on this anyway, i think it would be the most appropriate and liked method.
- Zero Tolerance
Oh no, you got me wrong, I never suggested that the room should be deleted when the creator logs out. What I suggested was that the room gets deleted when the last user from that room logs out. In that way, there will be no one left to .... be annoyed.
The time-out feature, where rooms get deleted after some time of inactivity is a nice backup feature, in case the last user of that room didn't hit the logout button.
Suggestions only my friend, act according to your own judgement.
Rgds
Zero Tolerance
02-24-2005, 08:31 AM
Oh no, you got me wrong, I never suggested that the room should be deleted when the creator logs out. What I suggested was that the room gets deleted when the last user from that room logs out. In that way, there will be no one left to .... be annoyed.
The time-out feature, where rooms get deleted after some time of inactivity is a nice backup feature, in case the last user of that room didn't hit the logout button.
Suggestions only my friend, act according to your own judgement.
Rgds
You can just download the version currently in this thread, and choose to upgrade from v1.0.1 -> v1.1.1, then when the new one is released you can upgrade from 1.1.1 -> 2.0
But if you really want to un-install then...
Run these queries to un-install the DB modifications:
drop table `vb3_vbchat_datastore`
drop table ` vb3_vbchat_store`
alter table `vb3_user` drop
vbchat_pref_font_face,
vbchat_pref_font_color,
vbchat_pref_user_ignore,
vbchat_pref_status,
vbchat_pref_auto_on,
vbchat_pref_auto_msg,
vbchat_pref_in_room;
Change vb3_ to your Forum Prefix :)
Then "un-do" all file edits made during the installation.
@ sv1cec - Ah yes, sorry, guess im still asleep. That is a good method, but some users may want to keep rooms active, so i think if they are deleted after a certain length of time of been in-active, then it will cause less problems. Thanks for the suggestion in any case. :)
- Zero Tolerance
iSpanish
02-24-2005, 10:12 AM
You can just download the version currently in this thread, and choose to upgrade from v1.0.1 -> v1.1.1,
there no choose like that:
upgrade from v1.0.1 -> v1.1.1
there is only upgrade from v1.1.0 -> v1.1.1
Zero Tolerance
02-24-2005, 11:28 AM
Ah yes, i forgot about that update. Anyway the uninstall instructions are above, just follow them, then you can install v1.1.1 fresh :)
- Zero Tolerance
Zero Tolerance
02-24-2005, 01:06 PM
Update...
Current v2.0 Features Completed:
- Iframe Refresh Abolished
--- The system now uses hidden iframes to gather data, then uses Javascript to transport the HTML to the display iframe, which never reloads, and never flashes white when recieving chat messages or posting, just like any of chat system like MSN etc...
- Users Currently In vBChat Reformatted
--- The display of users is now more formal, showing the there chat status here, also displaying a link to send a private message instead of clicking there username
- Timestamp in messages
--- The timestamp has been put back, it was removed in an earlier release due to the user chat status, however this has been moved to Users Currently In vBChat Display
- vBChat Preferences Redesigned
--- The vBChat Preferences form has been re-designed to be a more neater and easier to use form.
- Smilies Animation Problem
--- Before when clicking to insert an emoticon, the animation of any current ones would come to a complete pause, this has been fixed, you can click on them continually and the animations will continue to play onwards.
- Improved Users In vbChat
--- The users in vbchat display is now more correct, and works towards your forums session cut-off time, where as before it may of displayed a user offline, but still showed them within vBChat, this is no longer a case, improving accuracy more :)
- Chat Now In Pop Up Window
--- The chat will be displayed as a pop now instead of a normal page, allowing users to chat & browse at the same time
- Inactive Rooms Auto Pruned
--- This is admin controllable, you may set if rooms with inactivity will be auto pruned, you can select from 1 to 24 hours, if rooms havn't had any inactivity in the last x hours, they will automatically be removed.
- Permanent Rooms
--- When admins/smods create a chat room, they have the option to make it permanent, doing this will stop the room from been pruned due to inactivity, the only way to remove it then is via the ACP.
- What Room Are You In
--- The main chat page will now display which room you're chatting within
- Total Users
--- The main chat page will now display the total amount of users currently within that chat room
- User Joining Rooms
--- Upon first joining vBChat, the chat will display: "[user] Joins Room"
- User Changing Rooms
--- Upon changing rooms, the previous room you were in will display "[user] Leaves Room" and the new room will display "[user] Joins Room"
- Zero Tolerance
vishalsachar
02-24-2005, 01:19 PM
Zero -- this is absolutely awesome! Where can we download the new version?
You have made a major addition! Awesome!!
Zero Tolerance
02-24-2005, 01:21 PM
Zero -- this is absolutely awesome! Where can we download the new version?
You have made a major addition! Awesome!!
Version 2 is currently under production, you can expect to see it very soon :)
- Zero Tolerance
vishalsachar
02-24-2005, 01:32 PM
Thank You!
May I humbly make one small suggestion? When all users leave the chat room, can it be automatically pruned? That was the only thing I wish could be there.
If you would make this feature, I would be extremely grateful. It can be a bit weird for people to come into the chat room and be able to read whta was being discussed before (I only wish to have one room)
It seems the new version waits from 1-24 hours to auto prune. Can this be instant? As soon as the room is empty everything is pruned?
Thank you for all your hard work.
Zero Tolerance
02-24-2005, 01:37 PM
Hmm, but if a user was to join/leave rooms all the time, it could cause high server load.
And that feature doesn't prune the messages after x hours of inactivity, it removes the actual chat room, unless it is ofcourse the default room or a parmanent room :)
- Zero Tolerance
sv1cec
02-24-2005, 01:43 PM
Hmm, but if a user was to join/leave rooms all the time, it could cause high server load.
And that feature doesn't prune the messages after x hours of inactivity, it removes the actual chat room, unless it is ofcourse the default room or a parmanent room :)
- Zero Tolerance
Stop the chit-chat here and start coding! LoL
We are anxiously waiting for V.2.0
Rgds
Zero Tolerance
02-24-2005, 03:36 PM
Lol...
Update...
Current v2.0 Features Completed:
- Iframe Refresh Abolished
--- The system now uses hidden iframes to gather data, then uses Javascript to transport the HTML to the display iframe, which never reloads, and never flashes white when recieving chat messages or posting, just like any of chat system like MSN etc...
- Users Currently In vBChat Reformatted
--- The display of users is now more formal, showing the there chat status here, also displaying a link to send a private message instead of clicking there username
- Timestamp in messages
--- The timestamp has been put back, it was removed in an earlier release due to the user chat status, however this has been moved to Users Currently In vBChat Display
- vBChat Preferences Redesigned
--- The vBChat Preferences form has been re-designed to be a more neater and easier to use form.
- Smilies Animation Problem
--- Before when clicking to insert an emoticon, the animation of any current ones would come to a complete pause, this has been fixed, you can click on them continually and the animations will continue to play onwards.
- Improved Users In vbChat
--- The users in vbchat display is now more correct, and works towards your forums session cut-off time, where as before it may of displayed a user offline, but still showed them within vBChat, this is no longer a case, improving accuracy more :)
- Chat Now In Pop Up Window
--- The chat will be displayed as a pop now instead of a normal page, allowing users to chat & browse at the same time
- Inactive Rooms Auto Pruned
--- This is admin controllable, you may set if rooms with inactivity will be auto pruned, you can select from 1 to 24 hours, if rooms havn't had any inactivity in the last x hours, they will automatically be removed.
- Permanent Rooms
--- When admins/smods create a chat room, they have the option to make it permanent, doing this will stop the room from been pruned due to inactivity, the only way to remove it then is via the ACP.
- What Room Are You In
--- The main chat page will now display which room you're chatting within
- Total Users
--- The main chat page will now display the total amount of users currently within that chat room
- User Joining Rooms
--- Upon first joining vBChat, the chat will display: "[user] Joins Room"
- User Changing Rooms
--- Upon changing rooms, the previous room you were in will display "[user] Leaves Room" and the new room will display "[user] Joins Room"
- Exit vBChat Link
--- Upon clicking, chat automatically closes and a message is left in the room saying "[user] Leaves Room"
- /status Command
--- Change your vBChat Status by typing: "/status YOUR STATUS HERE"
- /exit Command
--- Same as the Exit vBChat link, only you may type it in as a command
- vBChat Help
--- Displays all chat commands, descriptions and examples of using them
- Zero Tolerance
ambrosious
02-24-2005, 03:51 PM
I put the above in and got a parse error, unexpected else on a line way down. If you dont mind, would you look to see what is wrong with this code? Have I mucked it up?
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') . '";');
}
}
}
// memory saving
unset($userinfos, $loggedin);
$activeusers = substr($activeusers , 2); // get rid of initial comma
$DB_site->free_result($loggedins);
$totalonline = $numberregistered + $numberguest;
$numberinvisible = $numberregistered - $numbervisible;
// ### MAX LOGGEDIN USERS ################################
$maxusers = unserialize($datastore['maxloggedin']);
if (intval($maxusers['maxonline']) <= $totalonline)
{
$maxusers['maxonline'] = $totalonline;
$maxusers['maxonlinedate'] = TIMENOW;
build_datastore('maxloggedin', serialize($maxusers));
}
$recordusers = $maxusers['maxonline'];
$recorddate = vbdate($vboptions['dateformat'], $maxusers['maxonlinedate'], true);
$recordtime = vbdate($vboptions['timeformat'], $maxusers['maxonlinedate']);
$show['loggedinusers'] = true;
}
else
{
$show['loggedinusers'] = false;
}
Thanks for all your help on this so far!
Anyone? Anyone?
Zero Tolerance
02-24-2005, 03:56 PM
Start with a fresh index.php, and then try modify it again for the vbChat edits, if you still get an error post saying so :)
- Zero Tolerance
Zero Tolerance
02-24-2005, 07:08 PM
I've spent quite some time and i've actually managed to conjour up a way of telling if the red "X" was pressed in the corner via Javascript, the method is working for firefox aswell as internet explorer, so now if a user closes the window without pressing the exit link or using the exit command, it will still say they have left as soon as they close the window :)
I think this gathers up all of what is needed for v2.0, expect to see the release later tonight or tomorrow afternoon, depending on what random events fire-up :)
- Zero Tolerance
sv1cec
02-24-2005, 07:44 PM
I've spent quite some time and i've actually managed to conjour up a way of telling if the red "X" was pressed in the corner via Javascript, the method is working for firefox aswell as internet explorer, so now if a user closes the window without pressing the exit link or using the exit command, it will still say they have left as soon as they close the window :)
I think this gathers up all of what is needed for v2.0, expect to see the release later tonight or tomorrow afternoon, depending on what random events fire-up :)
- Zero Tolerance
I knew I could trust you to solve the difficult issues.
Please let us know when 2.0 is out. I have work to do!
Rgds
Zero Tolerance
02-24-2005, 08:07 PM
Version 2.0 has been released :)
- Zero Tolerance
yoyoyoyo
02-24-2005, 08:37 PM
Version 2.0 has been released :)
- Zero Tolerancevery cool! thanks much!
smsmasters
02-24-2005, 08:37 PM
This hack is awesome man!!!
Zero Tolerance
02-24-2005, 08:41 PM
Thanks, hey i just noticed something very funny *points to attachment below* Look at # of replies :p
- Zero Tolerance
rainyleaves
02-24-2005, 09:16 PM
Awesome,Awesome,Awesome,Awesome, Thanks^^
MB Dreamz
02-24-2005, 09:19 PM
First off, thank you for such a great hack! :)
Now, I have a tiny problem. I just upgraded from v1.1.1 to v2.0. Tested it in both Firefox and IE, and they're working, except for the smilies. I cannot use them unless I manually key them in.
www.CafeTrends.com
Please help...thanks.
Zero Tolerance
02-24-2005, 09:24 PM
First off, thank you for such a great hack! :)
Now, I have a tiny problem. I just upgraded from v1.1.1 to v2.0. Tested it in both Firefox and IE, and they're working, except for the smilies. I cannot use them unless I manually key them in.
www.CafeTrends.com
Please help...thanks.
I'll look into the problem, if it is a problem and not an error on your part, i'll release an update tomorrow, i'd do it now but i'm very tired indeed ... sorry :p
- Zero Tolerance
SVTOA
02-24-2005, 09:28 PM
ZT, I get this error, I think I may have missed an upgrade version?
Invalid SQL: update vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups= '',d_bannedusers='',d_chat_ord er='bottom',d_smiliedisplay='1',d_smilieamount='10 ',d_allowbantag='1',d_maxrooms ='3',d_smilequery='1',d_autoprune='0',d_autopruned ays='0',d_roomprune='1' where did='1'
mysql error: Unknown column 'd_smilequery' in 'field list'
Zero Tolerance
02-24-2005, 09:29 PM
ZT, I get this error, I think I may have missed an upgrade version?
Invalid SQL: update vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups= '',d_bannedusers='',d_chat_order='bottom',d_smilie display='1',d_smilieamount='10',d_allowbantag='1', d_maxrooms='3',d_smilequery='1',d_autoprune='0',d_ autoprunedays='0',d_roomprune='1' where did='1'
mysql error: Unknown column 'd_smilequery' in 'field list'
SVTOA - Which version were you using before you upgraded? The upgrader was built on the idea that users were using v1.1.1
- Zero Tolerance
SVTOA
02-24-2005, 09:37 PM
Ruh Roh... I ***think*** it was 1.0.1 :(
My bad for not paying closer attention.
Zero Tolerance
02-24-2005, 09:43 PM
Alright, run the following queries, change vb3_ to your table prefix :)
If you get any mySQL errors while doing any, just ignore them, it means you already have that part installed.
alter table vb3_vbchat_datastore
add d_smiliedisplay tinyint(2) not null default '1',
add d_smilieamount int(15) not null default '10',
add d_allowbantag tinyint(2) not null default '1',
add d_chatrooms text not null default '',
add d_maxrooms int(15) not null default '5';
alter table vb3_user
add vbchat_pref_status varchar(10) not null default '',
add vbchat_pref_auto_on tinyint(2) not null default '0',
add vbchat_pref_auto_msg varchar(255) not null default '',
add vbchat_pref_in_room int(15) not null default '0';
alter table vb3_vbchat_store
add s_forroom int(15) not null default '0';
alter table vb3_vbchat_datastore
add d_smilequery tinyint(2) not null default '0',
add d_autoprune tinyint(2) not null default '1',
add d_autoprunedays int(15) not null default '1';
After doing those, re-check all area's of the system, things should be working just fine for ya :)
- Zero Tolerance
RMS-Chef
02-24-2005, 09:49 PM
Thanks for the update, I will check it out soon. I had moved to the SigmaChat integration system because the users were not digging the page refresh thingy. I will give this another try to keep as much as posible locally hosted. Thanks again.
SVTOA
02-24-2005, 10:01 PM
Seems to work now ZT, thanks much. :)
Zero Tolerance
02-24-2005, 10:01 PM
Thanks for the update, I will check it out soon. I had moved to the SigmaChat integration system because the users were not digging the page refresh thingy. I will give this another try to keep as much as posible locally hosted. Thanks again.
Well one of the great things about this version is the refresh system, the chat iframes are no longer refreshed, hidden iframes get the data and transport it to viewable one's, which means there is no more flashing of white backgrounds when it reloads the message's :)
- Zero Tolerance
SVTOA
02-24-2005, 10:22 PM
Exit vBChat Link
--- Upon clicking, chat automatically closes and a message is left in the room saying "[user] Leaves Room"
One thing I do not see is the exit link?
SVTOA
02-24-2005, 10:27 PM
Also, upon exit, I see a small, non-resizable window that appears to have a cut-off message, perhaps a "credits" window?
iSpanish
02-24-2005, 10:35 PM
hello
nice upgrade to this hack Zero Tolerance..
tody i will un-install the old one
then install the new Version
thanks.
just installed this hack for first time but the pop up window is huge
I had to drag over 8 times to see it all I run 1280x1024
Is there a way to chenge the default popup window size?
cnczone
02-25-2005, 12:19 AM
in mazilla, it will keep logging me and and unloading over and over again, but it does not do that in IE
winky6
02-25-2005, 12:34 AM
To adjust your window, change the setting in the code you added to the navbar template
height=500,width=680
Or to what ever you like. :nervous:
I also added resizable=yes :ermm:
yinyang
02-25-2005, 12:42 AM
First off, thank you for such a great hack! :)
Now, I have a tiny problem. I just upgraded from v1.1.1 to v2.0. Tested it in both Firefox and IE, and they're working, except for the smilies. I cannot use them unless I manually key them in.
www.CafeTrends.com
Please help...thanks.
first off, magnifique upgrade ZT. now the :( 's
1. i'm having the same problem as DanKao and look forward to the fix
2. apparently, i have an uncanced template -- > Uncached templates: chat_iframe_blank (1). How do i cache it?
-yinyang
MikaK
02-25-2005, 02:26 AM
Version 2.0 has been released :)
- Zero Tolerance
Hi!
I read your specs about new features in 2.0. Is there any way to have a set of smilies selected instead of the random picker?
Thanks for a great hack in any case!
-Mika
tanyeri24
02-25-2005, 03:52 AM
is there a demo to see it in action?
Zero Tolerance
02-25-2005, 09:11 AM
A demo can be found on my forum: http://gzevolution.net/forums (you have to register though .. no i'm not advertising o_o)
But if you can't be bothered to register, i have posted 9 previews of the system in my main post which you can look at :)
The exit link was removed, since the clicking of x was put in, but you can still use the /exit command :)
The pop up window checks to see if the window was closed, if your using Internet Explorer, you have to wait a second or 2 for it to close, if your using Mozilla, it should close practicly instantly, one of the few js codes that works better for Mozilla than it does Internet Explorer .. lol
I'll release a minor update to fix that smile problem and make sure that template is cached :)
Thanks for the feedback everyone, appreciated,
- Zero Tolerance
sv1cec
02-25-2005, 09:32 AM
A demo can be found on my forum: http://gzevolution.net/forums (you have to register though .. no i'm not advertising o_o)
But if you can't be bothered to register, i have posted 9 previews of the system in my main post which you can look at :)
The exit link was removed, since the clicking of x was put in, but you can still use the /exit command :)
The pop up window checks to see if the window was closed, if your using Internet Explorer, you have to wait a second or 2 for it to close, if your using Mozilla, it should close practicly instantly, one of the few js codes that works better for Mozilla than it does Internet Explorer .. lol
I'll release a minor update to fix that smile problem and make sure that template is cached :)
Thanks for the feedback everyone, appreciated,
- Zero Tolerance
OK, some ... critic after spending the entire morning to install 2.0 and bring it up to my specs:
1. The exit method (clicking on the window's X button, top right corner) still does not erase the user from the list. I think you can fix that, by deleting the session record, something like :
$DB_site->query("delete from ".TABLE_PREFIX."session WHERE userid=$bbuserinfo[userid] AND location like '%vBChat.php%'");
in the exit command.
2. If I am not mistaken, when someone views the help screen, the navigation bits are wrong, it thinks it is somewhere else, but I've changed it in my files and I do not remember where it was pointing to.
3. A couple of problems were faced by people with Internet Explorer, but not with Firefox or Netscape.
The first problem is that some times, the message they were trying to post, got erased, as the refresh occured in the background. That's what they told me, I haven't seen it happening.
The second problem, which I saw it myself, was that as they typed things, the program was taking each word they were typing and posted whatever was typed until then, as a new message, as if the user was pressing Enter (or the Post button), after every word they typed. This happened twice with two different users using IE. I am not sure if it happened because at the same time, I was doing some mods, or if it is a problem, I'll keep you updated on that.
Zero Tolerance
02-25-2005, 09:44 AM
1. Well since vBulletin itself will just re-create this session, i don't see any harm in deleting the session row, i'll add that into v2.1 :)
2. The navigation row is a global template, it's the same on all page's for me, possibly an error on your part perhaps? If not keep me updated.
3. Hmm, *keeps typing in vbchat untill hidden frames reload* .. message is still there. I'll look into it more, as you press submit JS triggers the iframe to clear the message field when it reloads, if that is the problem, i'll fix it or seek alternative methods.
Thanks for the information :)
- Zero Tolerance
The-Aeon
02-25-2005, 09:51 AM
Thx for the update :)
* The-Aeon installed
it works very good :) :)
sv1cec
02-25-2005, 09:54 AM
1. Well since vBulletin itself will just re-create this session, i don't see any harm in deleting the session row, i'll add that into v2.1 :)
2. The navigation row is a global template, it's the same on all page's for me, possibly an error on your part perhaps? If not keep me updated.
3. Hmm, *keeps typing in vbchat untill hidden frames reload* .. message is still there. I'll look into it more, as you press submit JS triggers the iframe to clear the message field when it reloads, if that is the problem, i'll fix it or seek alternative methods.
Thanks for the information :)
- Zero Tolerance
2. No, what I mean is that when you set the navbits in the part of the program that shows the help, you have copied that part from above (I think it is the Choose a room one) and you have changed it to say "Viewing vBChat Help" or something.
Could I PM you on an issue I have on my exit routine (log out)?
Tnx
Zero Tolerance
02-25-2005, 09:57 AM
Feel free sv1cec, anything i can do to help :)
But first .. *releases v2.1*
- Zero Tolerance
Creed
02-25-2005, 10:26 AM
Updated, thnx!
smsmasters
02-25-2005, 10:34 AM
How do u make the popup window not so BIG. I put width=800 and height=600 but some frames still have scrollbars and look messed up, cant u make dynamic widths and heights based on %
Zero Tolerance
02-25-2005, 10:37 AM
The v2.2 release will fix the window size to the users full screen height and width, being dynamic depending on users resolution too :)
- Zero Tolerance
Creed
02-25-2005, 10:53 AM
Sweet! I like to hear updates ;)
smsmasters
02-25-2005, 10:54 AM
and the forumhome popup template do please
SVTOA
02-25-2005, 11:15 AM
Upgrade 2.0 to 2.1 went fine, only thing is in the admin cp it still shows up as version 2.0. I did upload all the new files.
Refreshed, even closed browser, still says old version.
Zero Tolerance
02-25-2005, 11:15 AM
Yeah the ACP file wasn't changed, so don't worry about it :)
- Zero Tolerance
SVTOA
02-25-2005, 11:20 AM
Yeah the ACP file wasn't changed, so don't worry about it :)
- Zero Tolerance
Ok, thanks again ZT.
MB Dreamz
02-25-2005, 11:32 AM
Much appreciated, ZT. :)
One more small issue (maybe not an issue to others), when clicking on a smiley, then pressing enter, it adds the same smiley instead of submitting the message. Insteresting...
Zero Tolerance
02-25-2005, 11:35 AM
Thats because you have selected the emoticon, you need to select the message field or press the post submit button. Not an issue, just the way most browsers work :)
- Zero Tolerance
MB Dreamz
02-25-2005, 12:40 PM
Ahh...very cool. Thanks.
MikaK
02-25-2005, 12:47 PM
Nuthin on the fixed smilies?:( I mean the fixed set instead of random ones.
-M
Zero Tolerance
02-25-2005, 12:51 PM
Nuthin on the fixed smilies?:( I mean the fixed set instead of random ones.
-M
Well i was concentrating more on fixing the minor problems before including a few extra features, i'll keep that idea in my mind though. Sorry for the wait.
- Zero Tolerance
MikaK
02-25-2005, 01:07 PM
Well i was concentrating more on fixing the minor problems before including a few extra features, i'll keep that idea in my mind though. Sorry for the wait.
- Zero Tolerance
Great. Thank you:)
-Mika
Crapaddict
02-25-2005, 02:55 PM
wow, this is bigger release then i would ever have expected in such short time :)
(1.1.1=> 2.0)
now i have to get to work (upgrading) again> :P
* Crapaddict makes a bow _o_
nice(ly) (d)one, ZT
Speedy131
02-25-2005, 03:18 PM
nice work ZT, i really like it alot ;)
some people reported problems, when they type a sentence, sometimes (not always) the first word or two gets "lost", it doesn't show up in the chat
i myself haven't been able to replicate such thing
i didn't change anything in the script that i think could lead to such problem
only thing i did was making the LIMIT 15 in they mysql query into LIMIT 30 (just want to shows some more lines hehe)
Zero Tolerance
02-25-2005, 03:21 PM
v2.1 was released today and fixed that bug where sometimes it cut off what you were typing, or are you already using that version?
- Zero Tolerance
sv1cec
02-25-2005, 03:26 PM
Upgraded the code to include the fix for this problem (typed message getting erased) and it didn't happened to any of my IE users again. Admitedly, not too much time testing it, but this morning, when I had v. 2.0 installed, it happened with two of my users.
Why are people still using IE, I do not know.
Zero Tolerance
02-25-2005, 03:31 PM
Well thats good to hear, if the bug is completely abolished :)
And hey, i still use Internet Explorer, personally i find nothing wrong with it, i get no problems, or crap on my PC either .. each to there own i guess. :p
- Zero Tolerance
Speedy131
02-25-2005, 03:36 PM
v2.1 was released today and fixed that bug where sometimes it cut off what you were typing, or are you already using that version?
yup, using 2.1
i saw it happen, well the person said he typed something like "it was better bla bla ble"
and the "it was" didn't show up
sv1cec
02-25-2005, 03:41 PM
Well thats good to hear, if the bug is completely abolished :)
And hey, i still use Internet Explorer, personally i find nothing wrong with it, i get no problems, or crap on my PC either .. each to there own i guess. :p
- Zero Tolerance
Don't get offended Zero, all other browsers I tried didn't have that problem (Firefox and Netscape). And coming from Netscape (since version 1.0) you can understand my standing!!
LoL I just revealed my age to you yourngsters!
Zero Tolerance
02-25-2005, 03:48 PM
@ Speedy131 - I'll look into the problem more, once fixed i'll release an update, bundled with a few other fixes :)
@ sv1cec - Heh, yeah. So far the only browser which doesn't function with vBChat is Safari for the Mac, however un-important at this time, i have covered compatability for IE & Firefox, the 2 most used browsers, which is catering for the majority :)
Plus i'm only 17, not that young is it? o_o
- Zero Tolerance
sv1cec
02-25-2005, 03:51 PM
sv1cec['age']=ZT['age']+30;
echo (sv1cec['age']);
LoL
Zero Tolerance
02-25-2005, 03:53 PM
That's news to me, i always thought you were younger than that, a lot younger. I guess assumptions are what make us so damned stupid :p
- Zero Tolerance
boxingscene
02-25-2005, 03:59 PM
Does anyone else have this issue? Some of my users say they do not see the Chat option on my nav header menu and others like me see it fine.
Could this be a java issue with their browsers?
sv1cec
02-25-2005, 04:03 PM
Nope, I am actually so old to remember the "cookie, cookie, give me a cookie" virus.
LoL
Zero Tolerance
02-25-2005, 04:08 PM
Does anyone else have this issue? Some of my users say they do not see the Chat option on my nav header menu and others like me see it fine.
Could this be a java issue with their browsers?
Make sure you have done all template edits on "all" skins if you have multiple, and if it's a pain copying templates to another style, look at my profile here on vbulletin.org, i have made a modification a while back which will copy templates for you :)
@ sv1cec - Wow, that's cool, it would of been so fun to see that virus in action!
- Zero Tolerance
sv1cec
02-25-2005, 04:25 PM
Make sure you have done all template edits on "all" skins if you have multiple, and if it's a pain copying templates to another style, look at my profile here on vbulletin.org, i have made a modification a while back which will copy templates for you :)
@ sv1cec - Wow, that's cool, it would of been so fun to see that virus in action!
- Zero Tolerance
It was just filling up your screen with the phrase "Cookie, cookie, give me a cookie" and a pacman-style of face going around eating the letters (if memory serves me right).
Harmless, compared with the contemporary things.
Crapaddict
02-25-2005, 04:37 PM
Make sure you have done all template edits on "all" skins if you have multiple, and if it's a pain copying templates to another style, look at my profile here on vbulletin.org, i have made a modification a while back which will copy templates for you :)
@ sv1cec - Wow, that's cool, it would of been so fun to see that virus in action!
- Zero Tolerance
I have done all template edits, but it seems that the chat only shows up in the default style. in all other styles i just get a blank page.
I have changed the default style, and ran the installscript up untill the database modification again for all styles, but to no avail.... :ermm:
looks as if the chat won't work in any other style than in the default style for my board... what could be wrong?
Cornolio
02-25-2005, 05:18 PM
i'm trying to update, but when i "Save vBChat options"...
Database error in vBulletin 3.0.3:
Invalid SQL: update vb3_vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups= '',d_bannedusers='',d_chat_order='bottom',d_smilie display='0',d_smilieamount='10',d_allowbantag='1', d_maxrooms='5',d_smilequery='0',d_autoprune='0',d_ autoprunedays='0',d_roomprune='1' where did='1'
mysql error: Unknown column 'd_smilequery' in 'field list'
mysql error number: 1054
[...]
:confused:
Zero Tolerance
02-25-2005, 05:40 PM
@ Cornolio - Read these instructions: https://vborg.vbsupport.ru/showpost.php?p=616928&postcount=675
@ Crapaddict - Here: https://vborg.vbsupport.ru/showthread.php?t=72288, this will copy all templates to other styles, blank screen = templates not on skin.
- Zero Tolerance
Cornolio
02-25-2005, 05:49 PM
thank you master! https://vborg.vbsupport.ru/external/2005/02/1.gif
:D
Good to see your supporting this hack again.
One question is how do I make the window smaller, its huge and unresizeable. Simply changing the height and width from 9999 wont work for me...
Thanks in advanced.
Zero Tolerance
02-25-2005, 08:54 PM
Good to see your supporting this hack again.
One question is how do I make the window smaller, its huge and unresizeable. Simply changing the height and width from 9999 wont work for me...
Thanks in advanced.
I'll release an update tomorrow which fixes this, along with a couple of other minor problems. I hope it is okay for you to wait untill then :)
- Zero Tolerance
Zero Tolerance
02-25-2005, 09:33 PM
Confirmed Features & Release Date For vBChat Version 2.2:
- Admin CP interface for Usergroup & User banning completely re-designed, no more manual inputting of id's, the system will use a new format to add/remove banned usergroups/users to make it even easier.
- Usergroup Permissions
--- Group Can Create Custom Rooms (Yes/No)
--- Group Can Join Custom Rooms (Yes/No)
--- Group Can Join Permanent Rooms (Yes/No)
- Multiple minor bug fixes
Release Date: Sometime tomorrow, can't be sure of when, but it's tomorrow none the less :p
If anyone has more usergroup permission idea's they would like to have functional within the system then please reply saying so :)
- Zero Tolerance
No Can't wait! :P
Great job man and I thought you had given up on this mod :).
Megareus Rex
02-26-2005, 01:13 AM
Ok, 3 problems:
1: When I click on the link, it makes the box super-wide (like 20+ screens wide). But its ok if I choose "Open Link in new window". What gives?
2: The chat section of the hack only half-displays the latest reply in the chat. Whats wrong with it?
3: How can I make it so the Who's online in the chat box does NOT display the primary display usergroup's HTML markup? We use the glow code in usergroups, so it makes a new line for every username.
Thanks in advance for any help.
MauriceReed
02-26-2005, 03:55 AM
just installed this, and it works a treat.
only minor gripe if any is the wndow size, but i see that is going to be addressed with the update.
seriously mate, your hacks are the best ive seen so far!!
sv1cec
02-26-2005, 06:00 AM
If anyone has more usergroup permission idea's they would like to have functional within the system then please reply saying so :)
- Zero Tolerance
Since I first saw this hack, I keep thinking that you should have used a separate table for the rooms.
Anyhow, what I like to see, as far as usergroups are concerned, is the ability for the admin, to define, which usergroups are allowed in a room. The password is an entrance restriction, but it has to be distributed to, say, the mods, to allow them to access a certain "Staff only" room. Not very convenient. If we could define "Allowed Usergroups" when a window is created, it would be much more convenient. The fact that we are working inside vB, with the usergroups being a standard feature, allows you to do tricks that non-vB chat systems cannot even imagine.
One issue I am facing with the way rooms are handled (as serialized fields, inside a column), is that I can't use a dedicated index number for the permanent rooms. A situation I can forsee, is this:
There is a permanent room, which is used to discuss staff-only issues which has the room number 4. Above that, there are only temporary rooms, which are deleted when no longer used. At some time, the admin decides to remove the staff-only room, and then a temp room is created. This gets room number 4 again. If the admin hasn't remember to prune the contents of room 4 before deleting it, then simple members who use the new room 4, will be able to see the last contents of the old room 4, which was a staff-only room. NOT GOOD. An Auto-increment field could solve this issue, as well, as the precaution to automatically prune the contents of 'store' when a room is erased.
One suggestion: when someone changes rooms in chat, you could take him directly in the room he selected to join instead of letting him stay in the "Change Room" screen. No point to let him stay there. Oh if you do apply this change, you have to remove the "User Joined room" from the bottom if the change room routine, if you do not the program will show two such messages, one from the change room routine, one from the main routine.
Another thing I would like to see, is the ability to create rooms from the AdminCP. Especially, the permanent rooms. Again, this is a convenience-only issue.
Another issue, something for you to consider. As I said, I am using the non-permanent rooms, as a ... well, non-permanent. When the last user of a non-permanent room logs out, the room is erased. If all users decide to "change" rooms, then the room remains (even though I could implement the same logic to erase it, even when they change rooms) and is erased (I hope) by the cron job. This reduces clatter, and makes admin life easier.
The behaviour of the non-permanent groups, could be adjustable from AdminCP.
Finally, a management issue. Would it be too much for you to release any future enhancements in the form of a change log, so that people who have customized this lovely hack, don't have to redo everything from scratch? I have practically changed every single item in this hack, templates and files, so this would be a great convenience for me.
I have to agree with the rest of the people's comments here. Your hacks are the greatest I've seen (immitation is the most sincere form of flattery, see my AWS). And given your age, I know for sure I have a lot of patching to do in my board, I am sure you will come up with many more nice additions for us. Congrats mate.
Zero Tolerance
02-26-2005, 11:16 AM
Well a seperate table for rooms for people modifying this chat system would be a lot easier for them, however it means extra queries, and i push myself to the limit when it come's to reducing server strain to a minimal, this chat system is extremely optomized and i have yet to see it crash my server, or even make it a little slower. So unfortunatly the serialized array will stay in place, you can still do everything, but it does make things a little more difficult.
Admin's are allowed to dis-allow usergroups from accessing certain rooms? Sounds good to me, i'm guessing as default any rooms created by members would be accessible by all? If so it sounds good, i may wait untill v2.3 for that though.
The issue with that is very easy to fix, i'll just make it so when a room is deleted via ACP or the auto prune, it just prunes that room's messages with it :)
Changing straight to chat room, sounds good to me, no need to change the program, notice that if "nojoin=1" is within the URL, the message to say they have joined will not occur :)
Permanent change in ACP control, yes that should of been in, it completely escaped my mind. I'll do that for v2.2
A change log, hmm, i sometimes change the same thing 3 or more time's, i think what would be better is a program to differentiate the differences between the 2 files, many use it on here to see what changes vBulletin made to upgrade to the newest version, one program i know of is here: http://www.araxis.com/, or if you want the direct .exe file link: http://www.araxis.net/files/merge60_win32_evl.exe
I hope that will help you, i believe it would make things easier for you and me in that respect :)
Time to start on v2.2 i believe...
- Zero Tolerance
Creed
02-26-2005, 11:46 AM
Thanks for the link. Is there an automated install script? When I say that, I mean I see many hacks released with an automated installer. Is there a script available that will allow me to release any hack/add-on I create to have an automated installer? It would make things much easier than your normal text install. I know about the HTL and HIS, however I was looking more for the type of install script that you (and many others) use.
Zero Tolerance
02-26-2005, 12:10 PM
Sorry but i don't use automatic installers, or like them, i prefer to do things manually, since automatic installers can sometimes cause problems.
If you desire to release a 3rd party automatic installer for this script then feel free, i'll add it to the available addons section :)
- Zero Tolerance
sv1cec
02-26-2005, 01:06 PM
Well a seperate table for rooms for people modifying this chat system would be a lot easier for them, however it means extra queries, and i push myself to the limit when it come's to reducing server strain to a minimal, this chat system is extremely optomized and i have yet to see it crash my server, or even make it a little slower. So unfortunatly the serialized array will stay in place, you can still do everything, but it does make things a little more difficult.
I agree with you, you are right, it's better. Now, when is that private tutoring class you promised me on the use of serialized columns? LoL
Admin's are allowed to dis-allow usergroups from accessing certain rooms? Sounds good to me, i'm guessing as default any rooms created by members would be accessible by all? If so it sounds good, i may wait untill v2.3 for that though.
Rooms created by non-admins/mod/supermods are accessible to all, unless a password is set, in which case they are accessible to all who know the password. But in Permanent rooms (which can only be created by the staff), I would suggest a way to define NOT which groups CANNOT go in, but which groups are allowed to go in.
The issue with that is very easy to fix, i'll just make it so when a room is deleted via ACP or the auto prune, it just prunes that room's messages with it :)
And then I 'll have to copy your code to my log out routine, so that the contents of a room are deleted when the last user logs out of that room, as well. Perfect!
Changing straight to chat room, sounds good to me, no need to change the program, notice that if "nojoin=1" is within the URL, the message to say they have joined will not occur :)
Ah! Grasshoper, now I see it! LoL
Permanent change in ACP control, yes that should of been in, it completely escaped my mind. I'll do that for v2.2
I'll be looking forward to it.
A change log, hmm, i sometimes change the same thing 3 or more time's, i think what would be better is a program to differentiate the differences between the 2 files, many use it on here to see what changes vBulletin made to upgrade to the newest version, one program i know of is here: http://www.araxis.com/, or if you want the direct .exe file link: http://www.araxis.net/files/merge60_win32_evl.exe
I hope that will help you, i believe it would make things easier for you and me in that respect :)
Tell me about it! Files is not an issue, I use Beyond Compare for that. The bloody templates is what bothers me. You have to save them in files, and then compare them. And since you use the installer, I have to copy them from the XML file and copy the ones from the database and then compare. Ah, don't worry about it. I'll find my way, as long as you do not issue as many upgrades as I used to issue with AWS (1-2 a day!! LoL).
Time to start on v2.2 i believe...
What? It's not out yet? So last night you were at the local pub instead of coding???
:-)
guydogg
02-26-2005, 01:20 PM
in firefox the vbchat shows up perfectly, but in IE its like 10-15 times too wide for the screen?
please help, as most of my users use IE.
Zero Tolerance
02-26-2005, 01:41 PM
in firefox the vbchat shows up perfectly, but in IE its like 10-15 times too wide for the screen?
www.sportsfreaksonline.com/forums/vBChat.php?
please help, as most of my users use IE.
V2.2 is been released later today which will fix the bug where the window is too big :)
- Zero Tolerance
guydogg
02-26-2005, 01:46 PM
Ok thanks
Zero Tolerance
02-26-2005, 02:31 PM
Just so every knows, especially sv1cec, i'm not sat on my ass doing nothing, i've attathed a preview below.
- Zero Tolerance
Zero Tolerance
02-26-2005, 04:57 PM
Version 2.2 has been released, enjoy everyone!
- Zero Tolerance
MB Dreamz
02-26-2005, 05:52 PM
Thanks, ZT! :)
oldengine
02-26-2005, 06:15 PM
All installed and running except for my second forum skin and its children.
I guess I don't understand how this template hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=61399) works.
I put the template hack in AFTER I installed and updated vBChat, so I suspect that I need to manually copy the vBChat templates to my other forum skin templates. Until then, I have the white vBChat screen on them.
Zero Tolerance
02-26-2005, 06:17 PM
All installed and running except for my second forum skin and its children.
I guess I don't understand how this template hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=61399) works.
I put the template hack in AFTER I installed and updated vBChat, so I suspect that I need to manually copy the vBChat templates to my other forum skin templates. Until then, I have the white vBChat screen on them.
Use this that i made: https://vborg.vbsupport.ru/showthread.php?s=&threadid=72288
:)
- Zero Tolerance
sv1cec
02-26-2005, 07:07 PM
OK, you may take the rest of the day off, but I want v.2.3 out tomorrow!!!!
LoL
Thanks again ZT
Zero Tolerance
02-26-2005, 07:16 PM
Well actually yeah i was planning on doing v2.3 tomorrow.. already got idea's for it :)
- Zero Tolerance
Megareus Rex
02-26-2005, 07:23 PM
2.2 fixed two of the problems, but the 3rd still remains.
The actual chat section of the window only displays the top-half of the latest reply, and there's not even a scrollbar.
Zero Tolerance
02-26-2005, 07:28 PM
2.2 fixed two of the problems, but the 3rd still remains.
The actual chat section of the window only displays the top-half of the latest reply, and there's not even a scrollbar.
Are you displaying the newest reply at the top or bottom?
- Zero Tolerance
Creed
02-26-2005, 08:57 PM
Well actually yeah i was planning on doing v2.3 tomorrow.. already got idea's for it :)
- Zero Tolerance
Wow, this is turning into the vbulletin release system ;)
Zero Tolerance
02-26-2005, 08:59 PM
Wow, this is turning into the vbulletin release system ;)
Not complaining are you? ;)
- Zero Tolerance
SVTOA
02-26-2005, 09:03 PM
This last update went smooth ZT, no worries so far...
Zero Tolerance
02-26-2005, 09:08 PM
This last update went smooth ZT, no worries so far...
Excellent, exactly what i needed to hear (i never test the upgraders or installers, lol!)
Just cross my fingers and hope it works :p
- Zero Tolerance
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.