vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   hide banned user from online now (https://vborg.vbsupport.ru/showthread.php?t=234231)

MmS1 01-26-2010 06:37 PM

hide banned user from online now
 
<div align="center">hello all
Is there any way to prevent banned user to show on online now

</div>

mokujin 01-26-2010 07:30 PM

add a new plugin forumhome_loggedinuser_query
add this PHP code:
PHP Code:

$hook_query_where .= " AND usergroupid <> 8"

(not tried yet :) )

MmS1 01-28-2010 11:44 AM

sorry but not working

Lynne 01-28-2010 02:50 PM

When you banned the user, did you do so by moving them to the Banned Usergroup as the Primary Group? Did you make sure to turn the plugin ON? And you selected the correct hook location?

tisaigon 11-14-2011 04:29 AM

i hided banned members but don't show guest users, help me please, tks

74 members and 0 guests

--------------- Added [DATE]1321283829[/DATE] at [TIME]1321283829[/TIME] ---------------

anyone help me?

tisaigon 11-17-2011 06:07 AM

please help me

Lynne 11-17-2011 05:30 PM

You haven't posted any information about what you have done and what you want so it's very hard to help you.

tisaigon 11-22-2011 01:32 PM

i had
add a new plugin forumhome_loggedinuser_query
add this PHP code:
PHP Code:
$hook_query_where .= " AND usergroupid <> 8";

and i hided banned user from user online now don't show guest users in total

74 members and 0 guests
(must more than 0 guests)

Lynne 11-22-2011 06:27 PM

If you disable that plugin, are guests then shown?

tisaigon 11-23-2011 06:53 PM

Quote:

Originally Posted by Lynne (Post 2270842)
If you disable that plugin, are guests then shown?

yes, when i disable that plugin, guests shown, i tested in vbb 4.0.4 and vbb 4.1.7 are same,
can you help me?

tisaigon 12-08-2011 11:11 AM

please help me.

Lynne 12-08-2011 04:55 PM

Try something like this instead.

forumhome_loggedinuser
PHP Code:

if (is_member_of($loggedin8)) $loggedin =''

That will still have the banned member counted in the loggedin stats though. Not sure where you want them listed.


All times are GMT. The time now is 04:54 PM.

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.01139 seconds
  • Memory Usage 1,732KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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