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
  #32  
Old 05-18-2004, 05:29 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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.
Reply With Quote
  #34  
Old 05-20-2004, 06:27 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #35  
Old 05-23-2004, 09:00 PM
Fender963 Fender963 is offline
 
Join Date: May 2004
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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
Reply With Quote
  #37  
Old 05-24-2004, 01:04 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #38  
Old 05-24-2004, 01:24 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 Erwin
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.
Reply With Quote
  #39  
Old 05-26-2004, 04:10 PM
Fender963 Fender963 is offline
 
Join Date: May 2004
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #40  
Old 05-26-2004, 06:38 PM
Loxias Loxias is offline
 
Join Date: Dec 2001
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wanted to say thanks. Used this mini-mod and changed the permission check to allow our subscription members access to the chat room. Working great!
Reply With Quote
  #41  
Old 05-27-2004, 03:03 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 11:22 PM.


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.09282 seconds
  • Memory Usage 2,310KB
  • 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
  • (1)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
  • (4)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