вопрос
в inc/addnews.php примерно с 585 строки есть код:
Заменить:
if( $member_id['user_group'] < 3 ) {
foreach ( $user_group as $group ) {
if( $group['id'] > 1 ) {
echo <<<HTML
<div class="form-group">
<label class="control-label col-md-2 col-sm-3">{$group['group_name']}</label>
<div class="col-md-10 col-sm-9">
<select class="uniform" name="group_extra[{$group['id']}]">
<option value="0">{$lang['ng_group']}</option>
<option value="1">{$lang['ng_read']}</option>
<option value="2">{$lang['ng_all']}</option>
<option value="3">{$lang['ng_denied']}</option>
</select>
</div>
</div>
HTML;
}
}
} else {
Заменить:
if( $member_id['user_group'] < 3 ) {
foreach ( $user_group as $group ) {
if( $group['id'] > 1 ) {
$o_sel = ($group['id'] == 2 OR $group['id'] == 3) ? "selected" : "";
echo <<<HTML
<div class="form-group">
<label class="control-label col-md-2 col-sm-3">{$group['group_name']}</label>
<div class="col-md-10 col-sm-9">
<select class="uniform" name="group_extra[{$group['id']}]">
<option value="0">{$lang['ng_group']}</option>
<option value="1">{$lang['ng_read']}</option>
<option value="2">{$lang['ng_all']}</option>
<option value="3" {$o_sel}>{$lang['ng_denied']}</option>
</select>
</div>
</div>
HTML;
}
}
} else {