![]() |
#1
|
|||
|
|||
![]()
Is it possible to put a link on the menu only visible to admins?
Such as a link to the administration area. |
#2
|
|||
|
|||
![]()
Users you are not authorized to access the admin area with get an error if they click on the admin link so it really can be placed anywhere
|
#3
|
||||
|
||||
![]()
Yes there is go to your functions.php page and in your sidebar function place this(right before the $sidebar = "):
PHP Code:
PHP Code:
|
#4
|
|||
|
|||
![]()
@ Seapyramid. I know they can't access it, and that's not the issue, I'd just like that button to not even be there for them, as it might lead to confusion.
@Bloodrun. That gave me the white screen of death. :/ PHP Code:
|
#5
|
||||
|
||||
![]() Quote:
You didn't end the &sidebar correctly the ".$admin." goes within the ($sidebar = " ";) |
#6
|
|||
|
|||
![]()
So $sidebar = "<b><u>$admin."
??? |
#7
|
||||
|
||||
![]() Quote:
PHP Code:
|
#8
|
|||
|
|||
![]()
Thank you, works great now.
|
#9
|
||||
|
||||
![]() Quote:
|
#10
|
|||
|
|||
![]()
I searched the Forums and this was the most relevant topic I could find so I am posting this here.
I am trying to create links in the links bar that are only visible to users when logged in. First I commented out this so that it wouldn't pull links from the database. PHP Code:
PHP Code:
PHP Code:
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Link Dots | voni | Questions and Supports | 6 | 05-13-2014 10:20 AM |
Link | MaximumRide | Questions and Supports | 6 | 04-23-2012 04:52 PM |
how change this link ? :( | kratosvr | Questions and Supports | 5 | 08-24-2011 09:09 AM |
PHP in a link? | Saphira | Questions and Supports | 9 | 01-31-2009 11:30 AM |
Forums Link | Ashje | Questions and Supports | 2 | 01-24-2009 12:28 AM |
What's New? |
What's Hot? |
What's Popular? |