• DONATE to NULLED!
    Форуму и его команде можно помочь, мотивировать модераторов разделов.
    Помогите модератору этого раздела killoff лично.

Помощь Админ панель - раздел добавление новости

Статус
В этой теме нельзя размещать новые ответы.

GIwild

Постоялец
Регистрация
6 Май 2006
Сообщения
116
Реакции
8
ДЛЕ 8.2

Как убрать в админ панели, в разделе добавление новости, поле Полное описание и увеличить высоту при этом поля Краткое описание

Объясняю для чего это нужно, делаю сайт коллективным и чтобы не заморачиваться с обучением, проще им оставить одно поле :) а все замутить с помощью дизайна

и в пятый раз спрашиваю, как обрезать короткую новость на главной, кто нибудь напишет где и что нужно выправить :)

Всем за ранее спасибо!
 
  • Заблокирован
  • #2
В файле /engine/inc/addnews.php
примерно со строки 180 идет такой код:
echo <<<HTML
<tr>
<td height="29" width="140" style="padding-left:5px;">{$lang['addnews_short']}<br /><input class=bbcodes style="width: 30px;" onclick="document.addnews.short_story.rows += 5;" type=button value=" + ">&nbsp;&nbsp;<input class=bbcodes style="width: 30px;" onclick="document.addnews.short_story.rows -= 5;" type=button value=" - "></td>
<td>{$bb_code}
<textarea rows="13" style="width:98%; padding:0px;" onclick="setFieldName(this.name)" name="short_story" id="short_story"></textarea>
</td></tr>
HTML;
}

if( $config['allow_admin_wysiwyg'] == "yes" ) {

include (ENGINE_DIR . '/editor/fullnews.php');

} else {

echo <<<HTML
<tr>
<td height="29" style="padding-left:5px;">{$lang['addnews_full']}<br /><span class="navigation">({$lang['addnews_alt']})</span><br /><input class=bbcodes style="width: 30px;" onclick="document.addnews.full_story.rows += 5;" type=button value=" + ">&nbsp;&nbsp;<input class=bbcodes style="width: 30px;" onclick="document.addnews.full_story.rows -= 5;" type=button value=" - "></td>
<td><textarea rows="16" onclick="setFieldName(this.name)" name="full_story" id="full_story" style="width:98%;"></textarea>
</td></tr>
HTML;
}
в textarea rows="13" меняешь на rows="20" и т.д. сколько нужно строк.И убираешь
<textarea rows="16" onclick="setFieldName(this.name)" name="full_story" id="full_story" style="width:98%;"></textarea>
т.е. в итоге будет примерно так:
echo <<<HTML
<tr>
<td height="29" width="140" style="padding-left:5px;">{$lang['addnews_short']}<br /><input class=bbcodes style="width: 30px;" onclick="document.addnews.short_story.rows += 5;" type=button value=" + ">&nbsp;&nbsp;<input class=bbcodes style="width: 30px;" onclick="document.addnews.short_story.rows -= 5;" type=button value=" - "></td>
<td>{$bb_code}
<textarea rows="20" style="width:98%; padding:0px;" onclick="setFieldName(this.name)" name="short_story" id="short_story"></textarea>
</td></tr>
HTML;
}

if( $config['allow_admin_wysiwyg'] == "yes" ) {

include (ENGINE_DIR . '/editor/fullnews.php');

} else {

echo <<<HTML
<tr>
<td height="29" style="padding-left:5px;">{$lang['addnews_full']}<br /><span class="navigation">({$lang['addnews_alt']})</span><br /><input class=bbcodes style="width: 30px;" onclick="document.addnews.full_story.rows += 5;" type=button value=" + ">&nbsp;&nbsp;<input class=bbcodes style="width: 30px;" onclick="document.addnews.full_story.rows -= 5;" type=button value=" - "></td>
<td>
</td></tr>
HTML;
}
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху