Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: sirfpsycho on July 27, 2020, 02:27:40 AM

Title: Hide section
Post by: sirfpsycho on July 27, 2020, 02:27:40 AM
Hello, is there any method to hide section? For example, I want to hide adult section from normal user. If anyone enable 18+ option then he can see adult section. Other forum has this option. Hope smf has has also but I am not getting how to setup it. Please describe. Thank you
Title: Re: Hide section
Post by: shadav on July 27, 2020, 02:32:37 AM
you could set up a member group and assign 18+ to it then set the board permissions to only allow that member group access
Title: Re: Hide section
Post by: Kindred on July 27, 2020, 03:50:50 PM
There was a mod for 1.1.5 that restricted access by age....  but it was never updated for 2.0.x

You might find someone willing to look into modifying it
https://custom.simplemachines.org/mods/index.php?mod=1260
Title: Re: Hide section
Post by: Arantor on July 28, 2020, 08:27:54 AM
Quote from: shadav on July 27, 2020, 02:32:37 AM
you could set up a member group and assign 18+ to it then set the board permissions to only allow that member group access

This. Make the group joinable, job done.
Title: Re: Hide section
Post by: sirfpsycho on August 02, 2020, 10:44:32 PM
thank you for all who suggest me. But group joining is little hard to find for new users. Is there any option so that I can place a link to join group? so that I can place that url in profile with the name of enable/disable 18+

Or if anyone click on that particular board then it says it is restricted. join group to see the content?