miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Dissallow moderator to change User's profile

Author Tihon
Registered
#1 | Posted: 3 Mar 2010 03:08 
Is it possible to disallow moderator to change user's profile?

Author Paul
Lead Developer
#2 | Posted: 4 Mar 2010 03:54 
1. Don't grant moderator's privileges to users which you can't trust.

2. Try the following code, adding it to bb_plugins.php (at the end of file):

if($isMod==1 and ($action=='prefs' or $action=='editprefs') and (isset($_GET['adminUser']) or isset($_POST['adminUser']))){

$errorMSG=$l_forbidden; $correctErr=$backErrorLink;
$title=$title.$l_forbidden; $loginError=1;
echo load_header();
echo ParseTpl(makeUp('main_warning'));

//Loading footer
$endtime=get_microtime();
$totaltime=sprintf ("%01.3f", ($endtime-$starttime));
if(isset($includeFooter) and $includeFooter!='') include($includeFooter); else echo ParseTpl(makeUp('main_footer'));
exit;

}


Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Dissallow moderator to change User's profile 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