Jump to content
Дизайн и модификация Invision Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
klikuxa

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

Recommended Posts

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

Share this post


Link to post

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

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

Share this post


Link to post

Открываем шаблон 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, чтобы подогнать размер и прочие настройки!

  • Upvote 1

Share this post


Link to post

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

Share this post


Link to post

Тогда идём в 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>

  • Upvote 1
  • Downvote 1

Share this post


Link to post

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

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...