The add-on considers the user spam banned if their user_id is in xf_spam_cleaner_log. If you truncate that table or somehow remove an user from it then the user will show on the list. Also, if you use another add-on to identify and ban spam users then their user_id may not appear in xf_spam_cleaner_log.Yjere's no uder ID, just the user name.
$hideSpamUsers = $this->options()->andrewHideSpamUsers;
If($hideSpamUsers == 1)
{
$users = $finder
->with('Ban')
->with('SpamCleanerLog',false)
->where('is_banned',1)
->where('SpamCleanerLog.user_id', null)
->order('Ban.ban_date','DESC')
->fetch();
}
else
{
$users = $finder
->with('Ban')
->where('is_banned',1)
->order('Ban.ban_date','DESC')
->fetch();
}
I do, yes, on one forum where the new option isn't working I am using the Easy User ban addon by Siropu.Added option in admin panel to hide users banned by spam cleaner
How do spam users show up under Siropu's add-on? Do you know if it users the built in spam cleaner? I can add whatever method his add-on uses to my add-on, which is probably easier than Siropu using a table he doesn't currently use.I do, yes, on one forum where the new option isn't working I am using the Easy User ban addon by Siropu.
Easy User Ban 2 by Siropu
This add-on allows you and your moderators to manage bans very easily from the front-end. You can ban users for x hours, days, months or until a specified date. Features Link to quick ban/unban users directly from their profile, thread posts...xenforo.com
I can confirm that the new option works just fine on 3 other forums that do not use Easy Ban. And if I disable Easy Ban on that one forum, your new option works perfectly.
I will post in the Easy Ban thread. Perhaps Siropu can modify his addon to make it compatible.
Sorry, I don't know. Using his addon, the xf_spam_cleaner_log shows only the username, not the user_id. I have posted the issue in Siropu's thread and referred him to this post.How do spam users show up under Siropu's add-on? Do you know if it users the built in spam cleaner? I can add whatever method his add-on uses to my add-on, which is probably easier than Siropu using a table he doesn't currently use.
What reason does it list for the user being banned?Sorry, I don't know. Using his addon, the xf_spam_cleaner_log shows only the username, not the user_id. I have posted the issue in Siropu's thread and referred him to this post.
Instead of just checking for users in xf_spam_cleaner_log, I can add a check to see if the reason = the phrase used. This would probably reduce issues.Wow. This is bizarre.
I had disabled the Easy Ban addon to check that your addon works correctly with the new option, which it did.
In response to your question, I just new re-enabled the Siropu addon and now your addon is correctly showing only bans not created by the spam cleaner.
Beats me why but it's now working on all 4 forums where it's installed.
But to answer your question, the spam cleaner bans just show this as the reason: "Spam. Please contact the administrator if this was done in error."
- Updated option to hide spam users to include users banned for the following phrases
- spam_cleaner_ban_reason (Spam. Please contact the administrator if this was done in error.)
- spam
- This is needed for situations where the xf_spam_cleaner_log is truncated or spam is listed as the reason
It is already responsive. Do you have a different design in mind? I could make it a single row per user but I would likely need to hide the reason.Would be nice a more responsive version for mobile.
It is already responsive. Do you have a different design in mind? I could make it a single row per user but I would likely need to hide the reason.
But that should be optional. I think the reason field is important.Oh yep, without hidding the reason is hard to make a single row
Is that intended for mobile? To be honest, I wouldn't use it personally but I can see where some might like it.
It is a widget, like any other Xenforo widget.Is that intended for mobile? To be honest, I wouldn't use it personally but I can see where some might like it.
XF\PrintableException: Batch install error: Line 65: Unknown tag extension encountered. - Template name: public:andrew_banneduserslist_view
We use essential cookies to make this site work, and optional cookies to enhance your experience.