Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: Capion on January 10, 2015, 08:44:01 AM

Title: how do I add member group to admin memberlist? ( ver. 2.0.9 )
Post by: Capion on January 10, 2015, 08:44:01 AM
Version Information:
Forum version: SMF 2.0.9
Current SMF version: SMF 2.0.9
GD version: bundled (2.1.0 compatible)
MySQL version: 5.5.40-36.1
PHP: 5.4.35
Server version: Apache

I find it annoying to scoot around 2 pages to find which member is in which group, and change the group.
at least I would be happy to just see which group the member is in, in the memberlist, but it would be smarter to be able to change the group, same place.
Title: Re: how do I add member group to admin memberlist? ( ver. 2.0.9 )
Post by: Deaks on January 10, 2015, 09:02:41 AM
you need to explain a wee bit better what you are trying to do :)
Title: Re: how do I add member group to admin memberlist? ( ver. 2.0.9 )
Post by: Steve on January 10, 2015, 09:10:05 AM
The members list does show what group the member is in so if Runic's confused you can bet I am as well. :P
Title: Re: how do I add member group to admin memberlist? ( ver. 2.0.9 )
Post by: Arantor on January 10, 2015, 10:03:45 AM
Admin > Members doesn't, like the title says ;)
Title: Re: how do I add member group to admin memberlist? ( ver. 2.0.9 )
Post by: Steve on January 10, 2015, 11:05:35 AM
D*mn it! I hate when I miss stuff like that.
Title: Re: how do I add member group to admin memberlist? ( ver. 2.0.9 )
Post by: Capion on January 10, 2015, 03:19:55 PM
Quote from: Steve on January 10, 2015, 09:10:05 AM
The members list does show what group the member is in so if Runic's confused you can bet I am as well. :P

in "admin" > Member dropdown > Member > Members > view all Members...
the "manage members" list ..it has no field showing which membergroup the members are in.
Title: Re: how do I add member group to admin memberlist? ( ver. 2.0.9 )
Post by: Steve on January 10, 2015, 06:41:41 PM
Yeah, I got that when Arantor mentioned it.

Hopefully someone will be able to tell you how to do what you want to do. :)
Title: Re: how do I add member group to admin memberlist? ( ver. 2.0.9 )
Post by: Deaks on January 10, 2015, 10:43:10 PM
you would need to alter the code in ManageMembers.php something similar to this but with more data

'id_group' => array(
'header' => array(
'value' => $txt['position']
),
'data' => array(
'sprintif' => array(
'format' => '',
'params' => '',
),
),


this is only half done need to add the sort to it but look around line 528 maybe put it before ip.
Title: Re: how do I add member group to admin memberlist? ( ver. 2.0.9 )
Post by: Arantor on January 10, 2015, 10:59:32 PM
Um, yeah, quite a bit different seeing how you also need to actually get it from the database first before splicing it into the generic list definition.
Title: Re: how do I add member group to admin memberlist? ( ver. 2.0.9 )
Post by: Deaks on January 10, 2015, 11:08:11 PM
hinting why I said its only half done :P

im sick stop being mean :P
Title: Re: how do I add member group to admin memberlist? ( ver. 2.0.9 )
Post by: Arantor on January 10, 2015, 11:39:20 PM
I'm not being mean. Being mean would mean pointing out the spelling mistake in what there was written there :P