15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Menu changes based on User

Author Nikoli
#1 | Posted: 11 Apr 2009 00:01 
This is more of a "nice to have"...

Is it possible to add additional menu items on the top main menu for say the Admin or Moderators, such that they only show if logged in as Admin? Or maybe this would be simpler buy customizing the Admin Panel?


Author Paul
Lead Developer
#2 | Posted: 13 Apr 2009 03:52 | Edited by: Paul 
Answering your question: of course, that's possible.

In bb_plugins.php, you must define some variables by the condition if($user_id==1 or $isMod==1) {...} Then such vars may be pasted in the heading template, and will appear only when the condition works.

Author Nikoli
#3 | Posted: 14 Apr 2009 00:14 
Thanks Paul.

I will give it a try.


Specific miniBB Support Forums / Specific / Menu changes based on User 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
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB