Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
Gossamer Forum
:
Development, Plugins and Globals
:
Limit number of users
Previous Thread
Next Thread
Print Thread
View Threaded
Apr 28, 2004, 4:45 PM
telemachus
User
(296 posts)
Apr 28, 2004, 4:45 PM
Post #1 of 5
Views: 2994
Shortcut
Limit number of users
Would it be possible to set limits on the number of guests and members able to view the forum at any one time?
Jason
Apr 29, 2004, 8:29 AM
agaffin
User
(104 posts)
Apr 29, 2004, 8:29 AM
Post #2 of 5
Views: 2913
Shortcut
Re: [wickedmoon] Limit number of users
In reply to
Would something like this work? Say, put it at the very top of category_view and the forum templates?
Code:
<%if users_online > 5%>
<p>Sorry, too many users online, come back later!</p>
<%else%>
(Your normal category/forum view code here).
<%endif%>
Apr 29, 2004, 10:19 AM
telemachus
User
(296 posts)
Apr 29, 2004, 10:19 AM
Post #3 of 5
Views: 2907
Shortcut
Re: [agaffin] Limit number of users
In reply to
If so, can someone tell me the minimum number of templates this change would need to be made in?
Jason
Apr 29, 2004, 10:24 AM
agaffin
User
(104 posts)
Apr 29, 2004, 10:24 AM
Post #4 of 5
Views: 2910
Shortcut
Re: [wickedmoon] Limit number of users
In reply to
category_view.html
forum_view.html
at a bare minimum. To cover people who might've bookmarked specific posts, add:
post_view_flat.html
post_view_threaded.html
May 9, 2004, 8:23 AM
telemachus
User
(296 posts)
May 9, 2004, 8:23 AM
Post #5 of 5
Views: 2872
Shortcut
Re: [agaffin] Limit number of users
In reply to
Could this code be made to distinguish between users logged in and guests? eg allow an unlimited number of guests, but limit users logged in.
Jason
Previous Thread
Next Thread
Print Thread
View Threaded