1
madDan
Conditional change to a theme
  • 2010/11/23 23:26

  • madDan

  • Not too shy to talk

  • Posts: 105

  • Since: 2010/1/6 1


How would I go about making a small conditional change to a theme say in theme.html so that only a set group or groups see it or have access to it

Obviously people belong to a group and have a groupid or multiple groupid

2
ghia
Re: Conditional change to a theme
  • 2010/11/24 1:54

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Do something like:
<{if 1|in_array:$xoops_usergroups}>Show for group 1<{/if}>
<{if 
2|in_array:$xoops_usergroups}>Show for group 2<{/if}>

3
madDan
Re: Conditional change to a theme
  • 2010/11/24 3:54

  • madDan

  • Not too shy to talk

  • Posts: 105

  • Since: 2010/1/6 1


Thankyou for that

Login

Who's Online

435 user(s) are online (312 user(s) are browsing Support Forums)


Members: 0


Guests: 435


more...

Donat-O-Meter

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

Latest GitHub Commits