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
<{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:

<{if $xoops_isadmin}><a href="<{$xoops_url}>/admin.php">Admin</a><{/if}>
......
dixonfamily

Login

Who's Online

241 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 241


more...

Donat-O-Meter

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

Latest GitHub Commits