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 05-29-2013, 04:05 PM
MattGarner MattGarner is offline
 
Join Date: Apr 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Banned Users on "Currently Active Users"

Hi all,

I've done a search but the stuff that gets mentioned doesn't seem to be doing the trick. I am wondering if there is a way to basically hide banned users from showing up on the currently active users. Anyone have any ideas?

Cheers,
Reply With Quote
  #2  
Old 05-29-2013, 08:44 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit includes/functions_databuild.php

Search for (occurs twice):

Code:
usergroupid NOT IN (3,4);
Replace with:
Code:
usergroupid NOT IN (3,4,8);
Find next and repeat. You can add other user groups (by usergroup id #) if you wish just follow the format between the ()'s and you should be good to go
Reply With Quote
  #3  
Old 06-09-2013, 09:41 AM
MattGarner MattGarner is offline
 
Join Date: Apr 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by John Lester View Post
Edit includes/functions_databuild.php

Search for (occurs twice):

Code:
usergroupid NOT IN (3,4);
Replace with:
Code:
usergroupid NOT IN (3,4,8);
Find next and repeat. You can add other user groups (by usergroup id #) if you wish just follow the format between the ()'s and you should be good to go
That didn't seem to do anything
Reply With Quote
  #4  
Old 06-09-2013, 02:03 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It won't take effect until something causes the user stats to be rebuilt. One way to force it would be to manually run the "Daily Statistics Log" scheduled task.
Reply With Quote
2 благодарности(ей) от:
John Lester, t-j
  #5  
Old 06-09-2013, 06:24 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
It won't take effect until something causes the user stats to be rebuilt. One way to force it would be to manually run the "Daily Statistics Log" scheduled task.
Oh crap, yea I forgot to mention that it wouldn't change until someone registers, or you create a new member, or delete a member. Sorry
Reply With Quote
  #6  
Old 06-11-2013, 06:04 PM
Bow Walker's Avatar
Bow Walker Bow Walker is offline
 
Join Date: Feb 2013
Location: An Island In The Pacific
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would also like to be able to have the 'banned' users not appear in the 'Current Active Users'.

But - being a total neophyte as far as php code is concerned - I'd appreciate being directed to where I can insert the user id of the banned members, thus causing them to be invisible to registered members browsing my forum.

Thank you in advance for any help.
Reply With Quote
  #7  
Old 06-12-2013, 10:33 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, John Lester pretty much summed it up in post #2: you need to get a copy of the file includes/functions_databuild.php on your local computer (either get it from the vb distribution, or download it via ftp from your server). If you download it from your server, make a copy of it on your computer so that you save the original. This way if something goes wrong with the changes, you should just be able to upload the unchanged file to fix it. If you're using the one from the vb distribution, make a copy of it before editing it.

Next you need to edit the file using a programming editor (or use notepad if you don't have anything else - don't use Word or wordpad or other word processing editor). Find this:
Code:
usergroupid NOT IN (3,4)

which is in two places: one is on a line by itself, the other is near the end of a long line. In both places you want to add 8 to the list, so it looks like this:
Code:
usergroupid NOT IN (3,4,8)
Then save it and use ftp to upload it to your server, in the includes directory, overwriting the existing file.
Reply With Quote
  #8  
Old 06-12-2013, 05:30 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no place to enter a userid, you can only do this by usergroupid. If you want specific individuals to not show up, but don't want them banned you will have to create a user group just for them and add the usergroupid as explained earlier in the thread.
Reply With Quote
  #9  
Old 06-12-2013, 05:50 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by John Lester View Post
There is no place to enter a userid, ...

Oh right. Obviously I thought he meant usergroupid.
Reply With Quote
  #10  
Old 06-17-2013, 04:27 PM
MattGarner MattGarner is offline
 
Join Date: Apr 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
It won't take effect until something causes the user stats to be rebuilt. One way to force it would be to manually run the "Daily Statistics Log" scheduled task.
Quote:
Originally Posted by John Lester View Post
Oh crap, yea I forgot to mention that it wouldn't change until someone registers, or you create a new member, or delete a member. Sorry
Even after that being done manually or a user has joined up recently, they are still showing up.
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 10:20 AM.


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.04787 seconds
  • Memory Usage 2,263KB
  • 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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete