vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - Unsubscribe Link (https://vborg.vbsupport.ru/showthread.php?t=240512)

benstillman 04-14-2010 10:00 PM

Unsubscribe Link
 
1 Attachment(s)
This is a fix for Kirk Y's version for 3.5.4.

Heugabel also ported Kirk Y's to 3.8, 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:
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)?

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

Quote:

Originally Posted by funmasti (Post 2045415)
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, 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

Quote:

Originally Posted by squishi (Post 2044958)
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.

Darakir 02-09-2011 06:52 AM

Is anything like this available for 4.+?

Welshy2008 02-09-2011 02:27 PM

Quote:

Originally Posted by Darakir (Post 2160466)
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


All times are GMT. The time now is 10:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01100 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete