vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Allow Specified Number of Guests on Forum (https://vborg.vbsupport.ru/showthread.php?t=57455)

Gary King 10-21-2003 11:11 PM

Quote:

Originally Posted by Remi
HI :)

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

Thanks

I haven't tested this yet, but try the following:

open global.php and before // check to see if there are too many guests online
add
PHP Code:

if ($bbuserinfo['usergroupid']==AND $loadlimit 30)
{
    eval(
"standarderror(\"".gettemplate('error_toomanyguests')."\");");
    exit;


It will display the error_toomanyguests template when a guest visits with server load at more than 30; you can simply change the template here, and then create your own if you want a different message :)

dethfire 10-21-2003 11:26 PM

hey gary, my board says that 89 guests are still active. Is that just because they are at my homepage? How can I make it so the number is true to the number of guest viewing my board? Make sense?

Gary King 10-21-2003 11:35 PM

That would require a different hack.

dethfire 10-31-2003 02:56 PM

hey gary, i thought I got this working, but now it doesn't at all. I reinstalled the hack, did the changes posted in this thread and it just doesn't work. I have 142 guests online, I set the limit to 2 and I logout and can still browse the forums. thanks for your help!

Gary King 10-31-2003 06:01 PM

Did it work before the update?

dethfire 11-01-2003 01:09 AM

Yeah, but obviously I had the problem before, but it more-or-less worked.

Gary King 11-01-2003 01:53 AM

What do you mean by "but it more-or-less worked"?
Can I have the URL to your forums?

dethfire 11-01-2003 02:03 AM

It did work, except for the minor problem mentioned above a week or two ago.

http://www.physicsforums.com

Gary King 11-01-2003 02:22 AM

Quote:

Originally Posted by dethfire
hey gary, my board says that 89 guests are still active. Is that just because they are at my homepage? How can I make it so the number is true to the number of guest viewing my board? Make sense?

This one?

dethfire 11-01-2003 03:35 AM

Post #18


All times are GMT. The time now is 07:34 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.01078 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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