MyBB Community Forums

Full Version: Find/show 'banned length' in list of banned users ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to show the list of banned users with 'banned length' shown... without having to go to the database ?
it should be already available at the admin panel - forumURL/admin/index.php?module=user-banning
if that is not what is required, please elaborate where you want to have the ban length details
.
Thank you for the info.
Yes, it is there... is there any way to display more than 20 (think thats what is showing) banned users in that list... have a lot of banned users, and just wanted to be able to confirm, occasionally and somewhat quickly, that all are permanent etc.
I created a custom 'banned list' view with 200 in each list view, but there appears to be no way to show the 'banned length' in that list.
Next best thing seems to be using the database.
(2013-10-08, 05:35 PM).m. Wrote: [ -> ]it should be already available at the admin panel - forumURL/admin/index.php?module=user-banning if that is not what is required, please elaborate where you want to have the ban length details
.
if you can give your code then someone might be able to help. or you can use this (modify it if required)
It uses the threads per page setting. I think it should check it on the user level first though. It doesn't seem to do this. You would need to do a file edit for being able to display the time they are banned for because it stores that as seconds, not 1 year, 2 years, etc. There is no hook where there needs to be for being able to make a plugin that is efficient. The only way you could do it is to run a plugin off modcp_start, but you'd have to cache the ban lengths so it gets messy.