Announcement

Collapse
No announcement yet.

Removing "Active Members" from being displayed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Removing "Active Members" from being displayed

    The statistics module has a lot of nice information to share. I don't want most groups to see that as it has become a negative topic. How to I either remove it from being displayed or limit what usergroups see it? None of the answers in previous versions are relevant in vB 5.x

    Thank you.

  • #2
    Since it is a module, you can remove it via the Site Builder. Open Site Builder, remove the module, save, done.

    Comment


    • #3
      I don't want to remove the whole module, just the Active Members. There are no settings within the module itself that will allow that. This is a problem

      Comment


      • #4
        Ah, I thought you wanted to remove the entire module. So we are talking about this?

        Click image for larger version

Name:	online1.png
Views:	71
Size:	35.3 KB
ID:	4335802


        If you just want to remove the display of which users are online, you could do this via CSS. The class is "onlineuserlist.h-clearfix" and you could hide that via "display: none;" in the additional.css of your theme.

        Then it would look like this:

        Click image for larger version

Name:	online2.png
Views:	170
Size:	13.7 KB
ID:	4335803
        Attached Files

        Comment


        • #5
          I think he is talking about just above the whats going on section where you have in your pictures 345,439 members but only 792 active.

          Comment


          • #6
            Yeah, here is mine. I just want the active members removed. I have a lot of traffic but much of it is guests just reading. A small core of routine posters keep it fresh. Now I just need to know how to get rid of that part that says "Active Members"

            Comment


            • #7
              Since all those stats are not wrapped in each own HTML tags (see below), the only way to remove the Active Members info is to edit the widget_statistics template and remove it by commenting it out (enclose within <vb:comment> and </vb:comment> tags).

              Code:
              <div class="h-margin-bottom-s">
                          {vb:data statistics, site, getSiteStatistics}
                          {vb:set statistics, {vb:raw statistics.statistics}}
                          {vb:phrase topics_x, {vb:number {vb:var statistics.topics}}} &nbsp;
                          {vb:phrase posts_x, {vb:number {vb:var statistics.posts}}} &nbsp;
                          {vb:phrase members_x, {vb:number {vb:var statistics.members}}} &nbsp;
                          {vb:phrase active_members_x, {vb:number {vb:var statistics.activeMembers}}}
              </div>
              Change the above to:

              Code:
              <div class="h-margin-bottom-s">
                          {vb:data statistics, site, getSiteStatistics}
                          {vb:set statistics, {vb:raw statistics.statistics}}
                          {vb:phrase topics_x, {vb:number {vb:var statistics.topics}}} &nbsp;
                          {vb:phrase posts_x, {vb:number {vb:var statistics.posts}}} &nbsp;
                          {vb:phrase members_x, {vb:number {vb:var statistics.members}}} &nbsp;
                          <vb:comment>{vb:phrase active_members_x, {vb:number {vb:var statistics.activeMembers}}}</vb:comment>
              </div>
              If each of those were wrapped in an HTML tag (e.g. <span>) then we could have used CSS to hide them individually without modifying templates.
              Last edited by Glenn Vergara; Tue 5th Jan '16, 6:03pm.

              GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

              Comment


              • Historic Trucks
                Historic Trucks commented
                Editing a comment
                Glenn where can the widget_statistics template be found.
                Is it one of these.
                widget_statistics_title_label Standard Phrase Title (Leave empty to use &quot;&lt;SITE NAME&gt; Statistics&quot Edit
                widget_statistics_widgettitle Standard Phrase Statistics

              • Glenn Vergara
                Glenn Vergara commented
                Editing a comment
                No, those are phrase variables. Since you are on vBCloud, you have no access to templates.

            • #8
              Originally posted by Glenn Vergara View Post
              Since all those stats are not wrapped in each own HTML tags (see below), the only way to remove the Active Members info is to edit the widget_statistics template and remove it by commenting it out (enclose within <vb:comment> and </vb:comment> tags).

              Code:
              <div class="h-margin-bottom-s">
              {vb:data statistics, site, getSiteStatistics}
              {vb:set statistics, {vb:raw statistics.statistics}}
              {vb:phrase topics_x, {vb:number {vb:var statistics.topics}}} &nbsp;
              {vb:phrase posts_x, {vb:number {vb:var statistics.posts}}} &nbsp;
              {vb:phrase members_x, {vb:number {vb:var statistics.members}}} &nbsp;
              {vb:phrase active_members_x, {vb:number {vb:var statistics.activeMembers}}}
              </div>
              Change the above to:

              Code:
              <div class="h-margin-bottom-s">
              {vb:data statistics, site, getSiteStatistics}
              {vb:set statistics, {vb:raw statistics.statistics}}
              {vb:phrase topics_x, {vb:number {vb:var statistics.topics}}} &nbsp;
              {vb:phrase posts_x, {vb:number {vb:var statistics.posts}}} &nbsp;
              {vb:phrase members_x, {vb:number {vb:var statistics.members}}} &nbsp;
              <vb:comment>{vb:phrase active_members_x, {vb:number {vb:var statistics.activeMembers}}}</vb:comment>
              </div>

              Thank you. I'll have to pass this along as I don't even know where this code is to change it. I am only familiar with most of the Admin panel but not the location of this code.

              Comment


              • #9
                Done. Thank you. It worked.

                Comment


                • #10
                  Just a quick question.. is it normal for each temple to appear.. twice?
                  I'll attach a screen shot.



                  PS thanks for posting, it worked for me, too!
                  Welcome, Paul..
                  You last visited: Sat 21st Jul '07 at 2:37am

                  Comment

                  Related Topics

                  Collapse

                  Working...
                  X