Перейти до змісту
Домент ipb-board.ru продається.

Изменение внешый вид статистики

Рекомендовані відповіді

Опубліковано
  • Адміністратор

post-2-0-10776800-1451819023_thumb.png

Перейти Админ Панель-Внешний вид-Ваш стиль-Список форумов-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'>				{IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}				{$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'>	<h4 class='statistics_head 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&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"}" title="<if test="reputationTypeTitle:|:$this->settings['reputation_point_types'] == 'like'">{$this->lang->words['most_rep_likes']}<else />{$this->lang->words['most_rep_rep']}</if>">                        <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><if test="showActive:|:$this->settings['show_active'] && $this->memberData['gbw_view_online_lists']">{parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"} {$this->lang->words['active_users']}</if></h4>	<if test="$this->settings['show_active']"><p class='statistics_brief desc'>		{parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"}		<if test="onlineListEnabled:|:$this->settings['allow_online_list']">  <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}' title='{$this->lang->words['online_link']}'>({$this->lang->words['online_link']})</a> </if>	</p></if>		<if test="activeNames:|:count($stats['NAMES']) && $this->settings['show_active']">		<br />		<p>			<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>							</p>	</if></div>

Заменить все на:

<h3 id='category_stats' class='maintitle'>    <a title='{$this->lang->words['board_stats']}'>{$this->lang->words['board_stats']}</a>    <span class="right desc">    <if test="statsLinks:|:1==1"> <!-- Hook point -->        <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> ·         <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> ·         <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>        <if test="reputationEnabled:|:$this->settings['reputation_enabled']">             · <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>        </if>    </if>    </span></h3><div class='table_wrap'>    <div id='board_statistics' class='category_block statistics clearfix stats_container row2 stats_border'>        <if test="showTotals:|:$this->settings['show_totals']">        <div id='stats'>            <h2>{$this->lang->words['board_stats']}</h2>            <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>                    {IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}                </dd>                <dt>                    {$this->lang->words['online_at_once']}                </dt>                <dd>                    {$stats['info']['most_online']}<br>                    <span class='extra'>{$stats['info']['most_time']}</span>                </dd>                <dt>                </dt>                <dd>                </dd>            </dl>        </div>        </if>        <div id='active_users' class='stats_list'>            <if test="showActive:|:$this->settings['show_active'] && $this->memberData['gbw_view_online_lists']">                <h2>                    {parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"}                    <span>{$this->lang->words['active_users']}</span><br>                    <span class='desc'>                        {parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"}                        <if test="onlineListEnabled:|:$this->settings['allow_online_list']">  <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>({$this->lang->words['online_link']})</a></if>                    </span>                </h2>            </if>            <if test="activeNames:|:count($stats['NAMES']) && $this->settings['show_active']">                <p>                    <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>                </p>            </if>        </div>    </div></div>

Админ Панель-Внешний вид-Ваш стиль-сss-ipb_styles.css найти:

"/* board stats */"

до самого конца этого div'у

/* board stats */#board_stats ul { text-align: center; }    #board_stats li { margin-right: 20px; }    #board_stats .value {        display: inline-block;        background: #e2e2e2;        color: #4a4a4a;        padding: 2px 6px;        font-weight: bold;        -moz-border-radius: 2px;        -webkit-border-radius: 2px;        border-radius: 2px;        margin-right: 3px;    }.statistics {    margin: 10px 0 0;    min-height: 160px;    padding: 15px;}.statistics h2 {    font-size: 1.1em;    font-weight: bold;}.statistics h2 span {    color: #8D8D8D;    font-size: 0.8em;    font-weight: normal;}.statistics #active_users, .statistics #forum_active_users {    border-top: 0 none;    padding-top: 0;}body #topic_stats.statistics {min-height: 50px;}body .stats_list {border-top: 1px solid #F5F5F5;float: left;font-size: 12px;line-height: 140%;margin-bottom: 10px;overflow: hidden;padding: 10px 0 0;width: 68%;}.stats_list li, .active_users li {float: left;/*font-size: 0.9em;*/margin-top: 4px;padding: 0 5px 0 0;}.stats_list ul, .stats_list p {margin-left: 15px;}.stats_list span.desc {font-weight: normal;}.active_users span.name {font-size: 0.9em;margin-top: 4px;padding: 0 5px 0 0;}.active_users p {margin-left: 15px;}#stats {border-left: 1px solid #393939;float: right;padding-left: 20px;width: 30%;}#stats dl {margin-left: 10px;}#stats dt {border-top: 1px solid #393939;float: left;font-size: 0.85em;padding: 6px 2px;width: 45%;}#stats dd {border-top: 1px solid #393939;float: left;font-size: 0.85em;padding: 6px 3px;width: 45%;}#stats dt {clear: both;font-weight: bold;}#stats .extra {color: #A2A2A2;font-size: 0.9em;}.stats_container {margin-top: 0 !important;padding-right: 0 !important;position: relative;}.stats_container #stats {border-left: 1px solid #393939;border-radius: 0 2px 2px 0;bottom: 0;padding-left: 15px;padding-top: 15px;position: absolute;right: 0;top: 0;}.stats_border, .help_doc {border: 1px solid #393939;}#index_stats .hentry, .row1 td, .row2 td, #help_topics li {border-bottom: 1px solid #393939;border-top: 1px solid #393939;}#premium_ads {background: none repeat scroll 0 0 #3076A8;border-radius: 2px 2px 2px 2px;color: #FFFFFF;display: inline-block;font-size: 11px;padding: 2px 4px;text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);}#premium_ads a {color: #FFFFFF;}#ads {font-size: 11px;}#ads_banner {opacity: 0.6;}#ads_banner a:hover, #ads_banner:hover, #ads_banner a:active {opacity: 1;}.friend_list ul li,#top_posters li {    text-align: center;    padding: 8px 0 0 0;    margin: 5px 0 0 0;    min-width: 80px;    height: 70px;    float: left;}    .friend_list ul li span.name,    #top_posters li span.name {        font-size: 0.8em;    }    #hook_watched_items ul li {    padding: 8px;}    body#ipboard_body #hook_watched_items fieldset.submit {        padding: 8px;    }    #hook_birthdays .list_content {    padding-top: 8px;}#hook_calendar .ipsBox_container { padding: 10px; }#hook_calendar td, #hook_calendar th { text-align: center; }#hook_calendar th { font-weight: bold; padding: 5px 0;}

Для публікації повідомлень створіть обліковий запис або авторизуйтесь