CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Mail Opt Out URL
Pages: [1] 2

Author Topic: Mail Opt Out URL  (Read 6286 times)

theclaredotcom

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: wordpress 3.4
  • MySQL version: 5.5.16
  • PHP version: 5.3.8
Mail Opt Out URL
November 02, 2012, 11:16:06 am
Sorry if someone already posted about this - I couldn't find the same issue.

I'm running CiviCRM 4.1 on Wordpress 3.4.2

I'm setting up the mailing part of the system, and testing emails particularly if a recipient clicks 'unsubscribe' and it just goes to the home page of the site and doesn't unsubscribe them.

Is there something else I should have setup? I've gone through the admin/settings options and don't see anything.

Help! We obviously can't start sending out mailings without a working opt-out.

Thank you so much in advance!
Clare.


Guy Iaccarino

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 5
    • Greenleaf Advancement
  • CiviCRM version: 4.4.10, 4.5.4
  • CMS version: WordPress 4, Drupal 7, Drupal 6, Joomla 3
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Mail Opt Out URL
December 09, 2012, 04:31:15 pm
This is for anyone else who may stumble upon this thread with the same issue, as we had it too. We found that when the front page for our site was the most recent post, the opt out message wouldn't appear. When the front page was a static page, the opt out message would appear and work correctly. We're still tracking down the specific reason for this. I'll update this if we are able to track it down.
Guy Iaccarino
www.greenleafadvancement.com

theclaredotcom

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: wordpress 3.4
  • MySQL version: 5.5.16
  • PHP version: 5.3.8
Re: Mail Opt Out URL
December 12, 2012, 05:19:48 am
Hi
thanks for that update...
Our front page is a static page, but which has a recent post fed into a widget... I've tried removing this but it makes no difference.  The links simply don't work - neither I've noticed does the 'view this email as a webpage' token
It's frustrating as we've had to revert to the old newsletter provider so it means exporting and importing contacts each month and with other stupid little issues with tokens not being resolved (so having to use word for mail merge!!) looking like we'll be ditching civicrm as its causing more work than time saving - which is a shame.
C.  :-\

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Mail Opt Out URL
December 12, 2012, 08:43:42 am

just curious:

have u considered hiring someone from the civi experts list with civi + wp skills that can potentially help your org out and also help improve the civi + wp integration?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

theclaredotcom

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: wordpress 3.4
  • MySQL version: 5.5.16
  • PHP version: 5.3.8
Re: Mail Opt Out URL
December 12, 2012, 10:06:02 am
Sadly if the charity had funds for that I would have more than just part time hours and would have more time to research solutions.  The cost of that takes funds out of medical care for our patients - this is why we looked at civi as a crm solution - because it didnt cost 1000s like Dynamics for example.


Anthony F. Camilleri

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 2
  • CiviCRM version: 4.4.3
  • CMS version: wordpress
  • MySQL version: 5.1
  • PHP version: 4.3
Re: Mail Opt Out URL
December 12, 2012, 12:04:08 pm
I didn't find this post till after posting two new topics, where I ask different questions linked to this (sorry I only found this afterwards after unsuccessful searching):

  • Here I ask for advice as to the technical problem with the unsubscribe issue: http://forum.civicrm.org/index.php/topic,27135.msg115536.html#msg11553
  • Here I suggest a methodology for a more lasting solution of the underlying issue in WP/Civi: http://forum.civicrm.org/index.php/topic,27136.msg115537.html#msg115537

If the answers there allow me to make a workable solution, I'll post it back here.

/A

theclaredotcom

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: wordpress 3.4
  • MySQL version: 5.5.16
  • PHP version: 5.3.8
Re: Mail Opt Out URL
December 12, 2012, 12:14:45 pm
Thanks  :)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Mail Opt Out URL
December 12, 2012, 12:58:10 pm

have you tried the method indicated here:

http://issues.civicrm.org/jira/browse/CRM-10682

i.e. definiing a CiviCRM landing page for all frontend actions:

define( 'CIVICRM_UF_WP_BASEPAGE', 'about');

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: Mail Opt Out URL
December 18, 2012, 06:08:16 am
Clare, hi

I don't knoiw if you've solved your problem yet, but I came across a similar issue with a Wordpress site. In that case we think it was down to the fact that the way Wordpress had been set up (in terms of locations of files and folders on the server) was not the default, and Civi could not cope with this. Is your Wordpress install non-default in this way?

Best wishes
Graham
Graham Mitchell
http://mc3.coop

Guy Iaccarino

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 5
    • Greenleaf Advancement
  • CiviCRM version: 4.4.10, 4.5.4
  • CMS version: WordPress 4, Drupal 7, Drupal 6, Joomla 3
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Mail Opt Out URL
February 22, 2013, 02:58:38 pm
Lobo, we tried the method you described (adding define( 'CIVICRM_UF_WP_BASEPAGE', 'about'); to the civicrm.settings.php file, replacing "about" with the name of one of our pages) and it worked great for things like payment confirmations, thank you pages, etc, but did not work for the unsubscribe function. Did I miss anything?
Guy Iaccarino
www.greenleafadvancement.com

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Mail Opt Out URL
February 22, 2013, 03:14:12 pm

whats the url of the unsubscribe page? make sure you are not loading the unsubscribe page as admin

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Guy Iaccarino

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 5
    • Greenleaf Advancement
  • CiviCRM version: 4.4.10, 4.5.4
  • CMS version: WordPress 4, Drupal 7, Drupal 6, Joomla 3
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Mail Opt Out URL
February 22, 2013, 07:03:50 pm
Lobo, you are good.

When I was sending the email to an address that was associated with an administrator account, the opt out wouldn't work. When I sent the email to an address that wasn't associated with an admin account, it worked like a charm.

Thanks so much!  :)
Guy Iaccarino
www.greenleafadvancement.com

Guy Iaccarino

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 5
    • Greenleaf Advancement
  • CiviCRM version: 4.4.10, 4.5.4
  • CMS version: WordPress 4, Drupal 7, Drupal 6, Joomla 3
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Mail Opt Out URL
February 23, 2013, 10:40:18 am
I have one more issue with this. The opt-out and the double opt-in confirmation pages load great, but the "interim" message pages - say to notify the user that there is already a user with that email, or if the reCAPTHA is bad - don't display correctly. They display in one of the boxes in the image slider on the home page.

Have I missed something in the setup? Is there something besides the entry in civicrm.settings.php that I am supposed to do?

This install is still 4.2.7 - would upgrading to 4.2.8 (which I am going to do tonight) fix the problem?

Thanks in advance...again....
Guy Iaccarino
www.greenleafadvancement.com

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Mail Opt Out URL
February 23, 2013, 04:38:44 pm

You'll need to debug and submit patches for this. I dont think anyone has tested the flow / look of the mailing opt-in/out (un) subscribe pages in wordpress

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Guy Iaccarino

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 5
    • Greenleaf Advancement
  • CiviCRM version: 4.4.10, 4.5.4
  • CMS version: WordPress 4, Drupal 7, Drupal 6, Joomla 3
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Mail Opt Out URL
March 07, 2013, 12:37:46 pm
OK, I got the full workflow of unsubscribing, opting out, double opt ins, etc, to work on two WordPress sites, and here's what I did. This is definitely a workaround, because I don't know enough about Civi's particulars yet to write a formal patch, but maybe for now this can help someone else who is trying to do this, as well as help someone write a patch if they get to it before I do.
  • View your exisitng homepage in a browser. Choose to view the source. Copy it out and save that file for now.
  • Copy the normal page template, usually page.php, in the directory of whichever theme you are using, and name the copy something like customhome.php.
  • Edit customhome.php and change the value for Template Name to something like "Custom Home."
  • If you don't want a title on your home page, and you can see where the code in customhome.php inserts the title, you can delete that if you know what you're doing, but this is optional.
  • Create a new page in Wordpress, and under the Page Attributes area on the right, choose the template you just created (i.e Custom Home). 
  • Now open the source of the original home page that you saved in step one, and look for the content area. Copy that code into the HTML / Text tab on the WordPress page you have open. Preview it.
  • You'll probably have to tweak it several times, and depending on the complexity of your html and css, maybe more times that that. But I've got it to work on two different sites using two different themes, though one was definitely easier than the other.
  • Go to Settings - Reading and change "Front page displays" from "Your latest posts" to "A static page" and choose the page you just created (depending on the theme, this might have to be done through Appearance - Manage Themes - Customize - Static Front Page).
The nice thing about this, as rough as this hack is, is that if there are widgets in the content that you copied into the HTML / Text area, the WordPress interface for controlling the widgets will still work, because the widgets are still there. They are just loading through the WordPress content area instead of through the page template file.

While intuitively this makes sense to me, I don't know what it is specifically about loading this home page content later in the page creation process that makes Civi and WordPress behave nicely together, but it works. I'm happy to serve as a tester for someone if they think they know how to fix this properly in the code before I can either fund it or dig into it myself.
« Last Edit: March 11, 2013, 07:59:56 am by Guy Iaccarino »
Guy Iaccarino
www.greenleafadvancement.com

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Mail Opt Out URL

This forum was archived on 2017-11-26.