SimplePortal

Customization => Blocks and Modifications => Block Requests => Topic started by: mehrtadbir on July 16, 2014, 11:32:00 AM

Title: Members of a membergroup in footer block
Post by: mehrtadbir on July 16, 2014, 11:32:00 AM
Hello

How can I show the member of a membergroup horizontally (landscape) in footer block?

Title: Re: Members of a membergroup in footer block
Post by: Mstcool on July 21, 2014, 04:36:17 AM
Like the list of members in a specific member group?
Title: Re: Members of a membergroup in footer block
Post by: Itchigo on July 21, 2014, 11:11:22 PM
How many members? You could just use a custom html block.

<P> Member1,Member2,Member3</P>
Title: Re: Members of a membergroup in footer block
Post by: Smasher on July 22, 2014, 06:19:26 PM
I appears mehrtadbir is trying to do the same thing I am. This is basically take all members from a certain member group and list them in a block. For example search all members and show all that belong to ID_GROUP 9.

Here is something that was shown to me many many years ago... although I do not know where to go with it from here and how to get it working.... but again it looks like this is the same thing that mehrtadbir is trying to accomplish...

Code: [Select]
global $scripturl;

$result = mysql_query("SELECT m.ID_MEMBER, m.realName, m.ID_GROUP
FROM smf_members AS m
WHERE m.ID_GROUP = 9
ORDER BY m.ID_MEMBER DESC
LIMIT 25") or die(mysql_error());
$members = array();
while($row = mysql_fetch_array($result)) {
       $members[] = array(
              'name' => $row['realName'],
             
       );
}
SimplePortal 2.3.8 © 2008-2024, SimplePortal