Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Нужен вот этот превосходный хук для 3.4.x. Прошу помочь! ;)

Featured Replies

Posted

Нужен вот этот хук, который высвечивает "Объявление", потом уже идут поднятые темы, потом обычные темы. Т.е. до "ТЕМЫ ФОРУМА", выводит ещё блок с важными темами. Прошу найти, перерыл множество тем... Не нашёл как это сделать. Помогите, пожалуйста.

 

post-10047-0-47107900-1372926020_thumb.p

Edited by Ereman

Я знаю способ для разделения прикрепленных и обычных тем, может пригодится?

Внешний вид >> Шаблон >> Forum view >> Forumindextemplate
 
Найти <tr class='header hide'>

 

Исходный код

<tr class='header hide'>

                    <th scope='col' class='col_f_icon'>&nbsp;</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['forum_started_by']}</th>

                    <th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>

                    <if test="canSeeLastInfoHeader:|:$this->memberData['gbw_view_last_info']"><th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th></if>

                    <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>    

                <!-- BEGIN TOPICS -->

                <if test="hastopics:|:is_array( $topic_data ) AND count( $topic_data )">

                    <foreach loop="topics:$topic_data as $tid => $data">

                        {parse template="topic" group="forum" params="$data, $forum_data, $other_data, $inforum"}

                    </foreach>

Заменить все этим кодом

<tr class='subhead altbar'>

                                        <th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>

                                        <if test="$this->hasPinned=0">Темы форума</if><if test="$this->hasPinned=1">Закрепленные темы</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>'>

Forum Topics

                                        </th>

</tr>

</if>

</if>

                        {parse template="topic" group="forum" params="$data, $forum_data, $other_data, $inforum"}

                    </foreach>

Edited by Kinkl

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.