Разделим закрепленные темы от основных
Пройти ACP — Внешний вид — ВАШ СТИЛЬ — Шаблоны — Список тем форума — forumIndexTemplate
ВАРИАНТ №1
Ищем:
<foreach loop="topics:$topic_data as $tid => $data">
Добавить после:
<if test="!$this->subHeadShow"> <th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'> <if test="$data['pinned']">ВАШ ТЕКСТ<else /> {$this->lang->words['forum_topic']} </if> </th> <if test="$this->subHeadShow=1"> </if> </if>
<if test="$data['pinned']">
<if test="$this->hasPinned=1"></if>
<else />
<if test="$this->hasPinned">
<if test="$this->hasPinned=0"></if>
<tr class='subhead altbar'>
<if text="$this->memberData['is_mod'] == 1">
<th scope='col' colspan='5'>
Темы
<else />
</if>
</tr>
</if>
</if>
И в ipb_styles.css найдите
table.ipb_table th {
font-size: 11px;
font-weight: bold;
padding: 6px;
}
И замените на:
table.ipb_table th {
background: #ВАШ ЦВЕТ;
font-size: 11px;
font-weight: bold;
padding: 6px;
}
ВАРИАНТ № 2
Найти:
<!-- BEGIN TOPICS -->
<if test="hastopics:|:is_array( $topic_data ) AND count( $topic_data )">
{parse striping="forumTable" classes="row1,row2"}
<foreach loop="topics:$topic_data as $tid => $data">
После него добавить:
<if test="!$this->subHeadShow">
<tr class='subhead altbar'>
<th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>
<if test="$data['pinned']">
Важные темы
<else />
Закрепленные
</if>
</th>
</tr>
<tr class='header'>
<th scope='col' class='col_f_icon'> </th>
<th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>
<th scope='col' class='col_f_starter short'>{$this->lang->words['']}</th>
<th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>
<th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>
<if test="topicsismod:|:$this->memberData['is_mod'] == 1">
<th scope='col' class='col_f_mod short'> <input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /> </th>
</if>
</tr>
<if test="$this->subHeadShow=1"> </if>
</if>
<if test="$data['pinned']">
<if test="$this->hasPinned=1"> </if>
<else />
<if test="$this->hasPinned">
<if test="$this->hasPinned=0"> </if>
<tr class='subhead altbar'>
<if test="$this->memberData['is_mod'] == 1">
<th scope='col' colspan='6'>
<else />
<th scope='col' colspan='5'>
</if>
Темы форума
</th>
</tr>
<tr class='header'>
<th scope='col' class='col_f_icon'> </th>
<th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>
<th scope='col' class='col_f_starter short'>{$this->lang->words['']}</th>
<th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>
<th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>
<if test="topicsismod:|:$this->memberData['is_mod'] == 1">
<th scope='col' class='col_f_mod short'> <input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /> </th>
</if>
</tr>
</if>
</if>
Вариант 1
Вариант 2
Источник: ipbzona.ru



Май 27th, 2012
Archi
Опубликовано в рубрике
Метки: