Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 23, 20168 yr help please never-mind. I figured it out. "set as members theme in drop down"
March 25, 20168 yr Author I do have one question though. Since this is essentially setting all members in the group to use new theme instead of making a specific theme default for the respective group... Does this mean every single time I add a new member to a given group I will have to hit this setting?
March 25, 20168 yr Yes, you will have to set it as their theme unless they already have it set. I found where it excutes when you Set As Members Theme /** * Set Members * * @return void */ public function setMembers() { $form = new \IPS\Helpers\Form; $form->hiddenvalues['id'] = \IPS\Request::i()->id; $form->add( new \IPS\Helpers\Form\Select( 'member_reset_where', '*', TRUE, array( 'options' => \IPS\Member\Group::groups( TRUE, FALSE ), 'multiple' => TRUE, 'parse' => 'normal', 'unlimited' => '*', 'unlimitedLang' => 'all' ) ) ); if ( $values = $form->values() ) { if ( $values['member_reset_where'] === '*' ) { $where = NULL; } else { $where = \IPS\Db::i()->in( 'member_group_id', $values['member_reset_where'] ); } \IPS\Db::i()->update( 'core_members', array( 'skin' => \IPS\Request::i()->id ), $where ); \IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=core&module=customization&controller=themes' ), 'reset' ); } \IPS\Output::i()->output = $form; }
Archived
This topic is now archived and is closed to further replies.