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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2006, 01:44 PM
snowbird snowbird is offline
 
Join Date: May 2005
Location: NY
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Keeping banned members out of the membership total

The DB we are using has hundreds of banned members. We would like these banned accounts to NOT be included in the membership total. The CP can't do it..... anyone have a suggestion? Thanks!
Reply With Quote
  #2  
Old 06-18-2006, 12:44 AM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I've knocked something together which should do what you want:

https://vborg.vbsupport.ru/showthread.php?t=118922

It adjusts the Member count on the forum homepage to take account of Banned users.

Thanks,
Alan.
Reply With Quote
  #3  
Old 06-19-2006, 12:59 PM
snowbird snowbird is offline
 
Join Date: May 2005
Location: NY
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, but I use 3.5.4 and it did not install :cry:
Quote:
Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Exclude Banned Users', 'forumhome_complete', '// Count the number of banned users\r\n$banned_count_q = \"SELECT count(userid) AS banned_count FROM \" . TABLE_PREFIX . \"userban\";\r\n$banned_count_a = $vbulletin->db->query_first($banned_count_q);\r\n\r\n// Update the totals\r\n$numbermembers = vb_number_format($vbulletin->userstats[\'numbermembers\'] - $banned_count_a[\'banned_count\']);', 'cit_exclude_banned_users');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Monday, June 19th 2006 @ 07:54:38 AM
Script : http://www.MYDOMAINDELETEDFORPRIVACY...ncp/plugin.php
Referrer :
IP Address : 24.50.113.222
Username : MYUSERNAMEDELETEDFORPRIVACY
Classname : vb_database
Reply With Quote
  #4  
Old 06-19-2006, 01:01 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To get it to install on 3.5.4, edit the XML file in the zip, and find "executionorder="5" and delete it

Save the XML, then try installing it agian.

Thanks,
ALan.
Reply With Quote
  #5  
Old 06-19-2006, 01:31 PM
snowbird snowbird is offline
 
Join Date: May 2005
Location: NY
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This time it installed but it does not function properly. The number of members dropped by 36, which, probablbly not coincidently, is the sum of members in two seperate other non-banned usergroups. The hundreds of banned members still remain included in the total.
Reply With Quote
  #6  
Old 06-19-2006, 03:32 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It just counts all the rows from the "userban" table. How have to banned your members?

Thanks,
Alan.
Reply With Quote
  #7  
Old 06-20-2006, 12:43 PM
snowbird snowbird is offline
 
Join Date: May 2005
Location: NY
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are asking how we ban members, we view their profile in the cp, we select Ban User from the Quick User Links, and that's where you select which banned usergroup they go into, when the ban is lifted, and the Reason to show the user, then click Ban User.
Reply With Quote
  #8  
Old 06-20-2006, 12:46 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, leave it with me, I'll adjust the the way it works so that it's based on banned usergroups, rather than the userban table.

Thanks,
Alan.
Reply With Quote
  #9  
Old 06-29-2006, 12:47 AM
snowbird snowbird is offline
 
Join Date: May 2005
Location: NY
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any progress on the adjustment?
Reply With Quote
  #10  
Old 07-09-2006, 04:11 PM
snowbird snowbird is offline
 
Join Date: May 2005
Location: NY
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guess that's a no.
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 12:53 PM.


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.08686 seconds
  • Memory Usage 2,244KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete