vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   VB5 Active Members display removal (https://vborg.vbsupport.ru/showthread.php?t=318137)

dudeitsjon 04-06-2015 08:19 PM

VB5 Active Members display removal
 
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 :

Code:

{vb:phrase active_members_x, {vb:number {vb:var statistics.activeMembers}}}
in the widget_statistics module and replace with

Code:

<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

Quote:

Originally Posted by Replicant (Post 2542545)
You will need to edit the widget_statistic module template to accomplish this.

Find :

Code:

{vb:phrase active_members_x, {vb:number {vb:var statistics.activeMembers}}}
in the widget_statistics module and replace with

Code:

<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

Quote:

Originally Posted by Lynne (Post 2545959)
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..

Code:

                        {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

Quote:

Originally Posted by tomcoleman (Post 2545953)
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

Quote:

Originally Posted by Replicant (Post 2546050)
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 [DATE]1432222123[/DATE] at [TIME]1432222123[/TIME] ---------------

found it

Code:

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


All times are GMT. The time now is 03:32 AM.

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.01080 seconds
  • Memory Usage 1,736KB
  • 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
  • (6)bbcode_code_printable
  • (4)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