View Full Version : Administrative and Maintenance Tools - Unsubscribe link for users to opt out of emails and/or newsletters
benstillman
07-07-2010, 10:00 PM
Same as this (https://vborg.vbsupport.ru/showthread.php?t=240512), but tested on 4.0.4.
I send HTML newsletters via the "email users" in the admincp. I add this link to the newsletter so that any users who longer wish to get the newsletter can unsubscribe.
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.
Manoel J?nior
07-12-2010, 02:48 PM
Very nice man!!!!
GREAT!
Krazeguy
09-07-2010, 11:15 PM
Nice one! Thanks!
noj75
09-23-2010, 12:06 PM
Is there anyway of doing this so that the user is not required to be logged in when unsubscribing?
benstillman
10-05-2010, 12:59 AM
Is there anyway of doing this so that the user is not required to be logged in when unsubscribing?
Not securely. Then anyone could unsubscribe anyone else.
Kolbi
12-26-2010, 08:29 PM
Works with 4.1?
benstillman
01-05-2011, 02:04 PM
Works with 4.1?
I'm 99% sure it does. It's working on my 4.1 beta dev site.
seite7
01-22-2011, 02:58 PM
Well, I could unsubscribe, but I don't see it affecting the checkbox (admin emails) in the usercp.
And no matter how I set the checkbox to receive admin mails in the usercp, the unsubscribtion page will always tell me, that I have already unsubscribed.
I though this addon will just set this option of the usercp in an easier way?
benstillman
02-08-2011, 02:49 PM
Well, I could unsubscribe, but I don't see it affecting the checkbox (admin emails) in the usercp.
And no matter how I set the checkbox to receive admin mails in the usercp, the unsubscribtion page will always tell me, that I have already unsubscribed.
I though this addon will just set this option of the usercp in an easier way?
Not sure bud. It's working fine on my 4.1.1 dev site. All it does is change the bit for the adminemail option (useroptions 16 in the xml bitfield). Sounds like maybe your bits need rebuilt?
IndigoSociety
04-02-2011, 11:01 PM
This doesn't seem to include the string to unsubscribe in 4.1.2?
TheInsaneManiac
04-16-2011, 02:55 AM
Will this stop all Admin emails? Like private message and subscribed thread updates?
Will this stop all Admin emails? Like private message and subscribed thread updates?
good stuff. have a good night everyone! =)
benstillman
07-25-2011, 09:45 PM
Will this stop all Admin emails? Like private message and subscribed thread updates?
Anything that checks to see if the user has "receive emails from administrators" option checked or not.
works - but the page where it displays is all over the place style wise?
OldSchoolDSL
01-21-2012, 05:28 AM
Really could use an update for 4.1.10
benstillman
01-24-2012, 06:10 PM
Really could use an update for 4.1.10
Should happen soon.
kisanjong
02-29-2012, 07:44 PM
Should happen soon.
Good news :)
John Lester
07-09-2012, 03:30 PM
Did this fall through the cracks? Does it work for 4.1.12?
John Lester
07-09-2012, 04:45 PM
Ok so on my test forum 4.1.12 pl2 all works fine except ... it does not un-subscribe the user from Receive Friendship Request Email or Receive email from other members.
EDIT: Tweaked the mod a bit to do what I wanted. Thanks for the awesome and simple mod :)
RichieBoy67
07-09-2012, 08:25 PM
This is just what I have been looking for!! I hope it works well..
Thanks much for this!!
RichieBoy67
07-09-2012, 08:30 PM
Ok so on my test forum 4.1.12 pl2 all works fine except ... it does not un-subscribe the user from Receive Friendship Request Email or Receive email from other members.
EDIT: Tweaked the mod a bit to do what I wanted. Thanks for the awesome and simple mod :)
Tweaked it how to do what?
John Lester
07-09-2012, 10:30 PM
Tweaked it how to do what?
My tweaks now unsubscribe the user from the following;
Receive Email from Administrators
Receive Email from Other Members
Receive Friendship Request Email
It also sets Default Thread Subscription Mode to Do not subscribe. I just had the idea to make it uncheck the allow vcard option. I'll report back if I can get that to work.
I will not release these changes until I have communicated with the mod author.
RichieBoy67
07-10-2012, 07:12 AM
That's great. I would love to use your tweaks.
Thanks
TerryMason
07-18-2012, 02:07 PM
Any way to unsubscribe from birthday emails?
John Lester
07-20-2012, 04:47 PM
Any way to unsubscribe from birthday emails?
Uncheck the "receive emails from admins" option in the user profile.
TerryMason
07-20-2012, 05:16 PM
Uncheck the "receive emails from admins" option in the user profile.
Sorry, my question was pretty vague.
I wanted the happy birthday emails to include an unsubscribe link.
John Lester
07-20-2012, 08:38 PM
Enter your ACP and go to Languages and Phrases -> Phrase manager -> Email body Text
You'll see "birthday" on the first page. Click the edit link on the right.
Copy default text if you want to keep the generic greeting. Otherwise add your own birthday message in the white box. At the bottom of the page add
$bburl/misc.php?do=unsub
TerryMason
07-21-2012, 02:46 PM
Thank you John
synseal
11-29-2012, 07:25 PM
Hi and thanks for this but for some reason after testing this the link in the email sent out by admin brings you to a white blank page.
Shame, could this be vbseo related or is it no longer working for 4.2.pl3?
t.i.a
djbaxter
11-29-2012, 08:35 PM
Hi and thanks for this but for some reason after testing this the link in the email sent out by admin brings you to a white blank page.
Shame, could this be vbseo related or is it no longer working for 4.2.pl3?
t.i.a
It's working fine for me with 4.4.0 PL3 plus vBSEO. I would start by looking for other add-ons that may be interfering with this one and disabling them one by one.
Breixo
01-07-2013, 06:43 PM
Anyone has activated it without needing to login, like "inactive user reminder" https://vborg.vbsupport.ru/showthread.php?t=237531
To stop receiving this email, visit this URL: $forumurl/optout-reminders.php?u=$userid&e=$email"
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.