Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Show Banned Users

Aloittaja davedadon, lokakuu 27, 2007, 11:13:58 AP

« edellinen - seuraava »

davedadon

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

Neorics

[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

TheWrath!

you just need to create a banned usergroup and have the group avatar set to say banned or what not in a graphic.

Fustrate

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...
Steven Hoffman
Former Team Member, 2009-2012

davedadon

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

Neorics

omg... did you even try visual warning mod?
[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

HecKel

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.
Lainaus käyttäjältä: Eliana Tamerin - elokuu 23, 2008, 04:10:10 IP
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Neorics


//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
[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

TheWrath!

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?

Advertisement: