MyBB Codes

Full Version: Ban user by IP from profile
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Paste this code in member_profile_adminoptions template:

PHP Code:

PHP Code:[Highlight]
<li><a href="{$mybb->settings['bburl']}/{$admin_dir}/index.php?module=config-banning&filter={$memprofile['lastip']}target="_blank">Ban IP</a></li


This is most useful against bots so the ip gets banned. Yes I know you can help stop bots with plugins, but this can make it easy to ban ips when needed.
Reference URL's