Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
592 views
in Q2A Core by
Hi!

I found this old thread, I tried it, but it won't work with 1.5.2.

The problem is when you log in - the content won't show up. (so it works perfectly, when you didn't logged in).

So how could you solve it? I'm not good with php :S

BR,

Thomas
Q2A version: 1.5.2
related to an answer for: How to require login to view any content

1 Answer

+1 vote
by

Create a plugin with a process module. Include an init_page(...) function which checks the page request and whether a user is logged in. If not, do a redirect.

...