Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted May 8, 20187 yr 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!
May 8, 20187 yr 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'] );
Archived
This topic is now archived and is closed to further replies.