vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBChat v2.3 (https://vborg.vbsupport.ru/showthread.php?t=71049)

Joe Black 01-01-2005 02:20 AM

Does anyone know if there's a FAQ or user instructions for this hack? My users love it but aren't the most chat literate folk.

red_baron2000 01-03-2005 09:46 AM

is there no support for this hack anymore ?!!! if so does anyone of you knows how to uninstall it..:(

Eagle Creek 01-03-2005 04:53 PM

Can it be autopruned?

BrianLarsen 01-03-2005 09:44 PM

Perhaps its an isp problem but the page refresh is whacked.... sometimes it doesnt refresh, sometimes it double posts. I have even had it refresh to older pages. The problem extends to the user list as well. Is my ISP perhaps cacheing the page and feeding an older copy at times?

Is there a different refresh method availible? I have had similar problems with other chats of the php/sql type. Would a java client version be possible? Java seems to be immune to the refresh problems (tunneling protocall ?)

cdasso 01-03-2005 11:35 PM

Quote:

Originally Posted by RsX
oh nvm i tried it again and it works.
Does anyone know how to make a "Who is in vBChat" module for CMPS vBAdvanced home page please? I need it very much.


I'd kinda like to know also, if anyone has done it. Thanks

SIINSI 01-04-2005 02:32 AM

Unfortunately I have tried every fix in this thread. Yep, i actually read the whole thing... LOL However, I can't even get it to show the users on forumhome :( It just says no users chatting when they are.

I have tried everyones fix to no avail. Everything else works like a charm though. I am using 3.0.1 if anyone can help I would be forever in your debt :D

GREAT HACK!!!

Thanks,
Miguel

Roxie 01-04-2005 02:53 AM

Quote:

Originally Posted by Roxie
Is there a way to change the number of chat messages that are viewable? My chat room only shows about 15 of the past messages and then they disappear.

Is there any support for this hack any longer?

:rolleyes:

mismatch 01-04-2005 09:04 AM

Firstly thanks for the great hack - lovely clear instructions and took less than 5 mins to install :) you've made it the easiest hack I've ever installed :)

my qus are the same as most already asked & unanswered
- can I direct it to use smilies from my generic smilies list rather than all smilies
- can the history of posts be longer than 15 lines
- any improvement of screen flashing/refreshing would be a plus
- can I set the "create room" link to only show to certain usergroups? eg my paying ones :)
- Can we show the room that a user is in somewhere
- can autoprune be hours/mins rather than days

TIA

Intex 01-04-2005 10:30 AM

This is a great little mod :cool:. I have a few questions:
  • Is there any way a sound can be triggered if someone types a message, if you're in teh chat room, but have it open in another browser window / popup?
  • Can the mod be modified to include a way to invite someone to the chat room. I used to have this feature on vB2.x where they'd receive a popup, which the recipient could say 'Yes' or 'No' to. If they selected 'Yes, they'd be taken to the chat room
  • Can it be modified to show the current room you're in on the room itself
  • There's a bit of text on the forumhome that says 'No one is currently in vbchat'. I'd like to change that text, but I can't find it in the DB, templates or files themselves. Any ideas?

cdasso 01-04-2005 02:14 PM

Quote:

Originally Posted by SIINSI
Unfortunately I have tried every fix in this thread. Yep, i actually read the whole thing... LOL However, I can't even get it to show the users on forumhome :( It just says no users chatting when they are.

I have tried everyones fix to no avail. Everything else works like a charm though. I am using 3.0.1 if anyone can help I would be forever in your debt :D

GREAT HACK!!!

Thanks,
Miguel

My Users In Chat worked froom the start but I had just installed a clean install of 3.0.3.

I would just like to be able to show the Users in Chat somewhere else besides the forum home. I'm sure if I knew more about php programming it would be very easy.

I think support for this hack is gone.

Corriewf 01-05-2005 01:35 AM

Wonder if I did something wrong or not, but is there supposed to be an option for vbchat in the admin control panel cause I have to actually type in the address to the file to access it?

cdasso 01-05-2005 05:59 AM

Is anyone still wanting to know how to put a "Users In Chat" block on your vBadvanced portal home page?

If so, I will post it since I got it working on my board. :rolleyes:

cdasso 01-05-2005 06:00 AM

Quote:

Originally Posted by corriewf
Wonder if I did something wrong or not, but is there supposed to be an option for vbchat in the admin control panel cause I have to actually type in the address to the file to access it?

If you did everything right there should be a menu option for vBChat.

MikaK 01-05-2005 07:21 AM

Quote:

Originally Posted by cdasso
Is anyone still wanting to know how to put a "Users In Chat" block on your vBadvanced portal home page?

If so, I will post it since I got it working on my board. :rolleyes:

Sure! Thad would be cool:)

Intex 01-05-2005 12:06 PM

I notice that the date/time stamp feature was removed at version 1.1.0. I know a 'Status' field was put in the user preferences, but how do I get it to show the date / time again?

Corriewf 01-05-2005 12:41 PM

Quote:

Originally Posted by cdasso
If you did everything right there should be a menu option for vBChat.

Yeah everything has been done correctly.I wonder if there is another hack that is effecting this one??

Also my scroll bar in chat keep disappearing, anyone having that problem?

camoman 01-05-2005 01:47 PM

Quote:

Originally Posted by SIINSI
Unfortunately I have tried every fix in this thread. Yep, i actually read the whole thing... LOL However, I can't even get it to show the users on forumhome :( It just says no users chatting when they are.

I have tried everyones fix to no avail. Everything else works like a charm though. I am using 3.0.1 if anyone can help I would be forever in your debt :D

GREAT HACK!!!

Thanks,
Miguel


Has anyone found a fix for this yet as I am getting the same thing..

Corriewf 01-05-2005 02:18 PM

I guess we dont need no support.Guess we are just another brick in the wall..LOL..I am turning on the batman/coders signaling light.

cdasso 01-05-2005 03:41 PM

Quote:

Originally Posted by MikaK
Sure! Thad would be cool:)

I will post it in a little bit.

cdasso 01-05-2005 05:19 PM

OK, for those of you who would like to put a "Users In Chat" block on your vBadvanced portal pages.....

First of all, this assumes that you have "Users Currently In vBChat" already working properly on your forum home page.

I have vb 3.0.3 and PHP 4.3.10 installed on mine.

First, go to the Style Manager > Common Templates

In the phpinclude_start field paste the following code:

PHP Code:

// For vBChat
require_once('./includes/functions_bigthree.php');

// ### LOGGED IN USERS ###
if ($vboptions['displayloggedin'])
{
    
$datecut TIMENOW $vboptions['cookietimeout'];
    
$numbervisible 0;
    
$numberregistered 0;
    
$numberguest 0;

    
$forumusers $DB_site->query("
        SELECT
            user.username, (user.options & 
$_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
            session.userid, session.inforum, session.lastactivity, session.location,
            IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
        FROM " 
TABLE_PREFIX "session AS session
        LEFT JOIN " 
TABLE_PREFIX "user AS user ON(user.userid = session.userid)
        WHERE session.lastactivity > 
$datecut
        " 
iif($vboptions['displayloggedin'] == 1"ORDER BY username ASC") . "
    "
);

    
// Get the users in vBChat
    
$vbchat_users = array();

    while (
$loggedin $DB_site->fetch_array($forumusers))
    {
        
$userid $loggedin['userid'];
        if (empty(
$userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
        {
            
$userinfos["$userid"] = $loggedin;
        }

        if(
preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
        
$vbchat_users[$loggedin['userid']] = $loggedin;
        }

    }

    
// Configure Peeps In vBChat
    
$invBChat "";

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

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

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

    if(
$invBChat == ""){
    
$invBChat "<i>None</i>";
    }



Then create a new custom template called adv_portal_inchat and place the following code in it:

PHP Code:

<!-- Start vBChat Users -->
<if 
condition="$show['member']">
<
table align="center" border="0" cellpadding="4" cellspacing="$stylevar[cellspacing]class="tborder"width="100%">
<
tbody>
    <
tr>
        <
td class="tcat" colspan="2">
            <
span class="smallfont"><strong><a href='vBChat.php?$session[sessionurl]'>Users In Chat</a></strong></span>
        </
td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_forumhome_chatusers" style="$vbcollapse[collapseobj_forumhome_chatusers]">
    <
tr>
        <
td class="alt2"><a href="vBChat.php?$session[sessionurl]"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="Chat" border="0" /></a></td>
        <
td class="alt1" width="100%">
            <
div class="smallfont">
                        {
$GLOBALS[invBChat]}
            </
div>
        </
td>
    </
tr>
</
tbody>
</
table><br>
<else /></if>
<!-- 
End vBChat Users --> 

Then add a new cmps module with the following options:

Module Title: Who's In Chat
Template to include: inchat
Active: yes


That's it!!!

This code will only show the block to registered users. If you want guests to be able to see it just comment out the <if condition="$show['member']"> and <else /></if> tags from the template.

Now you can put it on any of your CMPS pages just like the other modules.
I'm sure that there's a better way to do it by including a file or something and someone who knows what they're doing can probably do it without adding a query but I couldn't. I just started messing around with this PHP stuff about 6 days ago when I installed vBulletin.

Hope it helps. It works on my board. :squareeyed:

CD

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.

Quote:

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

PHP Code:

    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.

PHP Code:

    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
Quote:

$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.






Quote:

Originally Posted by corriewf
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

Quote:

Originally Posted by belindaj
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:
Code:

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

Quote:

Originally Posted by wacnstac
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
Code:

// 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
Code:

<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
Code:

<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

Quote:

Originally Posted by oldengine
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
Code:

// 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
Code:

<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
Code:

<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

Quote:

Originally Posted by John Lester
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


All times are GMT. The time now is 11:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02624 seconds
  • Memory Usage 1,934KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (4)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete