vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=317186

Managing members waiting for email confirmation
by giaguaro
06 Feb 2015 10:36

due to spam problems, i have set "on" both CAPTCHA, moderation of new users and email confirmation.
Now i have to manage a 16.000 users list.
I would like to manage that in a confortable way, such erasing all the users with a specified email server and so on.
Nowaday, the best function in admin panel is "erase/move members" and i have to check every members.
I dont want to cancel everyone without checking if they are real or not..
Anyone has suggestion on a mod?
Thanks a lot

kh99 06 Feb 2015 11:14

I don't know of a mod, but I have a suggestion: create a usergroup for users to be deleted. Then use a query to move users to that group, like maybe:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(usergroupid=4 means users awaiting moderation). You'd replace the X with the usergroupid you created. You can do this multiple times if you have more than one email provider you want to exclude.

Then use Move/Prune users to delete users in usergroupid X.

The safe thing to do would be to have a backup before making any changes directly to the database.

giaguaro 06 Feb 2015 11:40

this could be great!
But please: where the query must be opened?
I mean, i have to put your code in a file?

Dave 06 Feb 2015 11:42

You either execute it in something such as PHPMyAdmin or at AdminCP > Maintenance > Execute SQL Query.

giaguaro 06 Feb 2015 11:50

so, i execute the query and i will find a new members group, with the members awaiting email confirmation speficied in the query?

--------------- Added 06 Feb 2015 at 11:53 ---------------

well, i need the ID of the group "users awaiting email confirmation" to tell the truth

kh99 06 Feb 2015 11:55

Well, you would first have to go to the usergroup manager and add a new user group. You could use "Create Usergroup Based off of Usergroup"... and select Users Awaiting Moderaton, so that the new usergroup won't have any more permissions. Then note the usergroupid of the group you create and use that in the query.

SaN-DeeP 06 Feb 2015 11:58

Thanks kh99,
Yet another handy query..

kh99 06 Feb 2015 12:00

Quote:

Originally Posted by giaguaro (Post 2536429)
well, i need the ID of the group "users awaiting email confirmation" to tell the truth

Using a query to change the database directly can be dangerous. It might be best not to use this method if you don't feel confident about it, because you don't want to accidentally delete any of your legitimate users.

giaguaro 06 Feb 2015 12:01

I did mean i dont need usergroup 4 but the id of the "users awaiting email confirmation" group

Quote:

Originally Posted by kh99 (Post 2536426)
(omissis)

(usergroupid=4 means users awaiting moderation). You'd replace the X with the usergroupid you created. You can do this multiple times if you have more than one email provider you want to exclude. (omissis)

--------------- Added 06 Feb 2015 at 12:02 ---------------

oh sorry i see i have the ID on the admin panel!

--------------- Added 06 Feb 2015 at 12:12 ---------------

great. My admincp says i am not allowed to launch sql query :(
I am superadmin, dont know why

kh99 06 Feb 2015 12:15

Quote:

Originally Posted by giaguaro (Post 2536435)
great. My admincp says i am not allowed to launch sql query :(
I am superadmin, dont know why


You need to list your userid in the config.php file as a user who can run queries. Look for this

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


and add your userid between the quotes.

giaguaro 06 Feb 2015 12:21

thanks a lot again. I am really a beginner.. and i am italian :p

kh99 06 Feb 2015 17:10

Quote:

Originally Posted by giaguaro (Post 2536429)
well, i need the ID of the group "users awaiting email confirmation" to tell the truth


I misunderstood this. "users awaiting email confirmation" is different than "users awaiting moderation". And I see you found the id in the admincp. Sorry, I thought you were confused, but it was me. :o

giaguaro 07 Feb 2015 13:55

lol as i told you i am definitely a beginner and have a poor english.

Now:
UPDATE user SET usergroupid=eliminare WHERE usergroupid=3 AND email LIKE %sina.com%

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%sina.com%' at line 1

what happened?

kh99 07 Feb 2015 14:01

Quote:

Originally Posted by giaguaro (Post 2536531)
lol as i told you i am definitely a beginner and have a poor english.

Now:
UPDATE user SET usergroupid=eliminare WHERE usergroupid=3 AND email LIKE %sina.com%

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%sina.com%' at line 1

what happened?

Sorry, that's my fault. You need that in quotes, like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But also, you can't have 'eliminare' there, because the usergroupid must be a number.

giaguaro 07 Feb 2015 14:45

great! It worked.
Now i will want to go deeper...
Can i state something like "move all gmail.com account with more than 3 dots in the address"?

--------------- Added 07 Feb 2015 at 14:48 ---------------

or like "everything with .pl suffix"?


All times are GMT. The time now is 16:57.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.