PDA

View Full Version : VB5 Active Members display removal


dudeitsjon
04-06-2015, 08:19 PM
How do you remove the "Active Members" display? I want only to display how many registered members the forum has not active and registered.

dudeitsjon
04-07-2015, 03:53 PM
Can anyone offer any insight on this?

Replicant
04-07-2015, 04:27 PM
You will need to edit the widget_statistic module template to accomplish this.

Find :

{vb:phrase active_members_x, {vb:number {vb:var statistics.activeMembers}}}


in the widget_statistics module and replace with

<vb:comment>{vb:phrase active_members_x, {vb:number {vb:var statistics.activeMembers}}}<vb:comment>

This modification may not survive and upgrade so you might have to do the edit every time you upgrade.

dudeitsjon
04-07-2015, 07:17 PM
You will need to edit the widget_statistic module template to accomplish this.

Find :

{vb:phrase active_members_x, {vb:number {vb:var statistics.activeMembers}}}


in the widget_statistics module and replace with

<vb:comment>{vb:phrase active_members_x, {vb:number {vb:var statistics.activeMembers}}}<vb:comment>

This modification may not survive and upgrade so you might have to do the edit every time you upgrade.

Thanks man for your help. Very much appreciated.

tomcoleman
05-20-2015, 09:58 AM
I have done the above in 5.1.7 it doesn't work it still shows

There are currently 1855 users online. 65 members and 1790 guests.

Lynne
05-20-2015, 12:12 PM
If you did exactly what he said to do, then it can't still show since it is commented out. Did you try going to Maintenance > Clear System Cache after you made the change?

tomcoleman
05-21-2015, 11:07 AM
If you did exactly what he said to do, then it can't still show since it is commented out. Did you try going to Maintenance > Clear System Cache after you made the change?

nope doesn't work

this is my process...

Admin Cp > Style Manager> widget_statistics

double click the blue_green theme (this is the one in use for the whole board)

edit out the code as per..

{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>

Replicant
05-21-2015, 12:39 PM
I have done the above in 5.1.7 it doesn't work it still shows

There are currently 1855 users online. 65 members and 1790 guests.

That's because you're editing the wrong template. This edit was for the statistics module which is different than widget_onlineusers. Try editing that one and you should get the results you're looking for.

tomcoleman
05-21-2015, 01:26 PM
That's because you're editing the wrong template. This edit was for the statistics module which is different than widget_onlineusers. Try editing that one and you should get the results you're looking for.

ok so what part of the code in widget_online users needs to be VB: comment out?

--------------- Added 1432222123 at 1432222123 ---------------

found it


<vb:comment><vb:if condition="$onlineUserCounts['total'] > 1">{vb:rawphrase there_are_x_online, {vb:raw onlineUserCounts.total}, {vb:url 'online_details'}}<vb:else />{vb:rawphrase there_is_x_online, {vb:raw onlineUserCounts.total}, {vb:url 'online_details'}}</vb:if> {vb:rawphrase x_members_and_y_guests, {vb:raw onlineUserCounts.members}, {vb:raw onlineUserCounts.guests}}.</vb:comment>