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)

Boofo 09-05-2011 12:31 PM

They want it on the who's online page. ;)

Badshah93 09-05-2011 01:04 PM

Quote:

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

banner users are showing in forumhome or in Who's online page ?

this code will work for forumhome.

BirdOPrey5 09-05-2011 01:45 PM

Quote:

Originally Posted by Boofo (Post 2242164)
They want it on the who's online page. ;)

Doh... I never visit that page, I forget it exists. :o

Lynne 09-05-2011 02:59 PM

Try using the same plugin code, only use hook location "online_query" instead.

Concha 09-13-2011 01:25 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2241703)
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.

With this code, in vb 3.8.7 Show only members en who's Online.
Guests are not counted.

Example: Active Users: 316 (316 members and 0 visitors.)
Don't show banned users, but not counted visitors

BirdOPrey5 09-14-2011 03:56 PM

What exactly are you trying to do and on what page? Who's Online or Who's logged in? (They are different pages.)

Concha 09-14-2011 08:06 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2245937)
What exactly are you trying to do and on what page? Who's Online or Who's logged in? (They are different pages.)

In forumhome, Currently Active Users.

Not forum/online.php

BirdOPrey5 09-15-2011 06:54 AM

Indeed I can confirm it does remove all the guests as well. Unfortunately I have no explanation as to why though... This is a pretty simple query adjustment... :confused:

Boofo 09-15-2011 07:20 AM

Have you tried:

Code:

$hook_query_where .=" AND user.usergroupid <> '8'";
Is the banned usergroup id 8 on your site?

Badshah93 09-15-2011 09:05 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2246224)
Indeed I can confirm it does remove all the guests as well. Unfortunately I have no explanation as to why though... This is a pretty simple query adjustment... :confused:

it does not show guest count for member but for guest(user) it shows guest count.

Anyway, i have made a new code for this thing, which is much better than previous one.


Why it is better:
it counts banned user in online list but don't show their username. (like invisible mode)


Plugin Hook: forumhome_loggedinuser

Code:

Code:

if ($loggedin['usergroupid'] == 8) {

unset ($loggedin);
}


Note:


1. where 8 is the banned usergroupid.
2. And don't forget to remove old plugin (if u created) for this thing.


All times are GMT. The time now is 10:24 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.01002 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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