Logged Out
Create an Account
Login:
Password:

Forgot your password?
PHP for wrapping Admin link?


Back to the Tickets List

PHP for wrapping Admin link?
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

User-Submitted Comments
These posts are also available on the forum with more features. This page is intentional simplified

View this info on the forum
[You must be logged in to post comments]
6065 days ago
Chops Said:
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.


[You must be logged in to reply]