vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to enable/disable "active members"? (https://vborg.vbsupport.ru/showthread.php?t=315761)

XYZ500 12-01-2014 06:38 PM

How to enable/disable "active members"?
 
How can I enable/disable "active members"?

At times, I would want to check how many active members I have on the site and for that I would turn it on for a second then disable it again as I don't want to keep the forum displaying this.

Google search led me to https://vborg.vbsupport.ru/showthread.php?t=240634 but it doesn't seem like something that I can do with ease any time I want.

So is there any other easier way?

kh99 12-01-2014 08:21 PM

Mabe you can find the code in the template and surround it with
Code:

<vb:if condition="is_member_of($bbuserinfo, 6">
...
</vb:if>

to display it only for admins. Or use "$bbuserinfo['userid'] == X" for the condition to show it only for your userid.

ozzy47 12-01-2014 08:40 PM

1 Attachment(s)
Go to ACP --> Plugins & Products --> Download / Upload Plugins, scroll to the bottom till you see this block, Import Plugin Definitions XML File then import the attached plugin.

Now when you want to turn it off or on, go to ACP --> Plugins & Products --> Plugin Manager, and toggle the active status On/Off for the plugin titled Active Members.

XYZ500 12-02-2014 09:51 AM

Quote:

Originally Posted by ozzy47 (Post 2525170)
Go to ACP --> Plugins & Products --> Download / Upload Plugins, scroll to the bottom till you see this block, Import Plugin Definitions XML File then import the attached plugin.

Now when you want to turn it off or on, go to ACP --> Plugins & Products --> Plugin Manager, and toggle the active status On/Off for the plugin titled Active Members.

I installed your plugin but it is not what I wanted. I think you misunderstood me. Your plugin hides the currently online user list. I wanted to know how to hide "active members" number.

Please see the screenshot.

http://prntscr.com/5cec4v

How can I enable/disable this when I want?

ozzy47 12-02-2014 10:28 AM

Ok I'll take a look when I get home from work. :)

Seven Skins 12-02-2014 12:15 PM

Edit AdminCP > Settings > options> Forumhome options and uncheck "Show total number of active members"

.

ozzy47 12-02-2014 08:46 PM

Yes, that will most certainly do it. :)

XYZ500 12-03-2014 08:07 PM

Quote:

Originally Posted by Seven Skins (Post 2525243)
Edit AdminCP > Settings > options> Forumhome options and uncheck "Show total number of active members"

.

I tried this. It worked in the sense that it displayed the "active members: 0". But it was 0, which isn't possible. I first set the Active Members Time Cut-Off days to 1 and it displayed 0 active members count, then I set to 3 days, same result then set to 10 days but same result.

So I'm guess either this function in my board is broken or it starts counting active members AFTER this option is enabled. Can you confirm if it is the latter?

The reason why I wanted this option enabled/disabled whenever I want is to check the number of active users I have. But if it starts counting after the option is enabled then this is of no use to me because I don't plan to keep this enabled.

Is there any other way I can find out the number of active users in past day or 3 days or so, without showing it to the visitors?

John Lester 12-04-2014 05:17 AM

Edit the FORUMHOME template.

Find:
Code:

                        <vb:if condition="$show['activemembers']">                                                <dt>{vb:rawphrase active_members}</dt>                                                          <dd>{vb:raw activemembers}</dd>                                                </vb:if>
Replace with:
Code:

<!-- BEGIN hide active members from all but admin --> <vb:if condition="is_member_of($bbuserinfo, 6)">                        <vb:if condition="$show['activemembers']">                                                <dt>{vb:rawphrase active_members}</dt>                                                          <dd>{vb:raw activemembers}</dd>                                                </vb:if> </vb:if> <!-- END hide active members from all but admin -->
Only users in usergroup 6 (admins) will be able to see the number of active users. Adjust time (cut off days) as desired.


All times are GMT. The time now is 03:31 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.00995 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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