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

Reply
 
Thread Tools
Allow Specified Number of Guests on Forum Details »»
Allow Specified Number of Guests on Forum
Version: 1.00, by Gary King Gary King is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-27-2003 Last Update: Never Installs: 4
 
No support by the author.

What does this hack do?

This hack allows you to specify how many guests you want to allow to browse your forums simultaneously. If the number of guests is more than the amount you specified, then the new guests will receive an error message stating that there are too many guests browsing the forums. The new guests will be able to browse the forums again when some of the other guests have left.

This hack can drastically reduce your server load, allowing only members to completely enjoy the freedom of being able to browse the forums without having any messages saying there are too many members online

Enjoy!

Show Your Support

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

Comments
  #12  
Old 09-28-2003, 06:08 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ethics
Actually, I logged off and became a guest by default. I wasn't seeing this message at all, and was able to see my forum.
When it says there are 39 guests online, that's not entirely true - it just means there were 39 guests in the past amount of time you specified for the cookie timeout.

This hack actually checks the real number of guests currently browsing the forums. If you want, though, I can help you raise the time frame to be longer.
Reply With Quote
  #13  
Old 09-29-2003, 12:50 AM
ethics ethics is offline
 
Join Date: Feb 2002
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, right now I have the following:

There are currently 16 members and 41 guests on the boards.

These bots and "guests" have been killing me lately, which is why I thought your hack would help out and save me!

Maybe I did something wrong? I DID set the value (in value field) in the DB to 5 though, was I supposed to? There were no instructions to do so but it just seemed logical.
Reply With Quote
  #14  
Old 09-29-2003, 01:48 AM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ethics
Well, right now I have the following:

There are currently 16 members and 41 guests on the boards.

These bots and "guests" have been killing me lately, which is why I thought your hack would help out and save me!

Maybe I did something wrong? I DID set the value (in value field) in the DB to 5 though, was I supposed to? There were no instructions to do so but it just seemed logical.
Yes, you did it right.
Reply With Quote
  #15  
Old 09-29-2003, 03:15 PM
ethics ethics is offline
 
Join Date: Feb 2002
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, if you get a chance, take a peak at http://globalaffairs.org/forum and tell me what you see as a guest.
Reply With Quote
  #16  
Old 09-29-2003, 06:33 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ethics
Well, if you get a chance, take a peak at http://globalaffairs.org/forum and tell me what you see as a guest.
You're right in that I don't see the error message, but that's most likely because the other guests who seem to be online in the Who's Online, haven't really been active in the past few seconds (so who aren't really actively browsing your forums at the moment.)

If you want, you could open up global.php, and find
PHP Code:
$datecut=time()-5
Replace it with
PHP Code:
$datecut=time()-$cookietimeout
Then it will work the way you wanted it to
Reply With Quote
  #17  
Old 09-29-2003, 10:43 PM
ethics ethics is offline
 
Join Date: Feb 2002
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, will definitely try this out.
Reply With Quote
  #18  
Old 10-19-2003, 04:26 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice to to see this working
Reply With Quote
  #19  
Old 10-21-2003, 10:31 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey gary, my members and I will get this error message periodicly even though we a logged in. Any ideas?
Reply With Quote
  #20  
Old 10-21-2003, 10:48 PM
Remi Remi is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HI

Is there a way to modefy this hack to say ( If the load is higher that 30.00 allow 0 guests ).

Thanks
Reply With Quote
  #21  
Old 10-21-2003, 11:04 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dethfire
hey gary, my members and I will get this error message periodicly even though we a logged in. Any ideas?
Re-download the instructions; I've updated them, thanks for reporting this
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 10:51 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.07013 seconds
  • Memory Usage 2,308KB
  • 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_php
  • (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