vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How can't I show banned users in online page? (https://vborg.vbsupport.ru/showthread.php?t=267184)

Adem GEN? 07-21-2011 02:42 PM

How can't I show banned users in online page?
 
Hello,

How can't I show banned users in online page?

Thanks

Badshah93 07-21-2011 04:47 PM

you can create one plugin at

forumhome_loggedinuser_query

WIth This Code

Code:

$hook_query_where .=" AND user.usergroupid != 8";

Note: This will hide ban user from Who's Online for everyone

Adem GEN? 07-21-2011 07:21 PM

Okay, Thank you very much

John Lester 09-03-2011 09:49 PM

Quote:

Originally Posted by Sherif (Post 2223275)
you can create one plugin at

forumhome_loggedinuser_query

WIth This Code

Code:

$hook_query_where .=" AND user.usergroupid != 8";

Note: This will hide ban user from Who's Online for everyone

How do you "create one plugin" ?

BirdOPrey5 09-04-2011 01:28 AM

Quote:

Originally Posted by John Lester (Post 2241658)
How do you "create one plugin" ?

Go to your Admin CP -> Plugins & Products -> Add New Plugin

prodct: vbulletin
hook: forumhome_loggedinuser_query
title: hide banned users
exec. order: 5
php code:
PHP Code:

$hook_query_where .=" AND user.usergroupid != 8"

Set Active to YES and hit save.

John Lester 09-04-2011 02:12 PM

Oh my that's not how I was trying to do it :D Thanks BoP5 :)

silvermerc 09-05-2011 01:24 AM

I've done that code and its still showing the banned usergroup on the who's online

BirdOPrey5 09-05-2011 01:30 AM

Quote:

Originally Posted by silvermerc (Post 2242041)
I've done that code and its still showing the banned usergroup on the who's online

Is your banned usergroup, usergroup 8 and only usergroup 8?

silvermerc 09-05-2011 04:29 AM

Im trying to do it on a 3.8.3.
Would that effect it at all?

BirdOPrey5 09-05-2011 10:57 AM

No it's the same on all 3.8/3.7 versions... But I noticed you posted your index.php isn't working- so that would make a difference since this is only visible on index.php.


All times are GMT. The time now is 08:26 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.01599 seconds
  • Memory Usage 1,734KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete