Not Solved [How To?] Make entire forum readonly
#1
Not Solved
Is there a way to make a board read only? I know that one can take the board offline, but what I need to do is to allow the board to be viewed, but to disallow all posting and commenting for the times when admins or mods are available to keep an eye on things.
Reply
#2
Not Solved
I am not sure if there is a settings that already does this globally. But you could manually make each forum read only in their permissions section. You might have to make a plugin to loop through all the forums and turn on/off write access to do it as a one button click.
Reply
#3
Not Solved
(2017-03-26, 03:03 PM)metulburr Wrote: I am not sure if there is a settings that already does this globally. But you could manually make each forum read only in their permissions section. You might have to make a plugin to loop through all the forums and turn on/off write access to do it as a one button click.

Thank you for the suggestion. I'm hoping to make the process "one click", but perhaps that is asking too much.
Reply
#4
Not Solved
sql query like below can be used
UPDATE `mybb_forums` SET `open`= 0 WHERE `open` = 1
see also common sql queries guidance
Reply
#5
Not Solved
(2017-03-26, 04:32 PM).m. Wrote: sql query like below can be used
UPDATE `mybb_forums` SET `open`= 0 WHERE `open` = 1
see also common sql queries guidance

Thanks. I kind of figured that was the only way to go. I so much appreciate your help.
Reply
#6
Not Solved
(2017-03-26, 04:32 PM).m. Wrote: sql query like below can be used
UPDATE `mybb_forums` SET `open`= 0 WHERE `open` = 1
see also common sql queries guidance

Note that you most likely have to rebuild the forum cache and forum permission cache for this to work properly. ACP->Tools->Cache Manager.
Reply
#7
Not Solved
i am assuming that to reverse this and open all forums to be read and write would be?

UPDATE mybb_forums SET open= 1 WHERE open = 0
Reply
#8
Not Solved
(2017-03-26, 08:40 PM)metulburr Wrote: i am assuming that to reverse this and open all forums to be read and write would be?

UPDATE mybb_forums SET open= 1 WHERE open = 0

That would switch it back to what it originally was. Permissions are still required for posting replies and threads. You'd also need to update the forum and forum permission caches.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)