miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Suggestions miniBB Support Forums / Suggestions /  
 

give mods ability to ban users

 
Author ezkim0x
Partaker
#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
Active Member
#2 | Posted: 6 Feb 2007 17:31 
You mean ban IP, not user, right? Mods can ban registered users.

Author ezkim0x
Partaker
#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
Partaker
#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
Partaker
#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.


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

Author Persian
Partaker
#9 | Posted: 26 Jan 2008 01:28 
Paul
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...

$allowed_mods_array=array(12,15);
if(in_array($user_id, $allowed_mods_array)) {
//allow something
}

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

$allowed_mods_array=array(1,2);
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:

/index.php?action=prefs&adminUser=5

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

/index.php?action=prefs&adminUser=6

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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑