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

I am a Super admin and still I Cannot Delete a question from my site?

+2 votes
153 views
asked Nov 19, 2016 in Q2A Core by Mayuresh

I have a Q2A site but suddenly spam started coming! Some Essay writing service started spamming me. I deleted those users and blocked their IP addresses. Still, they register with new IP's.But now a new problem has arrived, one of the spammers is spamming by posting anonymous  questions and I already had set "only registered users can post a question". But somehow they managed to post it as anonymous also I am not able to delete their question after hiding it.

You can see I can only reshow that question ^ .

Q2A version: 1.7.4

1 Answer

+7 votes
answered Nov 19, 2016 by pupi1985

Regarding not being able to delete posts. In short, Q2A will not allow you to delete posts that have children posts. E.G.: you wont be able to delete a question that has comments or answers and you won't be able to delete answers that have posts. So first you'll have to delete all children and then you should be able to delete the post itself. Ami has written a plugin to overcome this limitation that would allow you to delete all posts and their children. I've never tested it but I guess it works fine: https://github.com/amiyasahu/q2a-delete-hidden-posts

Regarding anonymous users posting questions, answers and comments. I think no "only registered users can post a question" setting exists. You can configure this in the admin/permissions section of the site. The options are called "Asking questions", "Answering questions" and "Adding comments". Just make sure to set them to "Registered users with email confirmed". Alternatively, you can set it to "Registered & email confirmed & enough points". That way they will have to play with the site for a while before posting (e.g.: casting votes) which will make the process harder for spammers and hopefully they will give up.

commented Nov 21, 2016 by Mayuresh
edited Nov 21, 2016 by Mayuresh
Nope, it is not handle anonymous, it is an anonymous user itself!
commented Aug 23 by Shrisun
May be first he was registered then deactivated his/her account...
...