miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Suggestions miniBB Support Forums / Suggestions /   

give mods ability to ban users

Author ezkim0x
#1 | Posted: 6 Feb 2007 16:22 
right now as far as I know the only way to ban a user is to use the admin account.

would it be possible to allow mods to ban users as well?

Author tom322
#2 | Posted: 6 Feb 2007 17:31 
You mean ban IP, not user, right? Mods can ban registered users.

Author ezkim0x
#3 | Posted: 6 Feb 2007 21:34 
mods having the ability to ban userids

Author marsbar
Associated Member
#4 | Posted: 7 Feb 2007 01:25 
Moderators have the power to disable/lock member accounts: when logged in as a Mod, one will see at the end of each member's profile a "Member Yes/No" option. "No" disables the member's account, and "Yes" unlocks the account.
- mb

Author Paul
Lead Developer
#5 | Posted: 7 Feb 2007 02:34 
Banning by IP or user ID is the most "hard" method of ban, and it is currently available only to admin. Mods can block accounts like marsbar explained, but I personally finding it a bad idea to give somebody except the admin the rights to ban by IP. It should be done only by experienced person.

Author Persian
#6 | Posted: 24 Jan 2008 14:25 
so how can i set this option for some mods only not for all mods ?
for example some mods can ban and edit user profiles,
and some mods can not ban and edit profiles,
or ban but without editing user profile!
anyone has idea?
how about u Mr.Paul ;)

Author Paul
Lead Developer
#7 | Posted: 25 Jan 2008 03:33 
I don't provide custom solutions for free, but it would be possible if you hardly edit the core scripts.

Author Persian
#8 | Posted: 25 Jan 2008 23:42 

I don't provide custom solutions for free, but it would be possible if you hardly edit the core scripts.

How can I buy ? Could you tell ?! ;-)
I don't have paybal, But I have Master Card ! :-)

Author Persian
#9 | Posted: 26 Jan 2008 01:28 
I succeed to change code in bb_func_usernfo.php
now Mods Can't ban user! and it's ok!
But I want to give ability for 2 of My Mods for Banning users, and For other Mods not!
Thanks :-)

Author Paul
Lead Developer
#10 | Posted: 28 Jan 2008 03:05 
Condition by $user_id will help you...

if(in_array($user_id, $allowed_mods_array)) {
//allow something

Author Prince
#11 | Posted: 2 Sep 2011 16:36 
I used this condition for File Bank also doesn't show for anyone:

if(in_array($user_id, $allowed_mods_array)){

if($action=='storage' and $user_id>0) include($pathToFiles.'addon_storage.php');

It worked, just wondering if is that ok to use it like that?

Author Paul
Lead Developer
#12 | Posted: 2 Sep 2011 19:22 
If it worked, it's fine :)

Author Guest
#13 | Posted: 30 Jan 2012 18:52 
I've removed this and just made it for admin in bb_func_usernfo.php but still Mods can edit other profile with this trick:

if($user>1 and ($user_id==1 or ($isMod==1 and $user_id!=$user and !$blockedMod) ) ){

I've disabled editing profile by Moderators but still they can edit user profile with this trick:


if they edit their own profile and copy the link and just change user id.. then they can simply enter user profile:


Author Paul
Lead Developer
#14 | Posted: 31 Jan 2012 12:04 
I'm not sure why you are posting in this topic? This topic is about GIVING moderators ability to ban users.
It's not related to the custom questions.

Suggestions miniBB Support Forums / Suggestions / give mods ability to ban users Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB