Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+7 votes
in Q2A Core by
edited by

We have a need to set a "read only" mode forum.

Meaning all Questions/Answers/Comments are still available to read, while making it impossible to change any data. Also it should not be possible to register any new users or sign in.

Is there any way of doing this?
So far I considered using the Admin Settings access tab, but I'm not sure it will cover all my needs.

Q2A version: 1.8.6

1 Answer

+2 votes
selected by
Best answer

Based on your explanation, all you want to do is to block the posting of questions, answers and comments. This can be done with a filter module. Just implement the three methods there and make sure to force an error.

However, the issue is that a person will try to answer and THEN they will see the error. So I would complement this by:

  • Adding a notice that shows the site as read-only
  • Using a layer to remove the ask button
  • Using a process module to redirect the user away from the ask page (e.g.: if (qa_request() === 'ask') { qa_redirect('') }

Note I wouldn't know what the impact would be of having a redirect on the ask page from a SEO perspective.