Announcement

Collapse
No announcement yet.

Make Forum Statistics Module Rock! (vBCloud compatible)

Collapse
X
Collapse
First Prev Next Last
  • Filter
  • Time
  • Show
Clear All
new posts

    Official - Free Make Forum Statistics Module Rock! (vBCloud compatible)

    Make your Forum Statistics Module rock like this:

    Click image for larger version  Name:	forum-statistics-min.png Views:	1 Size:	22.8 KB ID:	11409

    with these simple HTML and CSS changes. This mod is vBCloud compatible.

    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 homepage.

    This is a FREE mod. Please consider donating if you find this useful. Thank you!

    If you are not comfortable doing these changes on your forum and you want us to do it all for you, you could purchase a product installation service add-on below.

    Product Installation Add-On: $20
    Purchase this product add-on to get professional installation of this mod from us.

    Buy Now Add to Cart View Cart
    Last edited by glennrocksvb; 06-13-2018, 01:09 AM.

    #2
    I did it
    This is a nice improvement over the first active users fix

    Thanks

    Comment


      #3
      Glad you liked it.

      Comment


      • willie53
        willie53 commented
        Editing a comment
        Have a Coffee Break on me

      #4
      This says need to register or login to see code, I am registered and logged in ??

      Comment


      #5
      Originally posted by keyla31 View Post
      This says need to register or login to see code, I am registered and logged in ??
      Awesome, thank you so much!

      Comment


        #6
        thank you so much

        Comment


          #7
          Thanks.

          Comment

          Working...
          X