[Мод] Разделение топиков (Важные отдельно от основных)

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

AbyssMoon

Создатель
Регистрация
5 Июл 2009
Сообщения
32
Реакции
7
temp.png


Acesse: Admin CP > Look&Feel > Manage Template & CSS > Forum View > forumIndexTemplate
Ищем:
Код:
<tr class='subhead altbar'>
                    <th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>
                        {$this->lang->words['forum_topic_list']}
                    </th>
                </tr>
            </if>
            <!-- 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">
Меняем на:
Код:
<tr class='subhead altbar'>
                    <th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>
                        <if test="$this->hasPinned=1">Важные Темы</if><if test="$this->hasPinned=0">Другие темы</if>
                    </th>
                </tr>
            </if>
            <!-- 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="$data['pinned']">
<if test="$this->hasPinned=1">
</if><else />
<if test="$this->hasPinned">
<if test="$this->hasPinned=0">
</if>
<tr class='subhead altbar'>
<th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>
Другие темы
    </th>
   </tr>
  </if>
</if>
 
Это точно работает? Как настраивается в админке?
 
Это точно работает? Как настраивается в админке?
Вот поставь и проверь и не стоит задавать подобных вопросов.
Настраивается так же, путем редактирования файлов шаблона.
Потому как это именно изменение оформления отображения.
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху