Jump to content


(3.2.x) How to change "Board statistics" to 3.1.x style


  • You cannot start a new topic
  • You cannot reply to this topic
6 replies to this topic

#1 Broni

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 01:43 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 08 October 2011 - 04:01 AM

We want to replace this 3.2 look:

Posted Image

with 3.1 style:

Posted Image

To do this travel to ACP>Look & Feel>your_skin>Templates tab>Board Index>boardIndexTemplate

Comment out very last section:

Quote

<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&amp;module=extras&amp;section=stats&amp;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&amp;module=extras&amp;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&amp;module=list&amp;max_results=20&amp;sort_key=posts&amp;sort_order=desc&amp;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&amp;module=online&amp;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>

and replace it with this code:

Quote

<ul id='stat_links' class='ipsList_inline ipsType_small' style="text-align: center ! important;">
<if test="statsLinks:|:1==1"> <!-- Hook point -->
<li style="margin-right:20px; font-weight: bold"><a href="{parse url="app=forums&amp;module=extras&amp;section=stats&amp;do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li>
<li style="margin-right:20px; font-weight: bold"><a href="{parse url="app=forums&amp;module=extras&amp;section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li>
<li style="margin-right:20px; font-weight: bold"><a href="{parse url="app=members&amp;module=list&amp;max_results=20&amp;sort_key=posts&amp;sort_order=desc&amp;filter=ALL" base="public" seotitle="false"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li>
</if>
</ul>


<div id='board_statistics' class='statistics clearfix'>
<div style="width: 25%; float: right">
<if test="showTotals:|:$this->settings['show_totals']">
<div id='board_stats'>
<ul class='ipsType_small ipsList_inline' style="text-align:right !important">
<a style="margin-right:30px; font-weight: bold; font-size:14px; text-decoration: underline">Our Board Statistics</a>
<br><br>
<li class='clear'>
{$this->lang->words['total_posts']}:
<span style="background: none" class='value'>{$stats['info']['total_posts']}</span>
</li>
<br><br>
<li class='clear'>
{$this->lang->words['total_members']}:
<span style="background: none" class='value'>{$stats['info']['mem_count']}</span>
</li>
<br><br>
<li class='clear'>
{$this->lang->words['newest_member']}:
<a style="background: none; color: blue; text-decoration: underline;" href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}' class='value'>{$stats['info']['last_mem_name']}</a>
</li>
<br><br>
<li class='clear' data-tooltip="{$stats['info']['most_time']}">
{$this->lang->words['online_at_once']}:
<span style="background: none" class='value'>{$stats['info']['most_online']}</span>
</li>
</ul>
</div>
</if>
</div>



<div style="width: 75%">
<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&amp;module=online&amp;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></div>


#2 merk_sfi Re: (3.2.x) How to change "Board statistics" to 3.1.x style

    Member

  • 11 posts
  • Joined: October 07, 2011
  • 2 topics
  • Local time: 07:43 PM
  • Zodiac:Virgo
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 11h 43m 44s

Posted 21 October 2011 - 12:35 AM

wow looks awesome - thank you so much your assistance with this is greatly appreciated.

#3 Broni Re: (3.2.x) How to change "Board statistics" to 3.1.x style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 01:43 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 21 October 2011 - 04:01 AM

You're very welcome :smiley_says_hello:

#4 peterc Re: (3.2.x) How to change "Board statistics" to 3.1.x style

    $ Supporting Member

  • 205 posts
  • Joined: January 15, 2010
  • 15 topics
  • Skin: Smartest
  • Local time: 04:43 AM
  • Zodiac:Aquarius
  • Gender:Male
  • Location:New York
  • OS:Windows XP
  • Country:
Offline
  • Time Online: 28d 10h 37m 44s

Posted 21 October 2011 - 01:09 PM

yes Broni,I changed mine as well

This is one of my favorite sites too

Thank you

#5 Broni Re: (3.2.x) How to change "Board statistics" to 3.1.x style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 01:43 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 21 October 2011 - 07:29 PM

You're very welcome :smiley_says_hello:

#6 ladybugz Re: (3.2.x) How to change "Board statistics" to 3.1.x style

    Member

  • 29 posts
  • Joined: April 27, 2011
  • 5 topics
  • Skin: Paradox
  • Local time: 04:43 AM
  • Zodiac:Capricorn
  • Gender:Female
  • OS:Windows XP
  • Country:
Offline
  • Time Online: 5h 58m 19s

Posted 04 November 2011 - 01:21 AM

I was wondering how to do this! I didn't like the new version that much, so thank you :)

#7 Broni Re: (3.2.x) How to change "Board statistics" to 3.1.x style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 01:43 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 04 November 2011 - 01:23 AM

You're very welcome :smiley_says_hello:





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 22 user(s)