miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Menu changes based on User

Author Nikoli
Registered
#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?

Thanks,
Nikoli

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
Registered
#3 | Posted: 14 Apr 2009 00:14 
Thanks Paul.

I will give it a try.

Nikoli

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:

 ?
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
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB