Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

What would be the best way to change the login obligation after the similars questions page has been shown?

+1 vote
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?
asked May 16, 2011 in Q2A Core by Mélanie
edited May 16, 2011 by Mélanie

1 Answer

+2 votes
 
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!
answered May 16, 2011 by Mélanie