Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация 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.

Разделить закрепленные темы на 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

 

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

Рекомендованные сообщения

Опубликовано:

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

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

Опубликовано:

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

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

Опубликовано:
  • Автор

Спасибо.

Взаимно.

  • 7 месяцев спустя...
Опубликовано:

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

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

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.