Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-06-2015, 08:19 PM
dudeitsjon dudeitsjon is offline
 
Join Date: Apr 2015
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 04-07-2015, 03:53 PM
dudeitsjon dudeitsjon is offline
 
Join Date: Apr 2015
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone offer any insight on this?
Reply With Quote
  #3  
Old 04-07-2015, 04:27 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
dudeitsjon
  #4  
Old 04-07-2015, 07:17 PM
dudeitsjon dudeitsjon is offline
 
Join Date: Apr 2015
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Replicant View Post
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.
Reply With Quote
  #5  
Old 05-20-2015, 09:58 AM
tomcoleman tomcoleman is offline
 
Join Date: Aug 2010
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 05-20-2015, 12:12 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 05-21-2015, 11:07 AM
tomcoleman tomcoleman is offline
 
Join Date: Aug 2010
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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>
Reply With Quote
  #8  
Old 05-21-2015, 12:39 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tomcoleman View Post
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.
Reply With Quote
  #9  
Old 05-21-2015, 01:26 PM
tomcoleman tomcoleman is offline
 
Join Date: Aug 2010
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Replicant View Post
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>
Reply With Quote
2 благодарности(ей) от:
Lynne, Replicant
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04335 seconds
  • Memory Usage 2,249KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (3)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete