Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2014, 06:38 PM
XYZ500 XYZ500 is offline
 
Join Date: Aug 2014
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 12-01-2014, 08:21 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 12-01-2014, 08:40 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Files
File Type: xml vbulletin-plugins_active_users.xml (278 Bytes, 4 views)
Reply With Quote
Благодарность от:
XYZ500
  #4  
Old 12-02-2014, 09:51 AM
XYZ500 XYZ500 is offline
 
Join Date: Aug 2014
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
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?
Reply With Quote
  #5  
Old 12-02-2014, 10:28 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I'll take a look when I get home from work.
Reply With Quote
  #6  
Old 12-02-2014, 12:15 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

.
Reply With Quote
2 благодарности(ей) от:
ozzy47, puertoblack2003
  #7  
Old 12-02-2014, 08:46 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, that will most certainly do it.
Reply With Quote
  #8  
Old 12-03-2014, 08:07 PM
XYZ500 XYZ500 is offline
 
Join Date: Aug 2014
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Seven Skins View Post
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?
Reply With Quote
  #9  
Old 12-04-2014, 05:17 AM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
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 01:04 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.07469 seconds
  • Memory Usage 2,275KB
  • Queries Executed 14 (?)
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
  • (3)bbcode_code
  • (2)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
  • (1)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete