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

le="color: #000000"><?php <{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

le="color: #000000"><?php global $xoopsUser; if ( is_object($xoopsUser) ) { if ( $xoopsUser->isAdmin() ) { .... } }