dopetalk

Technology => SMF Forum Code Modifications => Topic started by: regular-mods on September 14, 2015, 01:53:19 PM

Title: Password Protect Boards
Post by: regular-mods on September 14, 2015, 01:53:19 PM
http://custom.simplemachines.org/mods/index.php?mod=2873

This modification allows you to set a password on a per board basis.  Users will be required to enter the password on the board index prior to being able to view any of that board's content.

Administrators and Moderators on that board (global moderators included) are exempt from having to enter the password.

This modification does not protect child boards.



to make this fit, I set the advanced emulation level to 2.0.1

made a manual change to ee Sources/Load.php: b.id_theme, b.override_theme, b.count_posts, b.id_profile, b.redirect
by adding , b.passwd.

and realigned the target in Sources/Subs-Boards.php

... and now it's on.
Title: Re: Password Protect Boards
Post by: Chip on June 14, 2021, 10:23:34 AM
To make this work for child boards, don't set the emulation level first
SimplePortal 2.3.6 © 2008-2014, SimplePortal