miniBB Support Forums | 16 years on The Web
miniBB ® 


 | Begin | Register | Reply | Search | Statistics | File Bank | 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
 Share Topic's Link

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

Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.

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 ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.