Log in

View Full Version : Who's in chat on forumhome.. (No eggdrop)


EvilLS1
05-13-2004, 10:00 PM
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. :)

VeoMorphine
05-14-2004, 11:10 AM
this is good for people who only allow web based irc users into chat. But if you have MIRC users in the channel, they wont show up on this script :-/

Boofo
05-14-2004, 12:17 PM
Excellent hack, my friend. ;)

* Boofo clicks the install button repeatedly!

Zelda-King
05-14-2004, 02:31 PM
Aside from me waiting for one of my co-administrators who happens to be more of a chat authority than I am, could someone post any necessary information we might need in order to download/install a chat that is compatible with this hack? I would be very interested then. Right now I have PHPMyChat running and we've typically used mIRC servers before.

By all means I'll click install in the meantime so I can more easily keep an eye on this thread.

Boofo
05-14-2004, 02:38 PM
Aside from me waiting for one of my co-administrators who happens to be more of a chat authority than I am, could someone post any necessary information we might need in order to download/install a chat that is compatible with this hack? I would be very interested then. Right now I have PHPMyChat running and we've typically used mIRC servers before.

By all means I'll click install in the meantime so I can more easily keep an eye on this thread.
Check out the chat on my site and see if maybe that will work for you. If it will, PM me and I can help you get it set up. ;)

paratek
05-14-2004, 03:11 PM
Boofo, i checked out the chat software you installed on your site....looks good, does it tend to lag the system when a lot of users are on?

Also, i sent you a PM wondering if that sweet flashing PM box is a private hack or available here?

Boofo
05-14-2004, 03:18 PM
Boofo, i checked out the chat software you installed on your site....looks good, does it tend to lag the system when a lot of users are on?

Also, i sent you a PM wondering if that sweet flashing PM box is a private hack or available here?
The chat I use there is basically the same thing they use here. ;)

The flashing pm box on my site is my own but there was one also released here by Gary W. (I think). I have no problems sharing the code for it with you if you want. ;)

Zelda-King
05-14-2004, 04:17 PM
Check out the chat on my site and see if maybe that will work for you. If it will, PM me and I can help you get it set up. ;)I checked your chat before (and just have again). The applet won't load for me. I think it's a local computer issue... refusing to load Java or something. I'll try redownloading/installing Java.

Boofo
05-14-2004, 04:47 PM
I checked your chat before (and just have again). The applet won't load for me. I think it's a local computer issue... refusing to load Java or something. I'll try redownloadin/installing Java.
Does the chat work for you here? I use the same thing they are using here.

Zelda-King
05-14-2004, 05:37 PM
No. Also reinstalling it via both automated and manual methods doesn't help. I'm thinking my operating system must hate it or something (even though it's supposed to be supported [WinME]). I have no doubt a lot of my users could probably view it.

Boofo
05-14-2004, 06:34 PM
No. Also reinstalling it via both automated and manual methods doesn't help. I'm thinking my operating system must hate it or something (even though it's supposed to be supported [WinME]). I have no doubt a lot of my users could probably view it.
The wife (Internet Support Technician) seems to think you might have a corrupted IE installation. If you have the WinME CD, she suggests that you re-install IE. If you want, jumnp on the site and I will have her talk to you about it.

Zelda-King
05-14-2004, 06:50 PM
What if it doesn't work on my other browsers either? Well no matter, we can continue this discussion at your place as I have no wish to get the hack topic sidetracked.

EvilLS1
05-14-2004, 08:19 PM
this is good for people who only allow web based irc users into chat. But if you have MIRC users in the channel, they wont show up on this script :-/
Yeah its only for embedded chat applets. Sorry.

Aside from me waiting for one of my co-administrators who happens to be more of a chat authority than I am, could someone post any necessary information we might need in order to download/install a chat that is compatible with this hack? I would be very interested then. Right now I have PHPMyChat running and we've typically used mIRC servers before.

By all means I'll click install in the meantime so I can more easily keep an eye on this thread.

Zelda,
It will work with any embedded IRC chat (and maybe even some other types). My favorite chat software is Jpilot which can be downloaded here:
http://www.jpilot.com/
Or if you just want a simple free IRC chat thats hosted by someone else you could try this one:
http://freejavachat.com/index.html
You can configure both of those so that they automatically log your users in with their vbulletin username.

Boofo,
I can't get your chat applet to load in my browser either. I've tried it at work and at home with no luck.

Boofo
05-14-2004, 08:25 PM
Yeah its only for embedded chat applets. Sorry.



Zelda,
It will work with any embedded IRC chat (and maybe even some other types). My favorite chat software is Jpilot which can be downloaded here:
http://www.jpilot.com/
Or if you just want a simple free IRC chat thats hosted by someone else you could try this one:
http://freejavachat.com/index.html
You can configure both of those so that they automatically log your users in with their vbulletin username.

Boofo,
I can't get your chat applet to load in my browser either. I've tried it at work and at home with no luck.
Can you get the chat here at vb.org to load?

EvilLS1
05-14-2004, 08:38 PM
Nope, it doesn't load for me either.

Boofo
05-14-2004, 08:50 PM
Nope, it doesn't load for me either.
Strange. I'm going to check out JPilot then. ;)

hubba
05-15-2004, 02:43 PM
Fine hack! Question, would it be possible to add a popup Window if someones enters the chat, and close it if he leaves? Someone did sometihing like that, then one has no need for refreshing...?

Zelda-King
05-15-2004, 07:22 PM
Strange. I'm going to check out JPilot then. ;)I've been trying out jpilot. It works fine and my fellow admins are agreed it's The Business! It's tested positively on IE6, Firefox and Opera7. Now I can finally get on with installing this hack.

insanctus
05-15-2004, 07:39 PM
Try pjirc, I do not know where you can get it any more but it is alot nicer, and not forced to have any logo's ...... and is free.

Zelda-King
05-15-2004, 10:35 PM
Thanks, I'll bear that in mind.

Hack installed. Working fine. Anyone with the chat file NOT in the forum root directory will need to do some customising but I'm impressed at just how easy this hack is. I'm used to chat hacks being rather complicated.

Found pjirc here: http://www.pjirc.com/downloads.php

hubba
05-16-2004, 12:09 AM
>>will need to do some customising

I think one only has to change the parameter of codebase? If there is more to do I would be glad for instructions... my applets are under the rootdirectory in "classes"

Zelda-King
05-16-2004, 02:18 AM
Or you could just shove everything in your forum root, delete everything else then it should all be good... or something (apart from having to update the links to the chatroom).

I tested out pjirc. It works with the hack.

Boofo
05-16-2004, 02:22 AM
Or you could just shove everything in your forum root, delete everything else then it should all be good... or something.

I tested out pjirc. It works with the hack.
What is pjirc? Have you tried jpilot yet? I just installed in on the site. You might want to see if you can get into it any better than the old one. ;)

Zelda-King
05-16-2004, 08:59 AM
What is pjirc? Have you tried jpilot yet? I just installed in on the site. You might want to see if you can get into it any better than the old one. ;)pjirc was mentioned in this thread and I gave a link to it. I've also tried out jpilot. I like both programs and I've already said they both work for me. pjirc however, doesn't need registering. ;)

And yes I can use your chat now, Boofo. :)

Boofo
05-16-2004, 09:41 AM
pjirc was mentioned in this thread and I gave a link to it. I've also tried out jpilot. I like both programs and I've already said they both work for me. pjirc however, doesn't need registering. ;)

And yes I can use your chat now, Boofo. :)Oooooh, I think I just got scolded. ;)

Just trying to help. ;)

By the way, the new beta of JPilot is worth checking out. They've added a lot of neat things to it.

Zelda-King
05-16-2004, 09:54 AM
Oh sorry, that wasn't supposed to sound like a scolding. Just call it "early morning syndrome". :D

What would be nice for the actual hack is text formatting for mods/admins. Have them show in bold/italics as applicable.

Zelda-King
05-17-2004, 04:32 PM
It seems this doesn't show people who enter the chat using a Firefox browser.

EDIT: Seems like the problem is conditional. Anyway I went in my chat on Firefox and couldn't see myself. No one could see me either so I tried IE and it then worked. I then went on another board with the chat installed so I could discuss the issue with the admin there. I went in on Firefox. Again, I didn't show. Later though I reentered on Firefox again and he said he could see me now. I hadn't really done much online in all that time (that I think would change much) so it appears temperamental... (unless it's something with my computer?).

EvilLS1
05-18-2004, 05:33 AM
Strange.. I just downloaded Firefox 0.8 to test it and its working fine for me. Maybe its a setting or something.. Have you changed any of the default browser settings?

Here's another possibility.. Maybe you're viewing a cached version of forumhome and thats why you don't see yourself? Did ya try ctrl + R to refresh forumhome?

Zelda-King
05-18-2004, 06:27 AM
No, I refreshed it with the refresh button. :D Anyway, I later went back in one of the chats on Firefox and again it didn't show me. I do think it's a local problem though, as I have seen Firefox work.

I changed like... 1-2 settings but I can't say which ones offhand (I'm on another computer right now) so later I'll revert the settings and see how I do with the default.

No one could see me though.

EvilLS1
05-18-2004, 06:53 AM
I changed like... 1-2 settings but I can't say which ones offhand (I'm on another computer right now) so later I'll revert the settings and see how I do with the default.

Ok, keep me posted. :)

Zelda-King
05-18-2004, 05:29 PM
I just tested something. It's early days to say for sure but this may be related to a personal online modification I did for Who's Online. Or at least I tried this once with a template reverted and then I could see myself. Does this refer to Who's Online? It's just I noticed people in the chat show in Who's Online as being in the 'Chat' but I have it so I'm untrackable.

EvilLS1
05-18-2004, 09:29 PM
Well, this shouldn't have any effect on whos online. vBulletin has chat.php defined by default so thats why you see them listed as in chat even though you haven't added that location.

Zelda-King
05-20-2004, 06:27 AM
Yeah, it turned out it's made no difference. I'm having trouble pinpointing the condition under which it works in Firefox for me or not. I think I'll get some staff/users in on helping me run further tests.

Fender963
05-23-2004, 09:00 PM
Question for you,

I first installed the vbxIrc hack and that worked fine. Now how do I go about getting that to work with this hack? When in the chat_chatbit template is says:
************* Add Chat Code Here ****************

What code do I add? I'm really confised. I think alot might be screwed up because I have vbxirc installed in /forums/chat/ where as this is supposed to go just in /forums/

Kyle

EvilLS1
05-23-2004, 11:26 PM
Kyle,
I wish I could help but I have no idea what it would take to integrate this hack with the other one b/c I don't use vbxirc.

************* Add Chat Code Here **************** should be replaced with the code for the chat applet (params etc). But since this hack wasn't designed to work with the other one I'm not sure what else would need to be done.

Dewayne

Erwin
05-24-2004, 01:04 AM
You can always embed your java chat applet into the forumdisplay template of a custom style, and make that style only appear for a particular forum - that way, you know how many people are viewing that forum - ie. chat - and you can even lift that information up to Who's Online of forumhome easily. :)

EvilLS1
05-24-2004, 01:24 AM
You can always embed your java chat applet into the forumdisplay template of a custom style, and make that style only appear for a particular forum - that way, you know how many people are viewing that forum - ie. chat - and you can even lift that information up to Who's Online of forumhome easily. :)
I actually had it set up like that when I used vb2 but removed it because it didn't work very well. Theres a few problems with doing it that way:
1) If the user remains in chat longer than the session timeout (15 min in my case) he will no longer be listed as chatting or even online b/c he is not actively browsing the site.
2) If the user who is chatting opens a new window and continues browsing your site, he is no longer shown as 'in chat'. Instead, his most recent location is shown.
3) If a user enters the chat page and then leaves the site, his name will still be listed as chatting for another 15 minutes or whatever the session timeout is.

With this hack the "whos in chat" list is updated every 60 seconds and users will be shown regardless if they're browsing other pages while chatting. :)

Fender963
05-26-2004, 04:10 PM
Hey EvilLs1,

Okay for some reason something just isn't working. When viewing the forum index even if there isn't anyone in the chat the Who's Chatting: is still supposed to display "No users are chatting." Correct?

Well not even this is showing up for me..... Can you please help me. Do I need to post some of my code for you to help me? I have gone through the instructions many times and it still isn't working.

Thank you,
Kyle

Loxias
05-26-2004, 06:38 PM
Just wanted to say thanks. Used this (https://vborg.vbsupport.ru/showthread.php?t=61149) mini-mod and changed the permission check to allow our subscription members access to the chat room. Working great!

EvilLS1
05-27-2004, 03:03 AM
Loxias,
Glad you like it. :)

Kyle,
Can post the last chunk of code that you added to index.php? It acts as if that code is missing. It shoud show "No users are chatting" when nobody is chatting. Anyway, I gotta hit the sack right now but I'll help you figure it out tomorrow.

Fender963
05-27-2004, 03:39 AM
I have uploaded my index.php file.

here is the code I added:

// Who's in chat
$chatdatecut = TIMENOW - 65;
$inchat=$DB_site->query("SELECT *
FROM " . TABLE_PREFIX . "chatters
WHERE chattime > $chatdatecut
ORDER BY username ASC");

if ($DB_site->num_rows($inchat)==0) {
$nobody = "No users are chatting.";
}

while ($chatting=$DB_site->fetch_array($inchat)) {

$chatusername = $chatting[username];
$chatuserid = $chatting[userid];

eval('$chatters .= ", ' . fetch_template('chat_chatters') . '";');
}
$chatters = substr($chatters , 2);
Just as the instructions said. I made no changes. Thank you for the help...

Kyle

EDIT: File removed by Boofo. vBulletin files cannot be posted here. Sorry. ;)

Fender963
05-27-2004, 02:44 PM
Dont worry about it EvilLS1, I figured it out. I'm an idiot. Thank you for the help though!

Kyle

EvilLS1
05-27-2004, 05:20 PM
Ok, glad ya got it sorted out. :)

moonclamp
05-27-2004, 07:28 PM
I've just added this and it works well ... except if a member has elected to be hidden he/she is still showing as online in the chatroom.

Amy ideas?

EvilLS1
05-27-2004, 07:31 PM
I've just added this and it works well ... except if a member has elected to be hidden he/she is still showing as online in the chatroom.

Amy ideas?
Yeah thats not a bug. I just didn't bother adding it because the hidden users will be listed in the chat's userlist anyway, so why hide them on forumhome? I didn't think it was necessary.

moonclamp
05-27-2004, 07:38 PM
My hidden users aren't worried about other members seeing them online.

They are more worried about showing online to non-members who have no access to chat.

Is this easy to change?

... thanks

EvilLS1
05-27-2004, 08:01 PM
Moonclamp,
I can give you a quick fix which will make it so that hidden users are never shown in chat (even to those who have permission to see invisible users).

In chat.php find:

$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)."')");
}


Replace it with:

if ($bbuserinfo[invisible]!=1) {
$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)."')");
}
}


I didn't test it but it should work.

moonclamp
05-27-2004, 08:07 PM
That'll do for me ~ I can always see who is there by going to online.php

Thank you

moonclamp
05-27-2004, 08:18 PM
except it didn't work ... and '$somestuff' should have been called '$some****' ;)

EvilLS1
05-27-2004, 08:21 PM
I had to use somestuff b/c the other is censored here. :p

Did you wait 60 seconds for the old session to expire before testing it? Strange.. It should work.

moonclamp
05-27-2004, 08:31 PM
My apologies ... it did work I was just being my usual impatient self

Many thanks for that :)

EvilLS1
05-27-2004, 08:32 PM
n/p. Glad it worked for ya. :)

94DROPTOPZ
06-05-2004, 09:29 PM
Will this work with PHP Mychat??

EvilLS1
06-05-2004, 09:33 PM
Will this work with PHP Mychat??
I don't see why not. As long as your phpmychat is included in the chat.php from the hack it should work. :)

94DROPTOPZ
06-05-2004, 09:36 PM
I don't see why not. As long as your phpmychat is included in the chat.php from the hack it should work. :)

Uh thank you very much! I'm not the "sharpest" knife in the drawer but I might try this one out...

EvilLS1
06-05-2004, 09:42 PM
Uh thank you very much! I'm not the "sharpest" knife in the drawer but I might try this one out...
Shouldn't be too difficult. Check the file called phpmychat.php in your main chat directory where you have phpmychat installed. It shows how to include phpmychat in another page.

RetroDreams
06-17-2004, 01:39 AM
I just upgraded my forums to vb3 from 2.2.8. Can anyone tell me the new code to make the chat.php only for certain usergroups?

EvilLS1
06-17-2004, 12:48 PM
I just upgraded my forums to vb3 from 2.2.8. Can anyone tell me the new code to make the chat.php only for certain usergroups?
In chat.php find this:

if (!$bbuserinfo['userid'])
{
print_no_permission();
}


Replace it with this:


if(!in_array($bbuserinfo['usergroupid'], array(X,X,X)))
{
print_no_permission();
}


In the code above where it says array(X,X,X) replace those Xs with the usergroup IDs for those that you want to allow access to chat. Members of all other usergroups will recieve a no permission message when viewing the page.

RetroDreams
06-17-2004, 02:52 PM
Thanks for bringing me up to speed!

EvilLS1
06-17-2004, 09:35 PM
Thanks for bringing me up to speed!
You're welcome. :)

InnerSelf
07-06-2004, 09:00 PM
i installed this one and its working good, but for getting to see the online people in the whos online i have to go trough the link inside the "who's online in chat",
But i have a link in the top of the forum to go to that chat also. But if i go to the chat trough that link he wont show the online user. Can i solve that?

EvilLS1
07-06-2004, 09:11 PM
i installed this one and its working good, but for getting to see the online people in the whos online i have to go trough the link inside the "who's online in chat",
But i have a link in the top of the forum to go to that chat also. But if i go to the chat trough that link he wont show the online user. Can i solve that?
As long as the link points to forums/chat.php it shouldn't make any difference. Can you give me a link to your site so that I can see it for myself?

InnerSelf
07-08-2004, 02:47 PM
i tried to make it still stand alone from this hack, but without eggdrop that is not possible, so i did like what is normal (boooring :p) and putten my irc code in the template :)

so its working, thnx!

RichieBoy67
07-18-2004, 10:06 PM
The wife (Internet Support Technician) seems to think you might have a corrupted IE installation. If you have the WinME CD, she suggests that you re-install IE. If you want, jumnp on the site and I will have her talk to you about it.

Go into your chat settings in you admincp and enable guest users...

RichieBoy67
07-18-2004, 10:07 PM
Here's a question... It says to place the code here to embed my chat... which code do I place there???

EvilLS1
07-18-2004, 10:38 PM
Here's a question... It says to place the code here to embed my chat... which code do I place there???

The code to embed the applet. You should find it in one of the html files that came with your IRC chat software.

Here's an example (jpilot).. Yours may be slightly different depending on what kind of IRC software you have, but it should start and end with < applet > tags.

<applet archive="jirc_nss.zip" code=Chat.class
width=500 height=325 >
<param name="CABBASE" value="jirc_mss.cab">
<param name="LicenseKey" value="asdf1234">
<param name="ServerPort" value="7000">
<param name="ServerName1" value="astro.ga.us.dal.net">
<param name="Channel1" value="whatever">
<param name="AllowURL" value="true">
<param name="AllowIdentd" value="true">
<param name="WelcomeMessage" value="Welcome to IRC chat!">
<param name="RealName" value="Optional">
<param name="NickName" value="$bbuserinfo[username]">
<param name="UserName" value="jirc">
<param name="isLimitedServers" value="true">
<param name="isLimitedChannels" value="true">
<param name="MessageCol" value="80">
<param name="BackgroundColor" value="silver">
<param name="TextColor" value="black">
<param name="TextScreenColor" value="white">
<param name="ListTextColor" value="red">
<param name="TextFontName" value="Arial">
<param name="TextFontSize" value="12">
<param name="ConfigNickOnly" value="true">
<param name="NickNChannelOnly" value="true">
<param name="LogoBgColor" value="blue">
<param name="BorderVsp" value="3">
<param name="DirectStart" value="true">
<param name="FGColor" value="black">
<param name="TitleBackgroundColor" value="silver">
<param name="TitleForegroundColor" value="blue">
<param name="InputTextColor" value="black">
<param name="InputScreenColor" value="white">
<param name="IgnoreLevel" value="3">
<param name="DisplayConfigRealName" value="false">
<param name="DisplayConfigServer" value="false">
<param name="DisplayConfigPort" value="false">
<param name="DisplayConfigMisc" value="false">
<param name="FilterKeys" value=":) :( :D :P :b ;) :p :? jcool">
<param name="FilterVals" value="smile.gif frown.gif biggrin.gif tongue.gif boids.gif icon_wink.gif icon13.gif confused.gif IRClogo.gif">
</applet>

RichieBoy67
07-18-2004, 10:48 PM
I have VBXirc chat.... I'm still not sure exactly what to add but thanks for the reply

EvilLS1
07-18-2004, 10:59 PM
I have VBXirc chat.... I'm still not sure exactly what to add but thanks for the reply

Correct me if I'm wrong, but I don't think VBXIRC is an actual chat software, but rather a hack that integrates PJIRC (http://www.pjirc.com/) 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.

GatorLCA
08-19-2004, 11:02 PM
Got everything installed and works fine, but it seems like some of my members aren't showing up when they are in the Chat room on the Who's In Chat. Not that people have gone in yet but me and the co-admin are showing up but not everyone, anything I need to do to fix it

EvilLS1
08-20-2004, 02:09 AM
GatorLCA,
I registered at your site to test it and it seems to be working fine for me. Keep in mind that if some users join your IRC channel via their own client that they will not show up as in chat on your forum home even though they're listed in the channel. In order for them to show up on your "Who's in Chat" list they must join the channel by using your web based chat client by visiting chat.php. If they're logged into your forum and logged in to chat through chat.php their name will be listed.

Dewayne

OrangeFlea
09-07-2004, 07:13 PM
Will this hack work with Digichat?

EvilLS1
09-07-2004, 08:18 PM
I'm not familiar with digichat but this one works with all embedded IRC applets. If digichat can be embedded into a template then it should work.

OrangeFlea
09-08-2004, 04:33 AM
I'm not familiar with the term: "irc applets"

Digichat is a java applet. It doesn't log onto IRC or use IRC servers from what I know of it.

Here's a site that uses it:

http://www.mswebpals.org/digi.htm

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.

EvilLS1
09-08-2004, 04:50 AM
I'm not familiar with the term: "irc applets"

Digichat is a java applet. It doesn't log onto IRC or use IRC servers from what I know of it.

Here's a site that uses it:

http://www.mswebpals.org/digi.htm

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.

Dewayne

Partybuster
09-27-2004, 11:44 PM
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.

EvilLS1
09-28-2004, 12:38 AM
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:

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:

<iframe src="$vboptions[bburl]/chat.php?do=extendsession" width=0 height=0 frameborder=0></iframe>


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.

Partybuster
09-28-2004, 10:34 AM
Thanks for the info, I will give it a try.

Partybuster
09-28-2004, 03:33 PM
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?

EvilLS1
09-28-2004, 07:31 PM
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.

JohnBee
11-24-2004, 06:24 PM
I also use vbxirc
I am very interested in getting this hack working with vbxirc, alot of users
use it, your instructions are not very clear though.

could someone please work throug it and post the code?

EvilLS1
11-24-2004, 07:56 PM
I also use vbxirc
I am very interested in getting this hack working with vbxirc, alot of users
use it, your instructions are not very clear though.

could someone please work throug it and post the code?

This hack wasn't really intended to be combined with other vb chat hacks. If you use a standard IRC chat applet (jpilot for example) the instructions should be very clear. I don't use vbxirc so I have no way to write the instructions based on that hack.

Maybe someone else who has got them working together can help.

intrloper9
12-12-2004, 07:14 PM
EvilLS1,

I've read about your hack and I just went through all 6 pages of this forum. Your replies are very helpful and it's good to know a person like you is here to walk us all through these intergrations. :nervous:

I'm a webmaster of a big website that's going through a massive overhaul (design and restructuring) in 2005. The website is www.chuckpalahniuk.net. Right now, we're using a portal for our chat room into mIRC. Check it out here: www.chuckpalahniuk.net/chat/

For 2005, I'd like to go with something completely new and customized. I'll list what we'd like to attempt, and then you can hopefully tell me the best way to do it, and if it's even possible.

1) I'd like a good chat room on our site that doesn't use mIRC. I only say this because the site will be a paysite in 2005, and I don't want people sneaking into our chat room through the "back door" of mIRC. (if there's a way to limit this though, say with that User Groups / Members Only option, I wouldn't mind sticking with mIRC)


2) I love this new "Who's Online" feature for the Chat Room, but is there anyway to utilize on my site besides just in the forums? See, we're creating a User Box that will appear on every page of the entire website. This box will have a number of handy links, but will also be a way to login to the Forums, see if you have PMs awaiting, and will also be a way to "Join" the site if you're not a member.

But the feature I'd also love it to have is a "There are currently 5 Members chatting" type notification. Like your hack, it would refresh every 60 secs, and, if clicked, would open up our Chat Room page.

So is there anyway to intergrate this hack of yours to non-forum pages? Like, will intergrating the proper code into this handy "User Box" allow the "Members Currently Chatting" option to show up on all pages of the entire site?


3) And last, I'd like to have a directory of all the people currently IN the chat room once a member goes to our chat page (but before they actually enter the room). The best example I can give of this is on www.suicidegirls.com/chat/. It's a cool way to see which forum members are chattinge before you launch the room. Sort of like a lobby that tells you who's checked in before you enter the hotel. :cheeky:

That's it. Hope you can answer each one of these.

-Dennis
www.chuckpalahniuk.net

EvilLS1
12-12-2004, 11:06 PM
1) I'd like a good chat room on our site that doesn't use mIRC. I only say this because the site will be a paysite in 2005, and I don't want people sneaking into our chat room through the "back door" of mIRC. (if there's a way to limit this though, say with that User Groups / Members Only option, I wouldn't mind sticking with mIRC)

With this hack you can control who (which usergroup) has access to your chat.php page but people could still join your IRC channel with their own chat client. No way to limit those by usergroup since the IRC channel is not connected with vbulletin in any way. The only way I can think of to have complete vbulletin based control over which users can access your chat is to ditch IRC and switch to a vbulletin database driven chat like vBchat. These are a bit slower than IRC and use more of your own resources but should give you the control that you want.


2) I love this new "Who's Online" feature for the Chat Room, but is there anyway to utilize on my site besides just in the forums? See, we're creating a User Box that will appear on every page of the entire website. This box will have a number of handy links, but will also be a way to login to the Forums, see if you have PMs awaiting, and will also be a way to "Join" the site if you're not a member.

But the feature I'd also love it to have is a "There are currently 5 Members chatting" type notification. Like your hack, it would refresh every 60 secs, and, if clicked, would open up our Chat Room page.

So is there anyway to intergrate this hack of yours to non-forum pages? Like, will intergrating the proper code into this handy "User Box" allow the "Members Currently Chatting" option to show up on all pages of the entire site?


That is possible but would require a completely different hack. I believe it would require adding an extra query to each page aswell which isn't worth it IMO.


3) And last, I'd like to have a directory of all the people currently IN the chat room once a member goes to our chat page (but before they actually enter the room). The best example I can give of this is on www.suicidegirls.com/chat/. It's a cool way to see which forum members are chattinge before you launch the room. Sort of like a lobby that tells you who's checked in before you enter the hotel. :cheeky:


Same as above... It can be done but would require a completely separate hack. You'd need to make a post in the request forum explaining exactly what you want (or just copy & paste this one). Then if a coder is interested in your idea and wants to add this to his own site he will make the hack and share it with you.

Dewayne

Protoman
05-18-2005, 04:30 AM
I made it refresh every 15 minutes instead of every 30 seconds, but now it says nobody is chatting. any way to make it wait 15 minutes before erasing the active list??

sambacb
06-30-2005, 08:27 PM
************ Add Your Chat Code Here ************
this step is very complicated!!!

Dstephan
11-07-2005, 04:24 AM
Has anyone got this working with the JPIRC hack and vB 3.5? This is exactly what I need. I appreciate any help!

srpompon
02-15-2006, 12:24 AM
Hello friends,

In my 3.5.3 the index.php say
Fatal error: Call to a member function on a non-object in /www/docs/orchidswamp.com/public_html/index.php on line 345

this line is:

$inchat=$DB_site->query("SELECT * FROM " . TABLE_PREFIX . "chatters WHERE chattime > $chatdatecut ORDER BY username ASC");

anyone helpme??

Thanks!!