Back to vBulletin 5.x Template Modifications

[vBMods.rocks] Make Forum Statistics Module Rock! (vBCloud compatible)
Mod Version: 1.00, by noypiscripter

vB Version: 5.4.2 Rating: (2 votes - 5.00 average) Installs: 11
Released: 14 Sep 2018 Last Update: Never Downloads: 0
Not Supported Template Edits  

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.

Code:
/* 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
HTML Code:
<div class="widget-stat-item">
    <div class="widget-stat-number">{1}</div>
    <div class="widget-stat-label">Topics</div>
</div>
posts_x
HTML Code:
<div class="widget-stat-item">
    <div class="widget-stat-number">{1}</div>
    <div class="widget-stat-label">Posts</div>
</div>
members_x
HTML Code:
<div class="widget-stat-item">
    <div class="widget-stat-number">{1}</div>
    <div class="widget-stat-label">Members</div>
</div>
active_members_x
HTML Code:
<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.
Code:
<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

Download

No files for download.

Screenshots

Click image for larger version
Name:	vbmods-rocks-forum-statistics.jpg
Views:	406
Size:	24.2 KB
ID:	157198  

Similar Mods

Forum Home Enhancements [vBMods.rocks] Forum Category Spacing - no template editing needed/vBCloud compatible vBulletin 5.x Template Modifications
Calendar Enhancements [vBMods.rocks] Event Date That Rocks using CSS vBulletin 5.x Template Modifications
Forum Display Enhancements [vBMods.rocks] Display Forum Description on Forum Channel page using an Ad Module vBulletin 5.x Products & Extensions

vblts.ru supports vBulletin®, 2022-2024