Jump to content

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


DarthOld
 Share

Recommended Posts

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

 

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

 

Админцентр - Внешний вид - %Ваш стиль% - Шаблоны - Список тем форума - 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

 

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

  • Upvote 2
Link to comment
Share on other sites

  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...