|
I've managed to create a duplicate account on my osqa installation (http://ask.soapboxcore.com) and since I can't delete accounts, I tried suspending the duplicate account. I was hoping it would hide the suspended user from the user list, but it kept the account there with suspended across the image. Is there an option to hide suspended users from the user list? |
|
There's no option for hiding suspended users, but you can filter them from the query in the views. You can edit the osqa/forum/views/users.py file and edit this line:
and change it into this:
I prefer letting the administrators (superusers) to see the suspended users, and hide the suspended users only from the others, so I changed it into:
Hope that helps. |
|
Hi, afaik there's not an option yet to hide suspended users, but as I was having trouble with some nasty casino/poker spammers I figured out a little (hopefully temporary) solution. Please note:
Find the following file in your site's directory tree There you'll find the following code: Sorry for the pastebin link, I couldn't escape html. which you need to rewrite into something like this Hope this helps. @kirbuchi: Essentially, you're hard coding the page to not display suspended users. That works, but not for everyone. I have not looked too deeply into the code, but when the call is made to the database, I wonder if there is an option/parameter to only pull non-suspended users. If there is, perhaps a preference can be added to turn it on or off.
(03 Nov '10, 19:09)
Mark Phipps
@Mark yeah I know, it works for me but I'd like the solution you propose much better. If you figure it out please let me know.
(03 Nov '10, 23:50)
kirbuchi
We are getting this casino spam as well. I would also like to see a solution to this.
(04 Nov '10, 18:43)
pgardiye
|