Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Heosforo Posted May 8, 2018 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!
newbie LAC Posted May 8, 2018 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'] );
Heosforo Posted May 8, 2018 Author Posted May 8, 2018 Thanks mate, in a certain way I was waiting for you ?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.