Version: 1.00, by EvilLS1
Developer Last Online: May 2021
Version: 3.0.6
Rating:
Released: 05-13-2004
Last Update: 05-14-2004
Installs: 13
DB Changes
No support by the author.
I don't know if any of you will find this useful but its something that I've wanted for a while. For me, the problem with all of the other "who's in chat" hacks is that most of them require something crazy to work (I have no idea what an eggdrop is). Anyway, this one is php/mysql based and should be easy to install.
Description: This will add a new section to your "What's going on?" block which will display a list of users who are currently chatting or viewing the included chat.php page (see screenshot). The list of current chatters is updated every 60 seconds by an auto-refreshing (hidden) iframe in the chat page.
This hack should work with any embedded (web based) IRC chat.
Installation overview:
*Files to edit: (1) -index.php
*Files to upload: (2) -chat.php & icon_chat.gif
*Templates to edit: (1) -FORUMHOME
*Templates to add: (3) -chat_main, chat_chatters, & chat_chatbit
*Queries to run: (1) Adds the chatters table.
After that you simply add the html code to embed your chat applet in the chat_chatbit template. You can then view your chatroom by going to yoursite.com/forums/chat.php.
Note: The list of chatters is updated every 60 seconds, so usernames will still be listed in the "who's in chat" box for up to a minute after they leave the chat page.
Credits: The idea for refreshing the iframe to update the chattime came from John's "extend session" feature in his V3Arcade hack. So thanks John.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I'm seriously considering whether I should get digichat, and the only thing that's holding me back are questions regarding its "Who's Chatting" flexibility. If a good-quality chat program can't do it as you've illustrated in your hack, then I don't want it.
I'm seriously considering whether I should get digichat, and the only thing that's holding me back are questions regarding its "Who's Chatting" flexibility. If a good-quality chat program can't do it as you've illustrated in your hack, then I don't want it.
I should have said Java applet. Anyway, as long as the applet itself can be embedded into the template supplied in the hack instructions I can't think of any reason that it wouldn't work.
Like I said, I'm not familiar with digichat but I do know that some of the high dollar chat softwares such as realchat do provide a way to show who's in chat on remote pages. This hack is geared more toward people who use web based IRC clients such as jpilot or pjirc. It could work with other types aswell but the only way to find out is to try it.
Correct me if I'm wrong, but I don't think VBXIRC is an actual chat software, but rather a hack that integrates PJIRC with vbulletin. The actual chat software is pjirc, so thats where you'd download the applet code. I don't know what all the integration hack does but it most likely embeds the code into a template just like this hack. Not sure if its compatible with this hack or not.
You are right I guess. It uses pjirc and integrates it with vbulletin.
I also use VBXirc which is in /forum/chat directory and I would like to know if I can make some modifications to use forum/chat/index.php instead of forum/chat.php and make it work. I guess it isn't easy because you need chat.php to make it work, right?
I'm satisfied with VBXirc and it would be great to keep it and use this hack at the same time.
You are right I guess. It uses pjirc and integrates it with vbulletin.
I also use VBXirc which is in /forum/chat directory and I would like to know if I can make some modifications to use forum/chat/index.php instead of forum/chat.php and make it work. I guess it isn't easy because you need chat.php to make it work, right?
I'm satisfied with VBXirc and it would be great to keep it and use this hack at the same time.
I'm sure its possible to get them to work together but I have no way to test it b/c I don't use vbxirc, so you'd have to do some experimenting yourself.
I think all you'd really need to do is copy this section of code from chat.php:
Code:
if (!$bbuserinfo['userid'])
{
print_no_permission();
}
$chatuser = $bbuserinfo[username];
$userid = $bbuserinfo[userid];
$time = intval(TIMENOW);
$somestuff = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "chatters WHERE userid=$userid");
if ($DB_site->num_rows($somestuff)!=0)
{
$DB_site->query("UPDATE " . TABLE_PREFIX . "chatters SET chattime = $time WHERE userid = $userid");
} else {
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "chatters (username,chattime,userid) VALUES ('".addslashes($chatuser)."','$time','".intval($userid)."')");
}
// ########################## EXTEND CHAT SESSION #############################
if ($_GET['do'] == "extendsession") {
echo "<META HTTP-EQUIV=Refresh CONTENT=\"60; URL=".$vboptions['bburl']."/chat.php?do=extendsession\">";
exit;
}
...And paste it into your forums/chat/index.php.
Then you'd need to add this to the template that loads the chat applet:
After that, you'd still need to run the query to create the table, add the chat_chatters template, do the edits to index.php and your forumhome template.
When you say : "add this to the template that loads the chat applet"
are you talking about the chat_chatbit template or the one which loads my chat (some template from vbxirc) ?
don't I need to modify all lines with /chat.php to /chat/index.php also?
When you say : "add this to the template that loads the chat applet"
are you talking about the chat_chatbit template or the one which loads my chat (some template from vbxirc) ?
don't I need to modify all lines with /chat.php to /chat/index.php also?
You'd need to put it in the vbxirc template which loads the applet.
And yeah, you'd need to change all links that point to /chat.php to /chat/index.php.