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
[Add on] Who's Chatting on Forum Home Page for Sigmachat Details »»
[Add on] Who's Chatting on Forum Home Page for Sigmachat
Version: 1.00, by ChurchMedia ChurchMedia is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 07-20-2004 Last Update: Never Installs: 3
 
No support by the author.

Add-on by ChurchMedia
Who's Chatting on Forum Home Page for Sigmachat

You must have the SigmaChat Complete Integration & Authentication hack installed first and be signed up with SigmaChat, of course.

This will add a "Who's Chatting" box on your forum home page.

Just like "Who's Online", if you click on "Who's Chatting" it will take you to a page with just the chatters.

If you are logged in, there is a link to the chat room. If you are not logged in, there is a link to register.

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Note that the problem of having a space in your user name is corrected. However, if the user name has an _underscore_ in it there may be problems.
To remove the feature that replaces underscores with spaces, remove this line (Line 57 in chat_home.php):

PHP Code:
$username str_replace("_"" ",$username); 
1 file change
1 new template
2 template changes

WARNING #1: This hack WILL speed up your Who's Chatting hits! If you seriously want Who's Chatting on your front page, keep in mind that you may have to buy extra hits! Otherwise, don't install this hack! I've found that it increased my chat room traffic dramatically, so I think it's worth buying the hits.

WARNING #2: When you do run out of Who's Chatting hits, your forum home page will break (you will get a blank page)! If this happens, in forum/index.php FIND
PHP Code:
include('chat_home.php'); 
and replace it with
PHP Code:
//include('chat_home.php'); 
Then buy more chat hits. When your upgrade goes through, remove the // from the line above to reactivate the hack.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-21-2004, 06:01 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've put your one-liner in php tags so unlicensed users can't see it - better safe than sorry Thanks for sharing your work with the community once again !
Reply With Quote
  #3  
Old 07-21-2004, 06:45 PM
Bryan Ex's Avatar
Bryan Ex Bryan Ex is offline
 
Join Date: Feb 2004
Location: Canada
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This or at least a number display for chatters has been requested for a long time but won't this consume your "Who's chatting" hits from Sigmachat at a drastic rate? If it's only refreshed every so often (10 minutes or longer) I'll install this afternoon but if it's live and refreshes with every page view... ouch!
Reply With Quote
  #4  
Old 07-21-2004, 07:36 PM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dean C
I've put your one-liner in php tags so unlicensed users can't see it - better safe than sorry Thanks for sharing your work with the community once again !
Thanks, Dean!
Reply With Quote
  #5  
Old 07-21-2004, 08:04 PM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bryan Ex
This or at least a number display for chatters has been requested for a long time but won't this consume your "Who's chatting" hits from Sigmachat at a drastic rate? If it's only refreshed every so often (10 minutes or longer) I'll install this afternoon but if it's live and refreshes with every page view... ouch!
Honestly, I didn't know about the who's online hits! Opps! I have a Platinum account and it's showing 5500 hits left -- but I didn't buy any extra hits (???). Is it 100 free hits per month?

I don't see a way around the problem of it hittng everytime someone visits the home page... Personally, my chat room is so popular I'm willing to spend the extra money for the hits if I have to.
Reply With Quote
  #6  
Old 07-21-2004, 08:17 PM
Bryan Ex's Avatar
Bryan Ex Bryan Ex is offline
 
Join Date: Feb 2004
Location: Canada
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They allow you 146 hits per day I think it is (carried forward) which works out to about 1 per every ten minutes 24/7. If there was a way to cache the who's online data for 10 minute intervals it would be just about perfect. I believe that once their new release goes final that the updated integration script will include some type of feature like that but being so close to things changing they haven't bothered. I made a similar error by placing the total number of chatters next the chat link in the nav bar and a few days later I was out of hits for the rest of the month. Whoops...lol
Reply With Quote
  #7  
Old 07-22-2004, 04:39 PM
JustAskJulie JustAskJulie is offline
 
Join Date: Nov 2002
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't think there was a limit on paid accounts.
Reply With Quote
  #8  
Old 07-22-2004, 05:13 PM
Bryan Ex's Avatar
Bryan Ex Bryan Ex is offline
 
Join Date: Feb 2004
Location: Canada
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is indeed... it's just that most paid accounts get more than they use and they are compounded over time.

https://vborg.vbsupport.ru/showpost....3&postcount=69
Reply With Quote
  #9  
Old 07-28-2004, 03:01 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right -- you do have to pay for the Who's Chatting hits. My forum burned through 5000 hits in a few days. When you run out of hits, the forum home page BREAKS with this hack (blank page). You have to disable the hack, buy more hits and re-enable it when your upgrade goes through.

I'm still deciding if it's worth it, but I think it is. Chat traffic when up dramatically when I installed this hack.

When I have more time, I'll look into caching the info to slow down the hits.
Reply With Quote
  #10  
Old 07-28-2004, 03:18 AM
tamarian tamarian is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Best way, IMHO, is to cache the who's on line stuff as a cron job, once every 6 minutes
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 06:20 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.11064 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_php
  • (2)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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