![]() |
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 |
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:
Code:
UPDATE user SET usergroupid=X WHERE usergroupid=4 AND email LIKE %hotmail.com% 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. |
this could be great!
But please: where the query must be opened? I mean, i have to put your code in a file? |
You either execute it in something such as PHPMyAdmin or at AdminCP > Maintenance > Execute SQL Query.
|
so, i execute the query and i will find a new members group, with the members awaiting email confirmation speficied in the query?
--------------- Added [DATE]1423227234[/DATE] at [TIME]1423227234[/TIME] --------------- well, i need the ID of the group "users awaiting email confirmation" to tell the truth |
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.
|
Thanks kh99,
Yet another handy query.. |
Quote:
|
I did mean i dont need usergroup 4 but the id of the "users awaiting email confirmation" group
Quote:
oh sorry i see i have the ID on the admin panel! --------------- Added [DATE]1423228369[/DATE] at [TIME]1423228369[/TIME] --------------- great. My admincp says i am not allowed to launch sql query :( I am superadmin, dont know why |
Quote:
You need to list your userid in the config.php file as a user who can run queries. Look for this Code:
$config['SpecialUsers']['canrunqueries'] = ''; and add your userid between the quotes. |
thanks a lot again. I am really a beginner.. and i am italian :p
|
Quote:
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 |
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? |
Quote:
Code:
UPDATE user SET usergroupid=eliminare WHERE usergroupid=3 AND email LIKE '%sina.com%' |
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 [DATE]1423324121[/DATE] at [TIME]1423324121[/TIME] --------------- or like "everything with .pl suffix"? |
So, 3 or more dots other than the one in 'gmail.com'? Maybe this:
Code:
SELECT username FROM user WHERE email LIKE '%.%.%.%gmail.com' and this Code:
SELECT username FROM user WHERE email LIKE '%.pl' To be honest I'm not sure if trailing spaces are removed from emails addresses or not, so I don't know if you need a trailing '%'. |
well this work great for registered users.
Will it work also for the quert in user awaiting email confirmation? One more problem: it doesnt let me erase the users in the new group i created :( ("eliminare") |
Quote:
Quote:
|
i go to the erase/move users in the admincp, choose "eliminare" , it list about 5000 users, i flag them all but when i flag "erase" it says "action specified is not valid" and go back to the panel
--------------- Added [DATE]1423326747[/DATE] at [TIME]1423326747[/TIME] --------------- well to tell the truth it doesnt allow me to move or erase the members of the group i created |
Maybe it's too many to delete at one time. Maybe you can use the 'Join Date is Before' to try to select fewer at a time.
|
thanks it worked :) less users, everything ok!
|
that did work again.. so i want to thanks again for the help!
--------------- Added [DATE]1611529439[/DATE] at [TIME]1611529439[/TIME] --------------- a new request: code to erase directly from query php? thanks in advance |
All times are GMT. The time now is 05:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|