How to reset category 'discussions' count, unban auto-banned user(by flood control), and one more.
I had a spam attack today that we actually dealt with nicely. On smf i had a system where the user needed approval to post the first post, after that he could post freely, that and questions in registration barred bots for good.
I only recently found the questions for registrations plugin for vanilla, and I'm not entirely sure how to implement the first one, but i found a work around for the moment.
For now, basically i have 3 questions:
Even after the spam posts were deleted the categories kept their huge number of post counts. I did it the old way, and reset the record in the db to the actual number of discussions.
But is that the best, only way?
Also, the flood control is great, it helped a lot, but I was looking into the code, and instead of temporary banning for x seconds, i'd want a perma ban of "manual" type so later on i could reverse or at least have it listed in the users panel.
It's uncool when vanilla does things in the back and it's not exposed in the dashboard, i think.
That said, if a user gets this temporary ban for x seconds, how can i unset it?
I'm still digging through the code but i haven't found where the users are listed, or how the countdown works, any help is appreciated.
Finally, the Q&A plugin, which is great btw, it sends a notification to the user saying, 'hey you have a question that needs your attention', something along those lines, and it keeps doing that until the user marks a question as answered or not. At least that's how it seems to works as far as i can tell.
Now removing that notice is simple enough, i can just delete the code that does that, but any ideas on how to get it to show only once per session?
Any comment on the above is welcome.