![]() |
|
Thread Tools |
#1
|
|||
|
|||
Managing members waiting for email confirmation
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 No members have liked this post.
|
#2
|
||||
|
||||
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:
(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. No members have liked this post.
|
#3
|
|||
|
|||
this could be great!
But please: where the query must be opened? I mean, i have to put your code in a file? No members have liked this post.
|
#4
|
|||
|
|||
You either execute it in something such as PHPMyAdmin or at AdminCP > Maintenance > Execute SQL Query.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com Contact me for custom vBulletin 3/4 work & server/website management. No members have liked this post.
|
#5
|
|||
|
|||
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 No members have liked this post.
|
#6
|
|||
|
|||
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.
No members have liked this post.
|
#7
|
||||
|
||||
Thanks kh99,
Yet another handy query.. No members have liked this post.
|
#8
|
|||
|
|||
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.
No members have liked this post.
|
#9
|
|||
|
|||
I did mean i dont need usergroup 4 but the id of the "users awaiting email confirmation" group
Originally Posted by kh99
--------------- 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 No members have liked this post.
|
#10
|
||||
|
||||
Originally Posted by giaguaro
![]()
You need to list your userid in the config.php file as a user who can run queries. Look for this
and add your userid between the quotes. No members have liked this post.
|
#11
|
|||
|
|||
thanks a lot again. I am really a beginner.. and i am italian
![]() No members have liked this post.
|
#12
|
|||
|
|||
Originally Posted by giaguaro
![]()
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. ![]() No members have liked this post.
|
#13
|
|||
|
|||
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? No members have liked this post.
|
#14
|
||||
|
||||
Originally Posted by giaguaro
Sorry, that's my fault. You need that in quotes, like:![]()
But also, you can't have 'eliminare' there, because the usergroupid must be a number. No members have liked this post.
|
#15
|
|||
|
|||
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"? No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 08:44.