1
jondixon
Admin?
  • 2005/9/21 11:49

  • jondixon

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/12


In the theme that I'm using here there is a login link on the top right. Because I'm not using the User Menu, I would like to be able to place a link to the admin page which would show up only if the logged in user is an admin. What code do I need for this?
......
dixonfamily

2
skenow
Re: Admin?
  • 2005/9/21 14:01

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


You can find it by editing the user menu template - here's what I found
le="color: #000000"><?php <{if $xoops_isadmin}> <a href="<{$xoops_url}>/admin.php"><{$block.lang_adminmenu}></a> <{/if}>

3
jondixon
Re: Admin?
  • 2005/9/21 23:49

  • jondixon

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/12


Thanks. I edited it and used this:

le="color: #000000"><?php <{if $xoops_isadmin}><a href="<{$xoops_url}>/admin.php">Admin</a><{/if}>
......
dixonfamily

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits