The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
email query
I am able to do a query to delete users with a certain address but what I want to do is just remove the email address so they do not bounce. This is simple but I would like to do a few other things as well to clear out my user email addresses that are not active.
#1 - Remove certain address from users but keep users. For example remove all email addresses that contain .xmail.com #2 - Take those users with that address and move them to a different usegroup. I have something like this PHP Code:
Thanks my Vbulletin family! |
#2
|
|||
|
|||
PHP Code:
|
#3
|
||||
|
||||
Just a note to say you should always test queries on a test site first and before doing so on the live site make sure to make a database backup.
|
#4
|
||||
|
||||
Quote:
Thanks for the reply my friend! --------------- Added [DATE]1418235303[/DATE] at [TIME]1418235303[/TIME] --------------- Thanks Lynn, I will make a back up before hand but I am not going to run anything until I am sure it is what I want. |
#5
|
|||
|
|||
You want to remove the address as in setting the email column to an empty value? Or do you want to remove a specific part of the email address?
|
#6
|
||||
|
||||
The entire address. I do not want to lose those members but I do not want those addresses to receive any type of email so I just want to remove the entire address from the user accounts.
Thanks dave |
#7
|
|||
|
|||
It's a matter of changing the email column to an empty string:
PHP Code:
|
Благодарность от: | ||
RichieBoy67 |
#8
|
|||
|
|||
Quote:
after you have changed usergroupid try this UPDATE `user` SET `email`='' WHERE `usergroupid`= x |
Благодарность от: | ||
RichieBoy67 |
#9
|
||||
|
||||
Quote:
--------------- Added 10 Dec 2014 at 14:12 --------------- Quote:
Thanks guys!! |
#10
|
|||
|
|||
Happy to help
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|