Merge Lists

Dilbert

Member
Thanks, it seems if you use UNSUBSCRIBE_FROM_CUSTOMER_URL it sends the whole URL in the message.
If you use UNSUBSCRIBE_FROM_CUSTOMER_LINK, it sends a readable link instead. I like that better.

Can I change the text that is displayed? The wording for unsubscribing from all lists is awkward.
If you no longer wish to receive ANY Newsletters from PathLabTalk, click Unsubscribe from this customer
 

laurentiu

Well-Known Member
Staff member Support Staff MailWizz 2.0 Tester

Dilbert

Member
You can use translations, when you access your form url using the ?lang=en param, then the message will be translated automatically, so let's say your form url is: http://your-domain/index.php/lists/...mer/jt012slmm619e/gw736wal51adf/hy523p6h7bb80 then make it http://your-domain/index.php/lists/...2slmm619e/gw736wal51adf/hy523p6h7bb80?lang=en and the form will be translated.
Sorry, I am not following.
I go to `the page where I edit each list and append ?lang=en to the end? When I did, I get a 404.
I am looking for a way to edit what displays to the end user in the email they receive.
Right now it says:
If you no longer wish to receive ANY Newsletters from PathLabTalk, click Unsubscribe from this customer
I'd prefer it say:
If you no longer wish to receive ANY Newsletters from PathLabTalk, click here
 

laurentiu

Well-Known Member
Staff member Support Staff MailWizz 2.0 Tester
Sorry, I am not following.
I go to `the page where I edit each list and append ?lang=en to the end? When I did, I get a 404.
I am looking for a way to edit what displays to the end user in the email they receive.
Right now it says:
If you no longer wish to receive ANY Newsletters from PathLabTalk, click Unsubscribe from this customer
I'd prefer it say:
If you no longer wish to receive ANY Newsletters from PathLabTalk, click here
To change "Unsubscribe from this customer" in your template use [UNSUBSCRIBE_FROM_CUSTOMER_URL], add it in a href tag.

HTML:
If you no longer wish to receive <b>ANY</b> Newsletters from PathLabTalk, click <a href="[UNSUBSCRIBE_FROM_CUSTOMER_URL]">here</a>
 

Dilbert

Member
To change "Unsubscribe from this customer" in your template use [UNSUBSCRIBE_FROM_CUSTOMER_URL], add it in a href tag.

HTML:
If you no longer wish to receive <b>ANY</b> Newsletters from PathLabTalk, click <a href="[UNSUBSCRIBE_FROM_CUSTOMER_URL]">here</a>
Thank you
 
Last edited:

Dilbert

Member
Sure thing, there you go:
Code:
<script>
   jQuery(document).ready(function($){
       // bootstrap button
       $('.btn-submit').button();

       $('#content form').on('submit', function(e){
           e.preventDefault();
           var $this = $(this);
           var $message = $('.message');
           var $email = $('input[name=EMAIL]', this);

           // empty any previous message
           $message.empty().removeClass('error').removeClass('success').hide();

           // remove dynamically attached error elements
           $('.error', $this).remove();

           // just a small check, the api server will check anyway
           var email = $email.val();
           if (!email || email.indexOf('@') < 0) {
               $message.addClass('error').text('Please enter a valid email!').show();
               return false;
           }

          // new check, make sure at least one list is checked:
          if ( ! $('input[name="lists[]"]:checked').length ) {
               $message.addClass('error').text('Please select at least one list!').show();
               return false;
          }

           // show the loading text on the submit button
           $('.btn-submit').button('loading');

           // post the form to the php script and get the response
           $.post('', $this.serialize(), function(json){
               $('.btn-submit').button('reset');
               $message.text(json.message).show();

               // if the status is success, add the success class.
               if (json.status == 'success') {
                   $message.addClass('success');
                   // also, empty the fields
                   $('input[type=text]', $this).val('');
               } else {
                   // otherwise, add the error class.
                   $message.addClass('error');
               }
           }, 'json');

           return false;
       });
   });
   </script>

So, this page seems to have broken, maybe with one of the recent updates?
https://www.pathlabtalk.com/newsletter/api/subscribe-multiple-lists/index.php

Suggestions on how I can get it working again?

Thank you
 
Top