Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2014, 11:26 PM
Outlaw Mantis Outlaw Mantis is offline
 
Join Date: Nov 2013
Location: Manchester, UK
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Reverse pruning - delete from a date?

Everywhere I've looked I seen that there "isn't an option" to delete users and to just use the prune feature. I've had a spam army register on my forum when I forgot to close it with registration protection enabled. My fault I know, but I have to fix this! However, the prune option is only for past dates.

The forum has been closed for a long time now and I plan to reopen it. This means that the mass registration all happened from a date when no human registrations were made. Therefore, an option to delete users from a date would fix the problem entirely. I can't delete users individually because there are so many, I'd be a skeleton. :erm: I thought about running an SQL query but fortunately read that it could wreck the forum before I actually did it.
Reply With Quote
  #2  
Old 11-06-2014, 11:29 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only thing you can do is prune the users. Login to your admincp and go to "Users>Prune/Move Users" and you can do it from there.
Reply With Quote
  #3  
Old 11-06-2014, 11:32 PM
Outlaw Mantis Outlaw Mantis is offline
 
Join Date: Nov 2013
Location: Manchester, UK
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already said that the options are before a date, not after.
Reply With Quote
  #4  
Old 11-06-2014, 11:40 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Outlaw Mantis View Post
I already said that the options are before a date, not after.
Ah sorry I see what you are saying now. This is what I get for not being fully awake lol. You would probably have to hire a PHP coder for that I'm afraid. There is no built in way to remove users who signed up after a certain date.
Reply With Quote
  #5  
Old 11-06-2014, 11:46 PM
Outlaw Mantis Outlaw Mantis is offline
 
Join Date: Nov 2013
Location: Manchester, UK
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It'll take quite a while, but I'll do it individually. It won't take as long as I thought it would, but still a while. I think it's silly that such a feature doesn't exist. For something you pay a lot of money for, it should have a primitive function.

But I'll be sure to add lots of spam protection! Don't worry about the tiredness. I know the feeling.
Reply With Quote
  #6  
Old 11-06-2014, 11:54 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Untested!

Well make a backup of your site first, then you could try to run this query:

Code:
UPDATE user SET usergroupid = X WHERE joindate > 1415325080

Set X to the usergroup you want to move them to.

To get the unix timestamp of the date you want see this site, http://www.unixtimestamp.com/

Then you can prune the users in that group.
Reply With Quote
  #7  
Old 11-07-2014, 12:09 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Outlaw Mantis View Post
It'll take quite a while, but I'll do it individually. It won't take as long as I thought it would, but still a while. I think it's silly that such a feature doesn't exist. For something you pay a lot of money for, it should have a primitive function.

But I'll be sure to add lots of spam protection! Don't worry about the tiredness. I know the feeling.
I agree when I actually got what you were saying and I looked at my vb admincp I was like that is stupid that its not set up that way.
Reply With Quote
  #8  
Old 11-07-2014, 12:42 AM
Outlaw Mantis Outlaw Mantis is offline
 
Join Date: Nov 2013
Location: Manchester, UK
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I actually managed to deselect all of the "good" members. There are currently 240 bad users online despite the board being closed! I think since I'm deleting a couple of thousand, that's the reason I'm getting this error when I try to prune...

Quote:
unused

The server encountered an internal error or misconfiguration and was unable to complete your request.
I might have to try ozzy47's method now. I think these spam bots are slowly my server down a lot and as a result, perhaps it's why I get the error. I can't exactly deselect one thousand user checkboxes in the prune form to see if selecting fewer spammers works...

Unless anyone has anything to add (especially regarding the error I got), I'll try out ozzy's suggestion in twenty minutes.

Edit: Actually, won't pruning the users in a new usergroup just give me the same error as I'm getting now?
Reply With Quote
  #9  
Old 11-07-2014, 12:44 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah you might have to chose less to delete at one time if you are going to do it through the admincp.
Reply With Quote
  #10  
Old 11-07-2014, 12:58 AM
Outlaw Mantis Outlaw Mantis is offline
 
Join Date: Nov 2013
Location: Manchester, UK
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I miscalculated. There are 5000 members. So I might have to deselect 2500 boxes if I go by half. I need to find a Chrome plugin to do this...
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 01:43 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.04032 seconds
  • Memory Usage 2,252KB
  • 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
  • (1)bbcode_code
  • (3)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
  • (1)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