Gossamer Forum
Quote Reply
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
Quote Reply
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%>
Quote Reply
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
Quote Reply
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
Quote Reply
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