vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [Add on] Who's Chatting on Forum Home Page for Sigmachat (https://vborg.vbsupport.ru/showthread.php?t=67456)

ChurchMedia 07-20-2004 10:00 PM

[Add on] Who's Chatting on Forum Home Page for Sigmachat
 
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.

Dean C 07-21-2004 06:01 PM

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 :D!

Bryan Ex 07-21-2004 06:45 PM

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!

ChurchMedia 07-21-2004 07:36 PM

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 :D!

Thanks, Dean!

ChurchMedia 07-21-2004 08:04 PM

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.

Bryan Ex 07-21-2004 08:17 PM

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

JustAskJulie 07-22-2004 04:39 PM

I didn't think there was a limit on paid accounts.

Bryan Ex 07-22-2004 05:13 PM

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

ChurchMedia 07-28-2004 03:01 AM

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.

tamarian 07-28-2004 03:18 AM

Best way, IMHO, is to cache the who's on line stuff as a cron job, once every 6 minutes :)


All times are GMT. The time now is 09:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00986 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete