October 24, 201015 yr Подскажите можно ли поменять местами блоки "Статистика" и "Последнее сообщение". Если, можно, прошу подробно написать, так как в этих делах только начинающий. Заранее спасибо!
October 28, 201015 yr Открываем шаблон 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, чтобы подогнать размер и прочие настройки!
October 28, 201015 yr А если речь о просмотре форума? Там тоже есть "Статистика" и "Последнее сообщение"
October 28, 201015 yr Тогда идём в 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>
Подскажите можно ли поменять местами блоки "Статистика" и "Последнее сообщение". Если, можно, прошу подробно написать, так как в этих делах только начинающий. Заранее спасибо!