![]() |
Public Ban List
I am requesting a Public Ban list to be created.
Basically it would list all user banned, their ban reason, ban length, and the person who banned them. Or if this exists already, then please let me know :) Thanks! |
With a few minor changes to make the code 3.5 friendly I was able to get this to function on my forum:
https://vborg.vbsupport.ru/showthread.php?t=70293 Don't know if it was the best way to do it but it worked for me. |
Quote:
|
1 Attachment(s)
Okay, don't know if it was done in the best way, I just played with the code until it worked. Anyways, here it is:
Step One: Upload the files contained within the zip to your forums directory. (use the files in my zip, not the ones from the original thread) Step Two: Run file admincp/install_showbans.php. Step Three: Open modcp/banning.php and make the following file edits: Find: Code:
'period' => TYPE_STR, Code:
'bannedpost' => TYP_STR, Code:
// insert a record into the userban table Code:
// insert a record into the userban table Code:
print_input_row($vbphrase['user_ban_reason'], 'reason', '', true, 50, 250); Code:
print_input_row($vbphrase['user_ban_reason'], 'reason', '', true, 50, 250, 8, 45, 1, 0); Add the following new templates banlist_main Code:
$stylevar[htmldoctype] Code:
<tr> |
Thanks, I installed. It only logs new bans and not current existing ones, right?
|
Yeah, I don't know how to get old ones to show up. I just unbanned and re-banned my banned users. :ermm:
|
The temp banned users in the admin cp show up as perm banned users now. Does this happen to you? And is it a problem? Or are the temp banned users still only temp banned?
|
In the showbans.php list they show up properly. On the admin/mod side it says permanent but that's not the case I don't think. I have a fake user temp banned for a day. So I guess tomorrow I can let you know if it functions properly. :D
|
Hmm, it doesn't appear to work on temp bans. A user I temp banned until 2pm today is still banned. I'll try and figure out a fix for that.
|
I believe I have fixed the bug. I will need to wait 1 day to find for sure though
Quote:
Code:
// insert a record into the userban table Code:
// insert a record into the userban table |
All times are GMT. The time now is 09:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|