1
noo-b
$xoops_isadmin in a php custom block ?
  • 2012/10/18 14:06

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


If in smarty template we can do this

<{if $xoops_isadmin}>
        ...
        <{/if}>



How to do this in a php custom block ?

newbie here

i want to set so only admin can see some text in my php custom block

2
noo-b
Re: $xoops_isadmin in a php custom block ?
  • 2012/10/18 14:34

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


Nevermind ...i got it

global $xoopsUser;
if ( 
is_object($xoopsUser) )
{
    if ( 
$xoopsUser->isAdmin() )
    {
....
    }
}

Login

Who's Online

176 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

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

Latest GitHub Commits