Simple Machines Community Forum

SMF Development => Feature Requests => Topic started by: vbgamer45 on January 06, 2023, 01:42:56 PM

Title: Ban List - Ban section search and improvments
Post by: vbgamer45 on January 06, 2023, 01:42:56 PM
There currently is no way of searching in any of the ban areas in the admin area.
Which makes it hard to find to bans if you have a big site.

Also, would be nice to have the ban id added to the error logs. I have done it on one of my sites today after trying to trace, why a user was banned.

Added this to the error log and also added the text to the member to see it.
if (!empty( $_SESSION['ban']['cannot_access']['ids']))
{
$badReasonDetail = " ID: " . implode(",", $_SESSION['ban']['cannot_access']['ids'];
}


Old
Sorry Guest, you are banned from using this forum!
This ban is not set to expire.

New
Sorry Guest, you are banned from using this forum! ID: 4000
This ban is not set to expire.

There is still some work can't access it via the admin area via the ban id alone need the ban group too but did allow me to trace in the db.