The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Ban reason field?
Is there a hack for the ability to add a reason to why someone is banned?
We are three admins and it's hard having to explain why each person is banned -_- |
#2
|
||||
|
||||
Just create a Admin Only accessable forum and place the info there. That is what I do.
|
#3
|
||||
|
||||
used to do that.. hard when you're stressed or on the run. Gotta be some way to add a text field just as the field with the number of days.. I have no clue in this scripting language and I don't wanna try and risk something
|
#4
|
|||
|
|||
Quote:
If so why not just add a table that contains the userid and the ban information <= why they were ban. Then do a join when listing the bans so you can see that information. I try not to add columns to the default db when it's something that is as trival as this. If this is ok I will show you how to do it! Sonia |
#5
|
||||
|
||||
yes.. I'd love that!
|
#6
|
|||
|
|||
Quote:
Just check back in a few hours I just starting on it now! Sonia |
#7
|
|||
|
|||
Look - want the easy way? Do what I did. Add a custom profile field (private), labelled "Ban Reason". I also have a template conditional in the header template that will display that reason to the banned user if they attempt to use the board. Took 5 minutes. Simple and easy. I also have an "administrator comments" text-field where staff can add whatever comments they like. Again, a private field.
|
#8
|
||||
|
||||
Quote:
|
#9
|
|||
|
|||
I'll share the code. Here you go... Header template, just above
$_phpinclude_output Add: Code:
<if condition="$bbuserinfo[usergroupid] == 8"> <div align="left" style="color: red; background-color: white; border: 1px solid black; padding:2px"> <b>Your membership has been terminated.<br /><br /> <if condition="$bbuserinfo[fieldX]"> Reason: $bbuserinfo[fieldX] </if> </b> </div> </if> Where "fieldX" is the assigned name of your custom private user field. Also assuming usergroup 8 = your BANNED usergroup. |
#10
|
||||
|
||||
sweet thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|