Logged Out
Create an Account
Login:
Password:

Forgot your password?
PHP for wrapping Admin link?

PHP for wrapping Admin link?
[Back to Index]  [Bottom of Thread]
Thread Tags
Primary: [Tickets]
Secondary: None
PHP for wrapping Admin link?
Go To This Ticket's Page
Creator Quaiche
Public or Private Public
Private tickets are only accessible to you and to DKPSystem.com staff
Public Tickets are visible to everyone)
Status Closed
Type Support
Section of the Site Templates
Urgency (0 votes)
Rating (0 votes)
Description:
I'm taking some of my "main menu" items off the menu bar on the side and putting them in a horizontal bar across the top. I'd like to include the Admin menu item, but of course I don't want it showing up for non-site admin folks.

Is there a PHP check I can do in my Layout.html file to check the user auth level?

Thanks!
Official DKPSystem.com Comments
No official comments yet
Not PHP-Level, but there is the Advanced Layout Commands to do it.

You could do two different ways.

<!--System:IfAdmin-->
Stuff you want hidden from non-admins
<!--System:EndIfAdmin-->



or

<!--System:IfRank:3-->
Stuff you want hidden from anyone that's not rank 1, 2, or 3
<!--System:endIfRank-->


http://www.dkpsystem.com/guide/SystemIfRank


Another option at your disposal is to try using the Embedded Menus.



--
It's all in the reflexes.


[Back to Index]  [Top of Thread]