Banned Users do not go into the Banned Usergroup.

faeronsayn

Well-known member
I just noticed this, after I ban a user through the ban user option in the Users tab in your Admin CP, it just bans them but does not put them in the "banned" usergroup. Since I have user ranks / user title for banned users, I really need for them to go to the banned users group.

Not sure if this is a bug, or its suppose to work like that, but I was wondering why it did not do that, and actually how to make it so the user goes in the banned usergroup once you ban the user whether that'd be permanently or a temporary ban, it should put them in the banned usergroup.

Also I use a mod that lets you infract / warn users, and if users get that amount of infractions they would get banned for several days, when moderators ban users through that method, it still does not put the user into the banned usergroup.

Hope I can get some help on this.
 
Xenforo per default has no usergroup "banned members" like vb has. When you ban a member it only sets a flag in the user account.

Any way to make it so the user goes into that usergroup by default? or anyway to change the users title, and add some extra things if a user is banned. Maybe a template condition ?
 
You can use the $user.is_banned variable to create template conditions for banned users.

Thank you so much, just a little problem that is occuring on my website.

I use this template condition right now...

<xen:if is="{xen:helper ismemberof, $user.is_banned}">
<CENTER><img src="http://www.shadygamer.com/userrank/banned.png"></CENTER>
</xen:if>

I use this for my other member ranks as well, but whats happening is that, this rank is displaying on all of my members, regardless of them being banned or not.

For example if we look at this thread.

All my members have their normal ranks, plus the banned rank, although they are not banned.

http://www.shadygamer.com/threads/maplestory-or-wonderking.886/

EDIT: Fixed it, instead of using this

Code:
<xen:if is="{xen:helper ismemberof, $user.is_banned}">
<CENTER><img src="[URL]http://www.shadygamer.com/userrank/banned.png[/URL]"></CENTER>
</xen:if>

I am using this ...

Code:
<xen:if is="{$user.is_banned}">
<CENTER><img src="[URL]http://www.shadygamer.com/userrank/banned.png[/URL]"></CENTER>
</xen:if>

This is working fine.
 
OR:
if you NEED the usergroup (i client needed this for a external application)
create a new usergroup for banned users, extend the user datawriter, if the is_banned flag is changed, (re)move the user automatic to the group;)
 
Or you could just create a banned user group and manually move members into it.

Why do banned users still show as normal members and appear in the member list?
This is the designed behavior; there is no outward indication that a member has been banned. Their user title stays the same and they will still appear in the members list. If required, you can manually change a banned member's user title, or create a user group with a higher display styling priority and add them to it. To prevent them from appearing in the members list you can change the user state to anything other than valid.

http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-180445
 
Or you could just create a banned user group and manually move members into it.

Why do banned users still show as normal members and appear in the member list?
This is the designed behavior; there is no outward indication that a member has been banned. Their user title stays the same and they will still appear in the members list. If required, you can manually change a banned member's user title, or create a user group with a higher display styling priority and add them to it. To prevent them from appearing in the members list you can change the user state to anything other than valid.

http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-180445

The manual thing will obviously not work when you have several different moderators that can ban users through infractions, and they do not have access to the AdminCP, meaning it will be up to me to track down which members were banned and then manually add them to the usergroup.
 
You can grant access to certain areas of the ACP to your moderators if you trust them.

Or you can ask your moderators to post in a thread when they ban someone.

Ultimately, you will have to come up with a system which works for you.
 
Hang on ... did you just create the add-on in 20 mins.? WOW!!! :cool:
39 with creating an automatic selenium test, running it several times and creating a new build because i called the false method
badteeth.gif
 
Actually, just checked in 1.1 and you don't need this mod, it can be done via the User Promotion system.

it appears you can anyway, you can select the "Banned users" group as the group to add the user to & then on the 'Apply this promotion while...' box, there is an option for 'user is banned'.
 
Actually, just checked in 1.1 and you don't need this mod, it can be done via the User Promotion system.
Unfortunately that doesn't work as the last active time doesn't update for banned users, so they never get promoted, as promotions are only triggered when active.

I've spoken to Mike about it and he's going to look at a completely separate approach for moving banned users into and out of a defined group.
 
Top Bottom