• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Ban Reason

Amaury

Well-known member
#1
On vBulletin, when users are permanently or temporarily banned, they are shown the reason and the expiration date. However, on XenForo, it just says they don't have the permissions necessary to view the page.

Ban.png

Is there any way to show them the reason?
 
Last edited:
#6
Alright, from what I'm getting, you're trying to show users the reason that they were banned correct? I would believe that changing the phrase text is the only way to do that, but I am probably wrong then.
 

Mike

XenForo developer
Staff member
#7
A user who is banned through the ban system is shown that they have no permission only if they try to view something they can't view. Otherwise, they do get the banned message.
 

Amaury

Well-known member
#8
A user who is banned through the ban system is shown that they have no permission only if they try to view something they can't view. Otherwise, they do get the banned message.
Thanks, Mike.

Then it must be because I have everything set to Never intentionally for the Banned user group. I'll change everything to Not Set (No).
 

Martok

Well-known member
#9
Thanks, Mike.

Then it must be because I have everything set to Never intentionally for the Banned user group. I'll change everything to Not Set (No).
If the banned group is a secondary group then users will still get permissions from the Registered group if you use Not Set (No).
 

Amaury

Well-known member
#10
If the banned group is a secondary group then users will still get permissions from the Registered group if you use Not Set (No).
It is a secondary user group, yes.

If I use Not Set (No) on the Registered user group, correct? Because that's how I have it.
 

Martok

Well-known member
#11
It is a secondary user group, yes.

If I use Not Set (No) on the Registered user group, correct? Because that's how I have it.
If you have Not Set (No) for a permission in the Registered group then Not Set (No) in the Banned group is fine.

Not Set (No) + Not Set (No) = Not Set (No)

If you have Allow for a permission in the Registered group and Not Set (No) in the Banned group it won't work.

Allow + Not Set (No) = Allow

In this case you would need to use Never.
 

Amaury

Well-known member
#12
If you have Not Set (No) for a permission in the Registered group then Not Set (No) in the Banned group is fine.

Not Set (No) + Not Set (No) = Not Set (No)

If you have Allow for a permission in the Registered group and Not Set (No) in the Banned group it won't work.

Allow + Not Set (No) = Allow

In this case you would need to use Never.
Got it.

But essentially my current setup of Not Set (No) for Registered and Never for Banned is fine?
 

Martok

Well-known member
#13
Got it.

But essentially my current setup of Not Set (No) for Registered and Never for Banned is fine?
I'd only set a Never permission in a banned group or 'naughty step' group (which is a group I do have for miscreants) where I have a corresponding Allow permission in another group that the user is a member of. There's no need to set a Never to override a Not Set (No).
 

Amaury

Well-known member
#14
I'd only set a Never permission in a banned group or 'naughty step' group (which is a group I do have for miscreants) where I have a corresponding Allow permission in another group that the user is a member of. There's no need to set a Never to override a Not Set (No).
Just to make sure I'm understanding correctly, these are the general permissions for our Registered user group:

Registered General.png

Right now, everything in our Banned user group is set to Never, but if I'm understanding you correctly, I would do the following:
  • View = Never
  • View Node = Never
  • View User Profiles = Never
  • Search = Never
  • Edit Profile = Never
  • Edit Custom Title = Not Set (No)
  • Follow Message Moderation Rules = Never
  • Bypass Flood Check = Not Set (No)
  • Report Content = Never
 
Last edited:

Martok

Well-known member
#15
Correct, that's what I'd set.

I guess it wouldn't matter if you had everything set to Never for a banned group. I'm just particular about how I set my permissions to ensure I don't have any duplication of permissions across my groups and I only use Never where absolutely necessary. I also keep all permissions detailed on a spreadsheet for easy reference. :)
 

Chris D

XenForo developer
Staff member
#16
Is there a particular reason why you're setting additional permissions to banned members? They already can't do most of the things you're setting to Never.
 

Amaury

Well-known member
#19
That's not what I asked.

I asked: Why are you setting permissions at all for the banned user group?
Oops. Sorry.

I read multiple times here (in threads where people were having problems with user group permissions) that you should never use Never unless it's for a banned user group or something of the sort.

Should I just do Not Set (No) on everything, then?
 

Chris D

XenForo developer
Staff member
#20
Set everything back to Not Set. Create a test user. Ban the test user. Have a play around and then see if the banned user has access to anything they shouldn't Pretty much it is the case that they can do nothing.

If that's the case, then you don't need to change any permissions (Leave them as default, e.g. Not Set).

And with that configuration, the ban reason you mentioned in the original post should be visible.