miniBB Support Forums | 15 years on The Web
miniBB ®

miniBB

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

How to show BBcode button only for admin?

 
Author Trinity
Partaker
#1 | Posted: 9 Feb 2012 19:58 
Hello,
I need show the button above the form only for admin. Can this be done?

Author Paul
Lead Developer
#2 | Posted: 9 Feb 2012 20:23 
Trinity:
Can this be done?

Yes!

Author Trinity
Partaker
#3 | Posted: 9 Feb 2012 20:30 
Paul:
Yes!

And how?

Author Paul
Lead Developer
#4 | Posted: 10 Feb 2012 10:41 
bb_plugins.php:

if($user_id==1){
$adminButton='HTML code';
}
else $adminButton='';

then paste {$adminButton} into main_post_form.html

Author Trinity
Partaker
#5 | Posted: 10 Feb 2012 14:45 
Paul
Thanks!

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 How to show BBcode button only for admin?
 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
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
↑ TOP