PDA

View Full Version : Who's Chatting?


Velocd
04-13-2002, 10:00 PM
Here is alittle hack that I compiled and enhanced out of the source code aided to me by Mem.

This hack will allow you to display the members in
your phpmychat on the forum home page. Very useful
for allowing others to know who is in the chat, and
to further promote the chat room.

Requirements:

- phpmychat (must be installed on same database your forum is running under)
Can be found at: http://www.phpheaven.net/projects/phpMyChat/download/

- You may need, but not tested, the phpmychat
integration by Stasik, which can be found at
https://vborg.vbsupport.ru/showthread.php?s=&threadid=21329&highlight=phpmychat+integration

After notes:

I highly recommend phpmychat over any other chat room, as it is free and easy to set up. It works very nicely also. :D

mem
04-14-2002, 01:58 AM
thank,you . sir !!

it's good !!:D

Velocd
04-14-2002, 01:59 AM
Attached is a screenshot, of me all by my lonesome :(

mem
04-14-2002, 04:25 AM
this hack only logined member can see

if you want to guest and logined member can see it

Modifiy index.php

Find :

// Ok Get Users and Stats
if ($bbuserinfo['userid']!=0) {

Replace :

// Ok Get Users and Stats
if ($bbuserinfo['userid']!=0 or $bbuserinfo['userid']=="") {

thehobbyforum
04-14-2002, 05:09 AM
Works great thanks again Mem!!

TECK
04-14-2002, 05:33 AM
Originally posted by mem
this hack only logined member can see

if you want to guest and logined member can see it

Modifiy index.php

Find :

// Ok Get Users and Stats
if ($bbuserinfo['userid']!=0) {

Replace :

// Ok Get Users and Stats
if ($bbuserinfo['userid']!=0 or $bbuserinfo['userid']=="") {
isnt easier to simply remove the if argument?

thehobbyforum
04-14-2002, 06:56 AM
Hey mem have you hacked it to vBportal - I am trying but still getting errors?

mem
04-14-2002, 07:21 AM
Originally posted by thehobbyforum
Hey mem have you hacked it to vBportal - I am trying but still getting errors?

sorry, i have'nt hacked it to vBportal !! :(

thehobbyforum
04-14-2002, 07:26 AM
I think I can use the same basic principles as the other hack I just can't figure out where to insert the code into phportal?

Velocd
04-14-2002, 04:53 PM
I've got a quick question I asked in the other post, and thats how can you set phpmychat to erase members after 1 minute instead of 4 minutes. Because if someone enters the chat and then leaves, their name will still show up in the "Who's Chatting" box for 4 minutes.

almightyone
04-14-2002, 05:42 PM
config.lib.php3 in the config folder
Find
define("C_USR_DEL", '4');

Replace:
define("C_USR_DEL", '1');

Velocd
04-14-2002, 10:33 PM
thanks ^_^

Keta
04-21-2002, 09:11 PM
is there a hack like this for eIRC chat or jpoilt? if not r u willing to make me one ;)

pgowder
04-23-2002, 01:10 PM
I've installed it with out the intergration hack, and it works fine.

One small fix (doesn't change function)

<tr id="cat">
<td background="images/cg.gif" colspan="6">
<normalfont color="{categoryfontcolor}"><b>
Who's Chatting:</b>
</normalfont></a><normalfont color="{categoryfontcolor}">
<b>$numchatters</b></normalfont>
</td>
</tr>


You have a </a> with no <a href>

GOD-Dblade
04-23-2002, 10:08 PM
hm will this work with...https://vborg.vbsupport.ru/showthread.php?s=&threadid=37781

Velocd
04-28-2002, 04:38 PM
I don't think so, but maybe Mem might know how to.

mem
04-29-2002, 04:20 AM
GOD-Dblade

your hack is just a new chat to the vbb.
but I just combine phpmychat to vbb not write a new hack.

Velocd
05-26-2002, 10:57 PM
I have a question to Mem or anybody else if you could help. How can I get some stats about the phpmychat room, that I can display in the who's chatting area? Such as, much like who's online, I would like to know the max people ever in the chat room, max ever in the chat at one time, and what the date of the last person in the chat room was. ;)

LaNder
05-27-2002, 08:12 AM
hmm, another request by me:

is it possible to link the userprofile with the names in the "who's chatting" area?

LaNder

Velocd
05-28-2002, 02:34 AM
lol, I was wondering just the same. I wish I could be a great hacker like some of the guys on this forum and answer some of the questions, but unfortunantly I haven't been spending enough time learning PHP and MySQL. Anyway, I have tried using:

<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$post[userid]">

But that just gives an error of an non-existant user.

Craigr
03-09-2003, 07:38 PM
Works great. Just what i was looking for. :D

Craig

Loxias
04-11-2003, 01:00 AM
Any idea how to get this to wrap the names when it exceeds the table width?

TIA

chitown
04-26-2003, 07:26 PM
how do i cange the database over to my member database?

dotagious
04-27-2003, 06:02 AM
Yesterday at 04:26 PM chitown said this in Post #23 (https://vborg.vbsupport.ru/showthread.php?postid=387583#post387583)
how do i cange the database over to my member database?

Yah because the link in the first post doesn't work.

AND

What does Stasik's intergration hack do? It's not explained in his thread or anywhere else. What does the intergration consist of?

Thanks!

Loxias
04-27-2003, 12:56 PM
Today at 03:02 AM dotagious said this in Post #24 (https://vborg.vbsupport.ru/showthread.php?postid=387777#post387777)
Yah because the link in the first post doesn't work.

AND

What does Stasik's intergration hack do? It's not explained in his thread or anywhere else. What does the intergration consist of?

Thanks!


Stasik's integration hack allows your vB members to chat with their forum username without having to create a separate one for the chat. I haven't installed just this hack, so I don't know how it works without Stasik's. Copy the user's table created for the chat room to they vB database and you should be set.