Quote:
Originally Posted by squishi
Hi, this looks very good. Marked as installed.
Question:
PHP Code:
$db->query("UPDATE " . TABLE_PREFIX . "user SET options= options - 16 WHERE (options & 16) AND userid=" . $vbulletin->userinfo['userid']);
You set the options for the user there. I think this is some sort of bitwise operation.
It removes the "receive emails from admins" option, right?
I want to add the unsubscribe link to all the communication that I send out (that is, I want to edit the email phrases and add the link).
How would I modify this code so that a user gets unsubscribed from all emails (subscriptions, admin emails, PM notifications)?
|
Great question. I'll have to look into that if I get some free time.