Go Back   vb.org Archive > vBulletin Modifications > vBulletin 5.x Modifications > vBulletin 5.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[vBMods.rocks] Make Forum Statistics Module Rock! (vBCloud compatible) Details »»
[vBMods.rocks] Make Forum Statistics Module Rock! (vBCloud compatible)
Version: 1.00, by noypiscripter noypiscripter is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Statistics Modifications - Version: 5.4.2 Rating:
Released: 09-13-2018 Last Update: Never Installs: 11
Template Edits
 
No support by the author.

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

Screenshots

File Type: jpg vbmods-rocks-forum-statistics.jpg (24.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
In Omnibus

Comments
  #2  
Old 02-18-2019, 11:39 AM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking very nice, thank you
Reply With Quote
  #3  
Old 02-18-2019, 12:24 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This could easily have been a paid modification. Nice of you to release it free.
Reply With Quote
  #4  
Old 08-24-2020, 04:31 PM
tattotattoo tattotattoo is offline
 
Join Date: Aug 2020
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow thanks bro!
Reply With Quote
  #5  
Old 09-08-2020, 03:57 AM
ywwz ywwz is offline
 
Join Date: Jul 2009
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Work on 5.6.3?
Reply With Quote
  #6  
Old 11-02-2020, 09:35 PM
Blackhorse Blackhorse is offline
 
Join Date: Jul 2018
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ywwz View Post
Work on 5.6.3?
Yes
Reply With Quote
  #7  
Old 11-28-2020, 03:45 PM
Mike1995's Avatar
Mike1995 Mike1995 is offline
 
Join Date: Jun 2014
Location: Dark Side, AZ
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

5.6.4?
Reply With Quote
  #8  
Old 11-29-2020, 11:24 AM
leha leha is offline
 
Join Date: Mar 2018
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mike1995 View Post
5.6.4?
Yes
Reply With Quote
  #9  
Old 12-27-2020, 10:42 PM
Mboora Mboora is offline
 
Join Date: Dec 2020
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfect in 5.6.4.

Thank you!

It would look better with padding around the wording such as Topics, Posts, Members etc...
Reply With Quote
  #10  
Old 07-16-2022, 03:25 PM
TheDigitalCouch TheDigitalCouch is offline
 
Join Date: Jul 2022
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Images
File Type: jpg Screenshot 2022-07-16 141327.jpg (13.4 KB, 0 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04842 seconds
  • Memory Usage 2,333KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_html
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete