Add a List ONLY Certain Membergroup in forum!

Started by ROGUE-Master, April 27, 2004, 05:33:18 PM

Previous topic - Next topic

Grudge

Firstly, just because the group is the 6th group down won't necessarily mean it's group 6. Best way to check is fire up phpmyadmin, go to smf_membergroups and look at what ID_GROUP is next to the group you want to include - that is the *real* id number.

Secondly, to add more than one group do:

WHERE mem.ID_GROUP = 2 OR FIND_IN_SET(2, mem.additionalGroups)
      OR mem.ID_GROUP = 3 OR FIND_IN_SET(3, mem.additionalGroups)


etc, etc. (Probably quiker way but I'm on way to bed!

to list them in columns change this:

foreach ($return['users'] as $user)
echo $user['link'], !$user['is_last'] ? ', ' : '';


to this:

foreach ($return['users'] as $user)
echo $user['link'], !$user['is_last'] ? "\n" : '';

That last bit may work better replacing the \n with a <br />.

Hope that helps. This function really should take the membergroup as an argument and I may change it to do that later - but now is bed time :D
I'm only a half geek really...

ROGUE-Master

It works fine! I'll probably have more questions when I try to do more stuff with it!

Thanks a bunch!

Grudge

I'm only a half geek really...

Springer

I'd like to make the names list beneath each other.    So would I replace the comma with a break?



foreach ($return['users'] as $user)
echo $user['link'], !$user['is_last'] ? ', ' : '';


HoTmetal

So how would I do this to list each member group....like AMF did on their team page...??

http://www.simplemachines.org/about/team.php

Advertisement: