miniBB Support Forums | 15 years on The Web
miniBB ®


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

editMsgReloc for selected users only?

Author tom322
Active Member
#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..


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
Active Member
#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?
 Share Topic's Link

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

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  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.