Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
aXenDev Posted July 8, 2019 Posted July 8, 2019 Hello, Referring to the code @newbie LAC in my previous topic, I'm trying to get the groups out of display. I try this: if (isset($allGroups[$sid]) = explode(',', \IPS\Settings::i()->ips1s2kSGIExclude)) unset($allGroups[$sid]); But I get an error: "Your code caused a parse error and could not be saved.". At this moment the error causes "\IPS\Settings::i()->ips1s2kSGIExclude". I added the settings to the plugin and added the code: $form->add(new \IPS\Helpers\Form\Select('ips1s2kSGIExclude', \IPS\Settings::i()->ips1s2kSGIExclude === '' ? '*' : (\IPS\Settings::i()->ips1s2kSGIExclude === '*' ? '*' : explode(',', \IPS\Settings::i()->ips1s2kSGIExclude)), FALSE, [ 'options' => \IPS\Member\Group::groups(TRUE, FALSE), 'multiple' => TRUE, 'parse' => 'normal' ]));
newbie LAC Posted July 8, 2019 Posted July 8, 2019 Hello, if (\in_array($sid, explode(',', \IPS\Settings::i()->ips1s2kSGIExclude))) { unset($allGroups[$sid]); }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.