Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
985 views
in Q2A Core by
edited by
I want only registered users to be able to ask a question but I'd like for them to be able to fill the first page, view the second page (similar questions) and if they clicked on "My question is different" then be asked to login/register. What you think would be the best way to do this?

I was thinking about removing the login obligation to ask question in the admin panel and then, in the code find how to force the login anyway before the last question page. Is that the best approach?

1 Answer

+2 votes
by
 
Best answer
Here's what I did finally. I moved the code initializing the $permitError variable and the $pageError in qa-ask.php where stage=3. This way, the logic of the overall persmission isn't changed, just when it is done. That did the trick!
...