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

editMsgReloc for selected users only?

Author tom322
Registered
#1 | Posted: 22 Sep 2010 19:34 
Is it possible to enable $editMsgReloc only for some users or some actions?

I tried to put it in bb_plugins.php (I have $editMsgReloc=TRUE; in setup_options.php at the same time), but no result:

if($user_id==1) $editMsgReloc=TRUE; else $editMsgReloc=FALSE;

// I also tried to remove $editMsgReloc from setup_options and only leave the conditions from bb_plugins.php file but it didn't work either..

Thanks.

Author Paul
Lead Developer
#2 | Posted: 23 Sep 2010 02:22 
If you would like to enable this option for certain users, but disable it for most of all, the following code would be correct:

if($user_id==1) $editMsgReloc=TRUE;

and then you must completely remove or disable this var in setup_options.php

Author tom322
Registered
#3 | Posted: 23 Sep 2010 10:26 
Thank you, it works correctly (originally I used exactly the same code but unnecessary put action=editmsg and that's why it didn't work ;).

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / editMsgReloc for selected users only? 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
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB