1
yotsugi
Re: $xoops_isadmin, $xoops_isuser, but $xoops_<custom group>?
  • 2008/7/25 4:17

  • yotsugi

  • Just popping in

  • Posts: 1

  • Since: 2008/7/25


Quote:

This is great! Would there be a way to do this for an individual user...Im a webmaster, but there's a couple other webmasters on the site I work on, and I would like to have a couple of things in my theme so only I would have a slightly different layout.
Also, Im really new to xoops, so if somebody could lay it all out for me, like leoscotch did (thanks for that!)
Thank y'all!

Why you don't create another group for other "webmaster"? On this case, I created one group and placing the other "webmaster" into that group. Then, I'm using $group_id smarty in the template to differentiating the template between the real webmaster and the other webmaster.

For example:
<{if $xoops_isadmin}> <!--condition if the real webmaster login-->
what to do
<{elseif 
$group_id == 4}> <!--condition if the other webmaster login ("4" is the id of the group created before)-->
something to do if first condition is false and this condition is true
<{/if}>


And if you want to do it to individual user, maybe you can using $user_id smarty...




TopTop



Login

Who's Online

202 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 202


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