![]() |
Limit guests on forum
Anyone want to code me a hack that would limit the number of guests allowed on the site? It would be nice to have the ability to limit guests in a proportion to registered users (5 users for every 1 guest), but a static number would be nice too.
Thanks! |
If you want quick and don't mind dirty, you could just hijack the 'Simultaneous Sessions Limit' setting (in 'Server Settings and Optimization Options') for this purpose. Set this to however many guest sessions you want to allow, then find in includes/sessions.php:
PHP Code:
PHP Code:
But of course this is not the way to go if you're already using this setting to limit the number of total sessions (guests and members). |
could you also do this with registerd users instead of guests? and if so, how.
|
All times are GMT. The time now is 10:53 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|