1
daibt
Theme information
  • 2005/11/23 9:46

  • daibt

  • Not too shy to talk

  • Posts: 191

  • Since: 2005/3/26


Hi, I wrote the code in theme as:
<{$groups = $xoopsUser->getGroups()}>
<{if $groups == "ATI"}>
ATI Album
<{/if}>

but it is not in the screen. Coudl you help me to correct the code

2
Mithrandir
Re: Theme information

<{php}>
global 
$xoopsUser;
if (
$xoopsUser) {
$groups $xoopsUser->getGroups();
$ati_group_id 5//replace with ID of group in question
if (in_array($ati_group_id$groups) ) {
    echo 
"ATI Album";
}
}
<{/
php}>
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
daibt
Re: Theme information
  • 2005/11/23 16:22

  • daibt

  • Not too shy to talk

  • Posts: 191

  • Since: 2005/3/26


Hi,

Thanks for your code. I got it.

Login

Who's Online

375 user(s) are online (65 user(s) are browsing Support Forums)


Members: 0


Guests: 375


more...

Donat-O-Meter

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

Latest GitHub Commits