Did you know that you may be allowed to hide miniBB credits
and remove miniBB's copyright notice? Click here to read more.
Copyright Removal allowance for miniBB
miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Specific miniBB Community Forum / Specific /
Short link for this topic:

Menu changes based on User

 
Author Nikoli
Forums Member
#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
CEO
#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
Forums Member
#3 | Posted: 14 Apr 2009 00:14
Thanks Paul.

I will give it a try.

Nikoli
 
Specific miniBB Community Forum / Specific / Menu changes based on User Top
Your Reply Click this icon to move up to the quoted message

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership 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 Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts