You actually have to apply a filter in the management interface before sending your newsletter (just filter on the name of the newsletter that they signed up for).ahh, okay...thanks, it’s working
didn’t know i had to go to "View Items" first and add a filter to the list. i guess this is also the way to send a test-nesletter (filter by a certain email address)
I was just wondering if it’s possible to send embedded images in the newsletters generated with this Add-on.sure, the path to the images just needs to be absolute. You can change the settings under "Tools" -> "Configuration" -> "Interface & Features" -> "Rewrite browser paths?" -> set to "No"
I had exactly the same problem and I’ve worked out a solution....
Hi,
i have installed Modx CMS in a new directory called /v1/
Thats a problem for the txnewsletter.
Example 1:
Newsletter preview -> I can’t see the preview. TXNewsletter take the newsletter from http://www.mysite.com/index.php?id=4
But that is not the right directory. The right directory is: http://www.mysite.com/v1/index.php?id=4
Example 2:
unsubcribe E-mail: http://www.mysite.com/index.php?&id=1&action=del&[email protected]&control=bad200ba893f9d9ef9324b5bcd34cacf
That dosen’t work. Only with the directory /v1/ does work.
How i can make its work?
Compare: (<)C:\tools\xampp\htdocs\modx100\assets\modules\txnewsletters\txnewsletters.inc.php (86477 bytes) with: (>)C:\tools\xampp\htdocs\modx100\assets\modules\txnewsletters\txnewsletters.inc - Original.php (86444 bytes) 104c104 < $link = $modx->config['base_url'].'index.php?&id='.$modx->TXNewsletters['idPageUnsubscribe'].'&action=del&email='.$email.'&control='.$MD5.''; --- > $link = 'http://'.$_SERVER['HTTP_HOST'].'/index.php?&id='.$modx->TXNewsletters['idPageUnsubscribe'].'&action=del&email='.$email.'&control='.$MD5.''; 121c121 < $base_path = $modx->config['base_url']; --- > $base_path = $modx->config['base_path']; 531c531 < $html .='<form method="post" action="'.$modx->config['base_url'].'index.php?&id='.$modx->TXNewsletters['idPageUnsubscribe'].'" >'."\n"; --- > $html .='<form method="post" action="http://'.$_SERVER['HTTP_HOST'].'/index.php?&id='.$modx->TXNewsletters['idPageUnsubscribe'].'" >'."\n"; 943c943 < $html .='<form method="post" action="'.$modx->config['base_url'].'index.php?&id='.$modx->TXNewsletters['idPageUnsubscribe'].'" >'."\n"; --- > $html .='<form method="post" action="http://'.$_SERVER['HTTP_HOST'].'/index.php?&id='.$modx->TXNewsletters['idPageUnsubscribe'].'" >'."\n"; 958c958 < $html .='<form method="post" action="'.$modx->config['base_url'].'index.php?&id='.$modx->TXNewsletters['idPageUnsubscribe'].'">'."\n"; --- > $html .='<form method="post" action="http://'.$_SERVER['HTTP_HOST'].'/index.php?&id='.$modx->TXNewsletters['idPageUnsubscribe'].'">'."\n"; 1464c1464 < $html .= ' <a href="#" onClick="javascript:window.open(\''.$modx->config['base_url'].'index.php?id=\'+document.formSend.newsletterId.value,\'Newsletter\',\'width=800,height=600,menubar=no,scrollbars=no,status=no,toolbar=no\');"><img src="'.$modx->TXNewsletters['path_url'].'images/context_view.gif" style="vertical-align:middle;" /> '.$modx->TXNewsletters['txtlang']['send_label_preview'].' </a> <br /><br />'."\n"; --- > $html .= ' <a href="#" onClick="javascript:window.open(\'/index.php?id=\'+document.formSend.newsletterId.value,\'Newsletter\',\'width=800,height=600,menubar=no,scrollbars=no,status=no,toolbar=no\');"><img src="'.$modx->TXNewsletters['path_url'].'images/context_view.gif" style="vertical-align:middle;" /> '.$modx->TXNewsletters['txtlang']['send_label_preview'].' </a> <br /><br />'."\n"; 1524c1524 < $link = 'http://'.$_SERVER['HTTP_HOST'].$modx->config['base_url'].'index.php?&id='.$modx->TXNewsletters['idPageUnsubscribe'].'&action=del&email='.$email.'&control='.$MD5; --- > $link = 'http://'.$_SERVER['HTTP_HOST'].'/index.php?&id='.$modx->TXNewsletters['idPageUnsubscribe'].'&action=del&email='.$email.'&control='.$MD5;
I had exactly the same problem and I’ve worked out a solution....that’s great - thanks for sharing!
Here is a version of TXNewsletters with the added option of sending emails with a confirmation link before a subscription is activated.
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: urlencode() expects parameter 1 to be string, array given
Error type/ Nr.: Warning - 2
File: /www/htdocs/w00bec78/MvL-Test/assets/snippets/weblogin/weblogin.common.inc.php
Line: 79
Line 79 source: $urlstring[] = urlencode($name) . ’=’ . urlencode($value);
Parser timing
MySQL: 0.0012 s (2 Requests)
PHP: 0.0499 s
Total: 0.0511 s
[!TXNewsletters? &action=add!]
[!TXNewsletters? &action=`add`!]