vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=259)
-   -   Statistics Modifications - [vBMods.rocks] Make Forum Statistics Module Rock! (vBCloud compatible) (https://vborg.vbsupport.ru/showthread.php?t=326729)

noypiscripter 09-13-2018 09:00 PM

[vBMods.rocks] Make Forum Statistics Module Rock! (vBCloud compatible)
 
1 Attachment(s)
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...oud-compatible

goxy63 02-18-2019 11:39 AM

Looking very nice, thank you

In Omnibus 02-18-2019 12:24 PM

This could easily have been a paid modification. Nice of you to release it free.

tattotattoo 08-24-2020 04:31 PM

wow thanks bro!

ywwz 09-08-2020 03:57 AM

Work on 5.6.3?

Blackhorse 11-02-2020 09:35 PM

Quote:

Originally Posted by ywwz (Post 2603915)
Work on 5.6.3?

Yes

Mike1995 11-28-2020 03:45 PM

5.6.4?

leha 11-29-2020 11:24 AM

Quote:

Originally Posted by Mike1995 (Post 2604898)
5.6.4?

Yes

Mboora 12-27-2020 10:42 PM

Works perfect in 5.6.4.

Thank you!

It would look better with padding around the wording such as Topics, Posts, Members etc...

TheDigitalCouch 07-16-2022 03:25 PM

1 Attachment(s)
This did not center the "Welcome to our newest member."

I've added this at the bottom css_additional.css:
PHP Code:

.center-newest-member {
text-aligncenter;


Then search for welcome_to_our_newest_member_x in Languages & Phrases and use:
PHP Code:

<div class="center-newest-member">
        
Welcome to our newest member, <a href="{1}" data-vbnamecard="{3}">{2}</a>.
</
div

I've also edited 39% to 30% and it allowed it to be 3 on one row.


All times are GMT. The time now is 03:41 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01277 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete