PDA

View Full Version : How to enable/disable "active members"?


XYZ500
12-01-2014, 06:38 PM
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
<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
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
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
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:

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


Replace with:

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