miniBB ®

miniBB

®
Support Forums
  
 · Start · Sign in · Register · Search · Statistics · File Bank · Manual ·
Re-cycled miniBB Support Forums / Re-cycled /  
 

Is it possible to make all forums ONLY viewable to registered users?

 
Author Februs
Partaker
#1 · Posted: 26 Jul 2025 01:14
I know that it's possible to make a particular forum only visible to a set of defined users but is it possible to make a forum only visible to registered users in general. In other words, users who aren't logged in can't view the contents of a particular forum.

Author tom322
Active Member
#2 · Posted: 30 Jul 2025 18:40
From the manual:

If you want to exclude some forum from «Recent discussions» list, you can set it in the bb_specials array $lastOut. For example: $lastOut=array(6); excludes forum with ID 6 from «Last discussions» list on the first page. It's not necessary to add this new value if you don't need this.
So you can try something like:

if ($user_id==0) $lastOut=array(6);

Author Paul
Lead Lead Developer
#3 · Posted: 4 Aug 2025 13:14
Here's a topic with some solutions and codes you could try out for your purpose. Let us know if something of this helped:

Guests should not be able to even view the forums / Disable viewing of /hide forums unless logged in

The idea behind it is to manipulate with $clForums / $clForumsUsers arrays on the fly — the code provided on the second page of the topic above adds any logged user to the allowed array, at the time unlogged users don't see the closed forum at all.

Author tom322
Active Member
#4 · Posted: 6 Aug 2025 18:04
Yes, that's a better and complete solution from Paul's link.

Re-cycled miniBB Support Forums / Re-cycled /
 Is it possible to make all forums ONLY viewable to registered users?
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.