Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 09-15-2011, 10:50 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
Have you tried:

Code:
$hook_query_where .=" AND user.usergroupid <> '8'";
Is the banned usergroup id 8 on your site?
No difference for me...
Reply With Quote
  #22  
Old 09-15-2011, 11:05 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sherif View Post
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.
Reply With Quote
  #23  
Old 09-15-2011, 01:25 PM
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
Location: India
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
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.
Reply With Quote
  #24  
Old 09-16-2011, 03:28 PM
Concha Concha is offline
 
Join Date: Aug 2006
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by Sherif View Post
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.
Reply With Quote
  #25  
Old 09-16-2011, 03:55 PM
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
Location: India
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Concha View Post
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.
Reply With Quote
  #26  
Old 09-20-2011, 11:04 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sherif View Post
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?
Reply With Quote
  #27  
Old 09-24-2011, 01:30 PM
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
Location: India
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
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"]);

Reply With Quote
  #28  
Old 09-24-2011, 06:22 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not just use the hook?
Reply With Quote
  #29  
Old 09-25-2011, 04:42 AM
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
Location: India
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
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.
Reply With Quote
  #30  
Old 09-25-2011, 05:12 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 02:08 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.04483 seconds
  • Memory Usage 2,265KB
  • 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
  • (3)bbcode_code
  • (2)bbcode_php
  • (8)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
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete