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)

BirdOPrey5 09-15-2011 10:50 AM

Quote:

Originally Posted by Boofo (Post 2246231)
Have you tried:

Code:

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

No difference for me...

Boofo 09-15-2011 11:05 AM

Quote:

Originally Posted by Sherif (Post 2246241)
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.

But this will not affect the Who's Online page as that is what I took him for wanting.

Badshah93 09-15-2011 01:25 PM

Quote:

Originally Posted by Boofo (Post 2246269)
But this will not affect the Who's Online page as that is what I took him for wanting.

for online page i have to see, even in one of mod this is giving problem.. i will try to findout something for it.

Concha 09-16-2011 03:28 PM

Works in forumhome, Currently Active Users, but increase server load (2000 users online)

Quote:

Originally Posted by Sherif (Post 2246241)
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.


Badshah93 09-16-2011 03:55 PM

Quote:

Originally Posted by Concha (Post 2246817)
Works in forumhome, Currently Active Users, but increase server load (2000 users online)

i don't think so it will increase too much.. how many members (not guest) are online at a time in ur site ?

if u have 2000 member (excluding guest) online, then i think you should not even have currently active users list.

Boofo 09-20-2011 11:04 PM

Quote:

Originally Posted by Sherif (Post 2246301)
for online page i have to see, even in one of mod this is giving problem.. i will try to findout something for it.

Any word on this yet?

Badshah93 09-24-2011 01:30 PM

Quote:

Originally Posted by Boofo (Post 2248394)
Any word on this yet?

for online page user need to edit online.php file

Find:

PHP Code:

($hook vBulletinHook::fetch_hook('online_user')) ? eval($hook) : false;
    } 

Add After

PHP Code:

if ($users['usergroupid'] == 8
{
unset (
$userinfo["$key"]);



Boofo 09-24-2011 06:22 PM

Why not just use the hook?

Badshah93 09-25-2011 04:42 AM

Quote:

Originally Posted by Boofo (Post 2249663)
Why not just use the hook?

i could have used hook, but guest function is not closed before the hook. if u will see that file you will understand why i didn't use hook.

Boofo 09-25-2011 05:12 AM

Kind of defeats the purpose of making it easy on upgrades. There has to be an easier way to accomplish it. I will see what I can figure out.


All times are GMT. The time now is 10:21 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.01293 seconds
  • Memory Usage 1,748KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)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