View Full Version : Update Admin Email Option
Black Snow
03-22-2015, 04:56 PM
I'm looking for a query to update the user table so all members who disabled receiving emails from admins is changed so they will receive them.
You can use this:
UPDATE user SET options = options + 16 WHERE NOT (options & 16)
You can also execute that same query from Maintenance > Execute SQL Query by finding it in the "Automatic Query" list. (To do that you need to be in the config.php file as a user who is allowed to execute queries).
Black Snow
03-23-2015, 10:32 AM
You can use this:
UPDATE user SET options = options + 16 WHERE NOT (options & 16)
You can also execute that same query from Maintenance > Execute SQL Query by finding it in the "Automatic Query" list. (To do that you need to be in the config.php file as a user who is allowed to execute queries).
Do I run this exactly how you have it?
UPDATE user SET options = options + 16 WHERE NOT (options & 16)
Do I run this exactly how you have it?
UPDATE user SET options = options + 16 WHERE NOT (options & 16)
Yes, unless you have a table prefix defined, then you need to add that to 'user'.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.