Перейти к публикации
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.

Поменять местами "Статистика" и "Последнее сообщение"

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

Подскажите можно ли поменять местами блоки "Статистика" и "Последнее сообщение". Если, можно, прошу подробно написать, так как в этих делах только начинающий. Заранее спасибо!

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

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

А где эти блоки расположены?

Покажите на примере нашего форума.

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

Открываем шаблон Board Index --> boardIndexTemplate

Находим:

<tr class='header'>
							<th scope='col' class='col_c_icon'> </th>
							<th scope='col' class='col_c_forum'>{$this->lang->words['cat_name']}</th>
							<th scope='col' class='col_c_stats stats'>{$this->lang->words['stats']}</th>
							<th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th>
						</tr>

 

Заменяем на:

<tr class='header'>
							<th scope='col' class='col_c_icon'> </th>
							<th scope='col' class='col_c_forum'>{$this->lang->words['cat_name']}</th>
							<th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th>
							<th scope='col' class='col_c_stats stats'>{$this->lang->words['stats']}</th>
						</tr>

 

Что мы сделали? Мы просто поменяли строки Статистика и Последнее сообщение местами, естественно, после это придётся отредактировать ipb_styles.css, чтобы подогнать размер и прочие настройки!

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

А если речь о просмотре форума? Там тоже есть "Статистика" и "Последнее сообщение"

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

Тогда идём в Forum View --> forumIndexTemplate

Найти:

<td class='stats<if test="queuedposts:|:)$this->memberData['is_mod'] AND $data['_hasqueued']) OR ($forum_data['permissions']['PostSoftDeleteSee'] AND $data['topic_deleted_posts'])"> moderated</if>'>
						<ul>
							<li>
								<if test="queuedpostsImg:|:)$this->memberData['is_mod'] AND $data['_hasqueued'])">
									<a href='{parse url="showtopic={$data['tid']}&modfilter=invisible_posts" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['view_uapproved_posts']}'><img src='{$this->settings['img_url']}/bullet_error.png' alt='' /></a>
								</if>
								<if test="deletedPostsImg:|B)$forum_data['permissions']['PostSoftDeleteSee'] AND $data['topic_deleted_posts'])">
									<a href='{parse url="showtopic={$data['tid']}&modfilter=deleted_posts" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['view_deleted_posts']}'><img src='{$this->settings['img_url']}/bullet_delete.png' alt='' /></a>
								</if>
								{$data['posts']} <if test="replylang:|:intval($data['__posts']) == 1">{$this->lang->words['reply']}<else />{$this->lang->words['replies']}</if>
							</li>


							<li class='views desc'>{$data['views']} {$this->lang->words['views']}</li>
						</ul>
					</td>
					<td class='altrow'>
						<ul class='last_post'>
							<li>
								<a href='{parse url="showtopic={$data['tid']}&view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>{parse replacement="f_lastpost"}</a> <a href='{parse url="showtopic={$data['tid']}&view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>{parse date="$data['last_post']" format="SHORT"}</a>
							</li>
							<li>{$this->lang->words['forum_by']} {$data['last_poster']}{parse template="user_popup" group="global" params="$data['last_poster_id'], $data['seo_last_name']"}</li>
						</ul>
					</td>

 

Заменить на:

<td class='altrow'>
						<ul class='last_post'>
							<li>
								<a href='{parse url="showtopic={$data['tid']}&view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>{parse replacement="f_lastpost"}</a> <a href='{parse url="showtopic={$data['tid']}&view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>{parse date="$data['last_post']" format="SHORT"}</a>
							</li>
							<li>{$this->lang->words['forum_by']} {$data['last_poster']}{parse template="user_popup" group="global" params="$data['last_poster_id'], $data['seo_last_name']"}</li>
						</ul>
					</td>
					<td class='stats<if test="queuedposts:|B)$this->memberData['is_mod'] AND $data['_hasqueued']) OR ($forum_data['permissions']['PostSoftDeleteSee'] AND $data['topic_deleted_posts'])"> moderated</if>'>
						<ul>
							<li>
								<if test="queuedpostsImg:|B)$this->memberData['is_mod'] AND $data['_hasqueued'])">
									<a href='{parse url="showtopic={$data['tid']}&modfilter=invisible_posts" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['view_uapproved_posts']}'><img src='{$this->settings['img_url']}/bullet_error.png' alt='' /></a>
								</if>
								<if test="deletedPostsImg:|:($forum_data['permissions']['PostSoftDeleteSee'] AND $data['topic_deleted_posts'])">
									<a href='{parse url="showtopic={$data['tid']}&modfilter=deleted_posts" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['view_deleted_posts']}'><img src='{$this->settings['img_url']}/bullet_delete.png' alt='' /></a>
								</if>
								{$data['posts']} <if test="replylang:|:intval($data['__posts']) == 1">{$this->lang->words['reply']}<else />{$this->lang->words['replies']}</if>
							</li>


							<li class='views desc'>{$data['views']} {$this->lang->words['views']}</li>
						</ul>
					</td>

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

Pavlik, мега спасибо!

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

Сейчас на странице 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.