Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Who's in chat on forumhome.. (No eggdrop) Details »»
Who's in chat on forumhome.. (No eggdrop)
Version: 1.00, by EvilLS1 EvilLS1 is offline
Developer Last Online: May 2021 Show Printable Version Email this Page

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.

Comments
  #72  
Old 09-07-2004, 07:13 PM
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this hack work with Digichat?
Reply With Quote
  #73  
Old 09-07-2004, 08:18 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #74  
Old 09-08-2004, 04:33 AM
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #75  
Old 09-08-2004, 04:50 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OrangeFlea
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
Reply With Quote
  #76  
Old 09-27-2004, 11:44 PM
Partybuster Partybuster is offline
 
Join Date: Dec 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #77  
Old 09-28-2004, 12:38 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Partybuster
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:
Code:
<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.
Reply With Quote
  #78  
Old 09-28-2004, 10:34 AM
Partybuster Partybuster is offline
 
Join Date: Dec 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the info, I will give it a try.
Reply With Quote
  #79  
Old 09-28-2004, 03:33 PM
Partybuster Partybuster is offline
 
Join Date: Dec 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #80  
Old 09-28-2004, 07:31 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Partybuster
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.
Reply With Quote
  #81  
Old 11-24-2004, 06:24 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05104 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete