Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Shike - syyskuu 10, 2006, 01:41:15 AP

Otsikko: Show All Member Groups
Kirjoitti: Shike - syyskuu 10, 2006, 01:41:15 AP
I was wondering if there was a way to show All of a member's groups.

the code if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';

is what I'm looking at.

Any Suggestions?

(BTW i'm using the Fantasy Theme (thought this code seems to be universal))
Otsikko: Re: Show All Member Groups
Kirjoitti: bloc - syyskuu 10, 2006, 04:14:22 AP
That data isn't loaded in the template/theme..you would need to add a separate sql call to fetch all the groups.
Otsikko: Re: Show All Member Groups
Kirjoitti: Shike - syyskuu 12, 2006, 12:17:37 AP
Would you be able to give me an idea of how to do so?  I'm still very much an ameture with PHP and MySQL and I don't actually understand all of the code thats in the templats.