В шаблоне boardIndexTemplate находим:
<if test="showTotals:|:$this->settings['show_totals']"> <div id='board_stats'> <ul class='ipsType_small ipsList_inline'> <li class='clear'> <span class='value'>{$stats['info']['total_posts']}</span> {$this->lang->words['total_posts']} </li> <li class='clear'> <span class='value'>{$stats['info']['mem_count']}</span> {$this->lang->words['total_members']} </li> <li class='clear'> <a href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}' class='value'>{$stats['info']['last_mem_name']}</a> {$this->lang->words['newest_member']} </li> <li class='clear' data-tooltip="{$stats['info']['most_time']}"> <span class='value'>{$stats['info']['most_online']}</span> {$this->lang->words['online_at_once']} </li> </ul> </div> </if> <div id='board_statistics' class='statistics clearfix'> <ul id='stat_links' class='ipsList_inline right ipsType_small'> <if test="statsLinks:|:1==1"> <!-- Hook point --> <li><a href="{parse url="app=forums&module=extras§ion=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li> <li><a href="{parse url="app=forums&module=extras§ion=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li> <li><a href="{parse url="app=members&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public" seotitle="false"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li> </if> </ul> <h4 class='statistics_head'>{parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"} {$this->lang->words['active_users']}</h4> <p class='statistics_brief desc'> {parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"} <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>({$this->lang->words['online_link']})</a> </p> <if test="activeNames:|:count($stats['NAMES'])"> <br /> <p> <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span> </p> </if> </div>
И заменяем на:
<br> <h3 class='maintitle'>Статистика <span class='right desc'> <ul id='stat_links' class='ipsList_inline right ipsType_small'> <if test="statsLinks:|:1==1"> <!-- Hook point --> <li><a href="{parse url="app=forums&module=extras&section=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li> <li><a href="{parse url="app=forums&module=extras&section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li> <li><a href="{parse url="app=members&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public" seotitle="false"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li> <if test="reputationEnabled:|:$this->settings['reputation_enabled']"> <li> <a href="{parse url="app=members&module=reputation&section=most" base="public" template="most_liked" seotitle="most_liked"}"> <if test="reputationType:|:$this->settings['reputation_point_types'] == 'like'"> {$this->lang->words['most_rep_likes']} <else /> {$this->lang->words['most_rep_rep']} </if> </a> </li> </if> </if> </ul></h3> <div class='ipsBox table_wrap'> <div class='ipsBox_container'> <div id='board_statistics' class='statistics general_box'> <if test="showTotals:|:$this->settings['show_totals']"> <div id='stats'> <h4 class='statistics_head'>{$this->lang->words['board_stats']}</h4> <dl> <dt>{$this->lang->words['total_posts']}</dt> <dd>{$stats['info']['total_posts']}</dd> <dt>{$this->lang->words['total_members']}</dt> <dd>{$stats['info']['mem_count']}</dd> <dt>{$this->lang->words['newest_member']}</dt> <dd><a href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}'>{$stats['info']['last_mem_name']}</a>{parse template="user_popup" group="global" params="$stats['info']['last_mem_id'],$stats['info']['last_mem_seo']"} </dd> <dt>{$this->lang->words['online_at_once']}</dt> <dd>{$stats['info']['most_online']}<br /><span class='extra'>{$stats['info']['most_time']}</span></dd> </dl> </div> </if> <if test="showActive:|:$this->settings['show_active']"> <h4 class='statistics_head'>{parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"} {$this->lang->words['active_users']}</h4> <p class='statistics_brief desc'> {parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"} <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>({$this->lang->words['online_link']})</a> </p> <if test="activeNames:|:count($stats['NAMES'])"> <br /> <p> <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span> </p> </if> </if> </div> </div> </div>
В самый низ шаблона ipb_styles.css добавляем:
#stats { border-left: 1px solid #e4ebf2; padding-left: 20px; width: 33%; float: right; } #stats dl { margin-left: 10px; } #stats dt, #stats dd { border-top: 1px solid #dedede; font-size: 0.85em; padding: 6px 2px; float: left; width: 45%; } #stats dt { font-weight: bold; clear: both; } #stats .extra { color: #a2a2a2; font-size: 0.9em; }
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.