MyBB Codes
Ban user by IP from profile - Printable Version

+- MyBB Codes (http://www.mybbcodes.com)
+-- Forum: Mods Database (/forumdisplay.php?fid=4)
+--- Forum: Plugins for 1.4.x and 1.6.x (/forumdisplay.php?fid=5)
+---- Forum: Support For 1.4.x and 1.6.x (/forumdisplay.php?fid=27)
+---- Thread: Ban user by IP from profile (/showthread.php?tid=4545)


Ban user by IP from profile - nikacomputer.ir - 03-24-2012 06:33 PM

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.