Skip to content

Разделить закрепленные темы на IPB 3.4.6

Сделал себе что бы закрепленные темы отделялись от обычных полосками.

 

Вот такой код исползовал:

 

Админцентр - Внешний вид - %Ваш стиль% - Шаблоны - Список тем форума - forumIndexTemplate

 

Ищем:

 

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

Добавить после:

 

							<if test="$data['pinned'] && !$this->hasPinned && $this->hasPinned=1">
							<tr class='subhead altbar'>
								<th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>Важные темы</th>
							</tr>
						</if>
						<if test="!$data['pinned'] && $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>

 

И в ipb_styles.css добавьте:

 

table.ipb_table tr.subhead {
background: #D6E4F1; /* ваш цвет */
font-size: 11px;
padding: 6px;
}

________________

 

Но получилось как то не до конца, почему у меня вторая полоска, там где просто "Темы" - не до конца вправо доходит. Обрывается ???

 

iDKl32C.png

 

Что нужно дописать где?

Featured Replies

Что нужно дописать где7

Заменить 6 на 7, а 5 на 6.

Спасибо, подошло на IPB 3.2.3.

Немного поэкспериментировал со цветом и в итоге вышло просто замечательно!

  • Author

Спасибо.

Взаимно.

  • 7 months later...

Всё получилось, спасибо большое!

Create an account or sign in to comment

Account

Navigation

Search

Search

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.