News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Ban List - Ban section search and improvments

Started by vbgamer45, January 06, 2023, 01:42:56 PM

Previous topic - Next topic

vbgamer45

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.

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: