View Full Version : How can we hide banned users avatar?
Robbed
02-07-2006, 11:49 PM
Sorry for the double post, i posted the other thread in the wrong forum..
How would I hide banned users avatars.
From searching I found this code
<if condition="$post[usergroupid] != 'bannedusergroup'">
What would i put after it?
Hello,
You don't have to use that I don't believe. can't you just disable avatars and profile pics for the banned usergroup in the acp? That SHOULD take care of that for you. You may need to run the updates after you change the setting.
davidw
02-08-2006, 01:47 PM
For my banned members, I just go to their profile and change their avatar to one has a picture of Banned or something to the like. :) It's an idea.
Smiry Kin's
02-08-2006, 01:57 PM
maybe theres away to make a default avatar for banned group... hmm request it made? im sure its simple
Robbed
02-09-2006, 10:06 PM
It is possible but you have to remove their old one.
So this is what I did, Used ranks and assigned a pic then i added code to postbit_legacy
<if condition="$show['avatar']AND is_member_of($post, 6,2,7,5,12,11,9)">
It hides their current avatar and only the one from the ranks show up then if the ban is removed they get their old avatar back.
Nullifi3d
02-09-2006, 10:59 PM
You could also use <if condition="$show['avatar'] AND !is_member_of($post, 8)">. And you can put an <else /> in between to have two actions (displaying a seperate avatar for banned members maybe).
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.