Helpful Information
 
 
Category: vBulletin 5.x Template Modifications
Statistics Modifications - [vBMods.rocks] Make Forum Statistics Module Rock! (vBCloud compatible)

Make your Forum Statistics Module rock with these simple HTML (in the Phrase Manager) and CSS changes. This mod is vBCloud compatible. Please see the attachment to see how it looks like.

1. Paste the below CSS code in css_additional template in AdminCP or in Sitebuilder > Style > CSS Editor. Repeat for every active style/theme your forum is using. This code is based off the vB5 Default Style. You may need to tweak some values to suit your theme.

/* Statistics Module - START */
.widget-stat-item {
display: inline-block;
margin: 10px 10px 20px;
width: 39%; /* adjust as needed, may need to increase/decrease it */
box-sizing: border-box;
}
.widget-stat-number {
text-align: center;
font-weight: bold;
font-size: 20px;
color: #001f68; /* adjust color as needed or remove if you want the default color */
}
.widget-stat-label {
text-align: center;
}
.l-xsmall .widget-stat-item {
width: 40%;
}
@media (max-width:320px) {
.l-xsmall .widget-stat-item {
width: 38%;
}
}
/* Statistics Module - END */

2. Edit the following phrases in the Phrase Manager in AdminCP > Language & Phrases. Put these changes in the "English (US) Translation" field.

topics_x
<div class="widget-stat-item">
<div class="widget-stat-number">{1}</div>
<div class="widget-stat-label">Topics</div>
</div>

posts_x
<div class="widget-stat-item">
<div class="widget-stat-number">{1}</div>
<div class="widget-stat-label">Posts</div>
</div>

members_x
<div class="widget-stat-item">
<div class="widget-stat-number">{1}</div>
<div class="widget-stat-label">Members</div>
</div>

active_members_x
<div class="widget-stat-item">
<div class="widget-stat-number">{1}</div>
<div class="widget-stat-label">Active Members</div>
</div>

NOTE: If you want to hide a statistic (e.g. Active Members if your forum is just starting and you don't want users to see a low number), then insert the code in red below.
<div class="widget-stat-item" style="display:none;">
<div class="widget-stat-number">{1}</div>
<div class="widget-stat-label">Active Members</div>
</div>

Demo:
See the Forum Statistics module on https://vbmods.rocks

This mod is also posted at https://vbmods.rocks/forum/vbulletin-5-modifications/vbulletin-5-template-only-modifications/11408-make-forum-statistics-module-rock-vbcloud-compatible










privacy (GDPR)