2012-01-21, 05:23 PM
NOTE: Make a backup of the code in Index_statisctic templates and Global CSS code
What is it?
Live preview
{$stats['numposts']} = Total forum posts
{$stats['numthreads'] = Total threads
{$stats['numusers']} = Total members
Step one:
Go to Index templates -> index_boardstats template
Step two:
Replace
Step three
After
Add
CSS steps
Step 1:
Go to Themes -> your theme -> Global.css
Click on 'ModeEdit Stylesheet: Advanced Mode'
Step 2:
Look for
Add Under this code
Resize The text next to it:
Add under this class:
the Transition is the new CSS3 effects hover change colors
If you got some questions, feel free to ask!
Enjoy!
Thanks to:
Jony (Rapture-gfx) Tutorial and effect idea
Jon (ThemeFreak) for CSS3 effects and code\idea
What is it?
Live preview
{$stats['numposts']} = Total forum posts
{$stats['numthreads'] = Total threads
{$stats['numusers']} = Total members
Step one:
Go to Index templates -> index_boardstats template
Step two:
Replace
{$forumstats}
with</tbody>
Step three
After
</table>
<br />
(At the end of the code)Add
<div style="text-align: center">
<span class="stats">{$stats['numposts']}</span><span class="statstext"> Posts</span>
<span class="stats">{$stats['numthreads']}</span> <span class="statstext">Threads</span>
<span class="stats">{$stats['numusers']}</span> <span class="statstext">Members</span>
</div>
<br />
CSS steps
Step 1:
Go to Themes -> your theme -> Global.css
Click on 'ModeEdit Stylesheet: Advanced Mode'
Step 2:
Look for
.thead a:hover, .thead a:active {
transition: .2s linear;
-moz-transition:.2s linear;
-webkit-transition:.2s linear;
text-decoration: underline;
}
Add Under this code
.stats {
-webkit-box-shadow: inset 20px 58px 20px 70px #538297;
-moz-box-shadow: inset 20px 58px 20px 70px #538297;
box-shadow: inset 20px 58px 20px 70px #538297;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
margin-left:50px;
color: #ffffff;
font-size: 17px;
padding: 3px 8px;
}
Resize The text next to it:
Add under this class:
.stats:hover {
color: #80d0cd;
-webkit-transition: color 200ms ease-in;
-moz-transition: color 200ms ease-in;
-o-transition: color 200ms ease-in;
}
the Transition is the new CSS3 effects hover change colors
If you got some questions, feel free to ask!
Enjoy!
Thanks to:
Jony (Rapture-gfx) Tutorial and effect idea
Jon (ThemeFreak) for CSS3 effects and code\idea