Heosforo Posted May 8, 2018 Share Posted May 8, 2018 Hello guys. I'm trying to add some options to my theme, but I'm lost with how to build the member group selection. Could someone please help me out? This is very far from my knowledge ? Big thanks! Link to comment Share on other sites More sharing options...
newbie LAC Posted May 8, 2018 Share Posted May 8, 2018 Hello, Use Other/Manual type and next code <?php return new \IPS\Helpers\Form\Select( "core_theme_setting_title_{$row['sc_id']}", $value === '*' ? '*' : explode(',', $value), false, array( 'options' => array_combine(array_keys(\IPS\Member\Group::groups()), array_map(function($_group) { return (string) $_group; }, \IPS\Member\Group::groups())), 'multiple' => true, 'parse' => 'normal', 'unlimited' => '*', 'unlimitedLang' => 'all' ), null, null, null, 'theme_setting_' . $row['sc_key'] ); Link to comment Share on other sites More sharing options...
Heosforo Posted May 8, 2018 Author Share Posted May 8, 2018 Thanks mate, in a certain way I was waiting for you ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.