![]() |
|
Thread Tools |
#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 -_- No members have liked this post.
|
#2
|
||||
|
||||
Just create a Admin Only accessable forum and place the info there. That is what I do.
__________________
San Juan River Forum Raven's Realm Truly Unrestricted Chat North American Fly Fishing Forum No members have liked this post.
|
#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
No members have liked this post.
|
#4
|
|||
|
|||
Originally Posted by Luggruff
Is that all you want is info on the ban?
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 No members have liked this post.
|
#5
|
||||
|
||||
yes.. I'd love that!
No members have liked this post.
|
#6
|
|||
|
|||
Originally Posted by Luggruff
Hi
Just check back in a few hours I just starting on it now! Sonia No members have liked this post.
|
#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.
No members have liked this post.
|
#8
|
||||
|
||||
Originally Posted by Dennis Olson
Mind sharing the conditional?
__________________
San Juan River Forum Raven's Realm Truly Unrestricted Chat North American Fly Fishing Forum No members have liked this post.
|
#9
|
||||
|
||||
I'll share the code. Here you go... Header template, just above
$_phpinclude_output Add:
Where "fieldX" is the assigned name of your custom private user field. Also assuming usergroup 8 = your BANNED usergroup. No members have liked this post.
Last edited by Dennis Olson; 04 May 2005 at 02:20. |
#10
|
||||
|
||||
sweet thanks
__________________
San Juan River Forum Raven's Realm Truly Unrestricted Chat North American Fly Fishing Forum No members have liked this post.
|
#11
|
|||
|
|||
how can i make it show in the banning.php?do=modify instead of the user profile?
Example: User Name Banned By Banned On Ban Period Ban Will Be Lifted On Ban Time Remaining Lift Ban Reason No members have liked this post.
|
#12
|
|||
|
|||
Yeah this hack would be useful for me too. Asianboi hit it right on the head. If someone could code this it'd be kinda cool. Sorry to be sponging off good coders but im clueless when it comes to PHP lol.
No members have liked this post.
|
#13
|
|||
|
|||
Originally Posted by asianboi
That's how I was going to do it, but I figured the person was happy with the profile field method so I did not post mine. My idea is to have it in the admin panel and have a text field that you can input the reason for the ban and also have a select (radio) option that allows you to have the reason show up on the forum as a error message to the ban user, with full details of the ban! (Yes or No) option!
No extra query, done doing a stright join instead of a select on a single table! Sonia No members have liked this post.
|
#14
|
|||
|
|||
I like that idea and that's what I need WHY-NOT
Can you share it with us? or at least with me? No members have liked this post.
|
#15
|
|||
|
|||
There are two hacks that I am aware of that have a reason field built into them. The first would be the Advanced Warning System (AWS) and the second would be Terry's Show Banned Users List Hack, which is mine and pretty much serves the purpose of informing people who banned who and why. Hope this helps.
No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 16:05.