PDA

View Full Version : Administrative and Maintenance Tools - Unsubscribe Link


benstillman
04-14-2010, 10:00 PM
This is a fix for Kirk Y's version (https://vborg.vbsupport.ru/showthread.php?t=120855) for 3.5.4.

Heugabel also ported Kirk Y's to 3.8 (https://vborg.vbsupport.ru/showthread.php?t=224315), but his version was set to double opt out. This in itself can set off spam filters/black lists.

This version fixes the security token error seen with the 3.5.4 version.

So going back to basics, just download and install the product. Then, where ever you want to add a link for users to unsubscribe from admin emails, simply put: http://www.yourforum.com/misc.php?do=unsub. When a user clicks on it, it will ask if they're sure they want to unsubscribe. They click yes, and the option in their UserCP to receive admins emails is set to no. That's it.

There is one template created titled cancel_email_subscription. This is the page they'll see when unsubscribing. It's very basic, and easy to edit.

And lastly, it puts a box on the "send email to users" page that simply says:
"This is the string to use if you want to add 'click to unsubscribe' link: Unsubscribe: $bburl/misc.php?do=unsub".
You can use $bburl/misc.php?do=unsub from the admin cp.

ShackMaster
05-01-2010, 10:47 PM
I will give it a spin... thanks for looking out for us on the double opt-out.

squishi
05-29-2010, 06:56 AM
Hi, this looks very good. Marked as installed.

Question:
$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)?

funmasti
05-30-2010, 09:34 AM
anyone tried it?

i am soo interested on it. please provide me a review

benstillman
06-14-2010, 02:43 PM
anyone tried it?

i am soo interested on it. please provide me a review

I've been using it for quite a while on my site. When I send newsletters, I use the Auto HTML Emails for Administrators mod (https://vborg.vbsupport.ru/showthread.php?t=232687), and send emails through the AdminCP. I incorporate this unsubscribe link in the emails, and voila: no more emails sent from the AdminCP for users who have unsubscribed.

benstillman
06-14-2010, 02:44 PM
Hi, this looks very good. Marked as installed.

Question:
$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.

Darakir
02-09-2011, 06:52 AM
Is anything like this available for 4.+?

Welshy2008
02-09-2011, 02:27 PM
Is anything like this available for 4.+?




https://vborg.vbsupport.ru/showthread.php?t=246163

leemart44
06-24-2014, 09:40 PM
Not working no link in any emails