Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Aiheen aloitti: davedadon - lokakuu 27, 2007, 11:13:58 AP

Otsikko: Show Banned Users
Kirjoitti: davedadon - lokakuu 27, 2007, 11:13:58 AP
you know how when someone is banned on vBulletin there avatar changed to a "BANNED" avatar
and under them it says "BANNED" and stuff

ahh i know you could do this by just making a new membergroup but then you wouldnt be able to set days for them to be banned/unbanned automatically
Otsikko: Re: Show Banned Users
Kirjoitti: Neorics - lokakuu 29, 2007, 10:29:51 AP
visual warning mod?
Otsikko: Re: Show Banned Users
Kirjoitti: TheWrath! - lokakuu 29, 2007, 01:20:07 IP
you just need to create a banned usergroup and have the group avatar set to say banned or what not in a graphic.
Otsikko: Re: Show Banned Users
Kirjoitti: Fustrate - lokakuu 30, 2007, 04:37:29 IP
I use some simple "if" statements on my forum using the $message['member']['is_banned'] variable. Here's what I use for membergroup bars and custom titles (I can't remember what to replace with this though...)

//First off, make sure they're not banned - if they are, show the image
if($message['member']['is_banned'])
echo '
<img src="banned.gif" /><br />';
// Show the member's custom title, if they have one.
else if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br />';

// Show the member's primary group (like 'Administrator') if they have one.
else if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
else
echo '
', $message['member']['post_group'], '<br />';
if(!$message['member']['is_banned'])
echo '
', $message['member']['group_stars'], '<br />';


That should help...
Otsikko: Re: Show Banned Users
Kirjoitti: davedadon - lokakuu 30, 2007, 04:43:07 IP
Lainaus käyttäjältä: BRFRWebGuy! - lokakuu 29, 2007, 01:20:07 IP
you just need to create a banned usergroup and have the group avatar set to say banned or what not in a graphic.

i already said this...
but if i do this, then it only works for people who are perm banned
i want it to do the same for people who might be only banned for a day or hr, w.e
Otsikko: Re: Show Banned Users
Kirjoitti: Neorics - lokakuu 30, 2007, 06:20:05 IP
omg... did you even try visual warning mod?
Otsikko: Re: Show Banned Users
Kirjoitti: HecKel - lokakuu 31, 2007, 07:14:08 AP
Lainaus käyttäjältä: Neorics - lokakuu 30, 2007, 06:20:05 IP
omg... did you even try visual warning mod?

I tried VWM..., but I don't like somethings..., and the banned users is one of them, if I ban one user by mistake..., it is a lot of trouble :P

Actually, is an options on VWM that only who can warn can see the warnings..., so other users can't see how is banned.
Otsikko: Re: Show Banned Users
Kirjoitti: Neorics - lokakuu 31, 2007, 07:57:22 AP

//First off, make sure they're not banned - if they are, show the image
if($message['member']['is_banned'])
echo '
<img src="banned.gif" /><br />';


that is a code given above that would seem to work fine and you need to add that in the display.template.php
Otsikko: Re: Show Banned Users
Kirjoitti: TheWrath! - marraskuu 03, 2007, 09:32:04 AP
davedadon

please check your person messages. i sent you a link. i like to keep this link semi private. Is this what you would like to have?