miniBB ®  
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual | miniBB Mobile
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
CEO
#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:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


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
  Enrich your miniBB-forums content,
creating public files storage with the File Bank add-on!
Files Bank for miniBB