Running NMS 1.0-beta6 on CMSms 1.0.1 (upgrade from 1.0); IE6 on XP.
- subscribing is ok
- receive email with link to confirm, works
- receive email confirming confirmation and links to unsubscribe or change settings
links look like this: somedomain/index.php?mact=NMS,cntnt01,usersettings,0&cntnt01uniqueid=77dfeabfb86b7c6c111a892ac10985d1&cntnt01returnid=61
- both links, change settings link and unsubscribe link, give this error:
[gelöscht durch Administrator]
Newsletter Made Simple 1.0-beta6: links do not work
Newsletter Made Simple 1.0-beta6: links do not work
Last edited by Der Rudi on Wed Sep 13, 2006 5:14 pm, edited 1 time in total.
Re: Newsletter Made Simple 1.0-beta6: links do not work
had the same problem, found a work around, requires to alter the index.php:
is not the best solution, but works for me!
Code: Select all
===================================================================
--- index.php (revision 3130)
+++ index.php (working copy)
@@ -17,7 +17,8 @@
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#$Id$
-
+ini_set('arg_separator.input',';&');
+ini_set('arg_separator.output','&');
$dirname = dirname(__FILE__);
require_once($dirname.'/fileloc.php');
@@ -69,7 +70,12 @@
require_once($dirname.'/include.php'); #Makes gCms object
-$params = array_merge($_GET, $_POST);
+$params2 = array_merge($_GET, $_POST);
+// clean 'amp;'
+foreach ($params2 as $key=>$val)
+{
+ $params[preg_replace('@amp;@','',$key)] = $val ;
+}
Re: Newsletter Made Simple 1.0-beta6: links do not work
Ok, done a bit more research and found that the error occures with the links in the following emails send:
The link in email send to confirm subscribtion do work ie tag {cms_module module='NMS' mode='subscribe'} and the unsubscribe link in the email send when you confirmed the subscribtion work, the link for changing user settings gives no output ie no content, menus etc display ok, no errors.
@LeipeLeon
Which index.php do you mean? The one in the root of the site? Can not find an index.php in the NMS module, but that can be just me not seeing it
- requesting to change the user settings ie tag {cms_module module='NMS' mode='usersettings'}.
- requisting to unsubscribe ie tag {cms_module module='NMS' mode='unsubscribe'}.
The link in email send to confirm subscribtion do work ie tag {cms_module module='NMS' mode='subscribe'} and the unsubscribe link in the email send when you confirmed the subscribtion work, the link for changing user settings gives no output ie no content, menus etc display ok, no errors.
@LeipeLeon
Which index.php do you mean? The one in the root of the site? Can not find an index.php in the NMS module, but that can be just me not seeing it

Re: Newsletter Made Simple 1.0-beta6: links do not work
indeed, i altered the index.php from the root site.
on vacation now, so i can't check further....
on vacation now, so i can't check further....
-
- Forum Members
- Posts: 19
- Joined: Fri Dec 01, 2006 11:22 am
- Location: Germany
Re: Newsletter Made Simple 1.0-beta6: links do not work
Hi,
a str_replace of "&" to "&"
around the two calls to CreateFrontendLink() in action.usersettings_email.php should be enough for this problem.
Eberhard
a str_replace of "&" to "&"
around the two calls to CreateFrontendLink() in action.usersettings_email.php should be enough for this problem.
Eberhard
Re: Newsletter Made Simple 1.0-beta6: links do not work
Hello,Steppenwolf wrote: Hi,
a str_replace of "&" to "&"
around the two calls to CreateFrontendLink() in action.usersettings_email.php should be enough for this problem.
Eberhard
It is an old topic but i desperately need to make those unsubscribe links to work in the the 1.0-beta6 .
I am using the CMS MS 1.0.2, and the lates stable releases of NMS eather doesnt get installed vis xms(NMS v1.0.2) or displays errors in the admin pannel (NMS v1.0.1).
So what is the key of changing those "amp" things into "&" for the unsubscribe link?
Thank you for your help.
Liudas
-
- Forum Members
- Posts: 19
- Joined: Fri Dec 01, 2006 11:22 am
- Location: Germany
Re: Newsletter Made Simple 1.0-beta6: links do not work
I am using CMS Made Simple 1.0.4 "Lanai".
In modules/NMS/action.usersettings_email.php (line 23 ff) I added this (red):
$this->smarty->assign( 'usersettings_url',
str_replace( "&", "&",
$this->CreateFrontendLink( $id, $returnid, 'usersettings', '',
array('uniqueid' => $userinfo['uniqueid']),
'', true, '', true)));
$this->smarty->assign( 'unsubscribe_url',
str_replace( "&", "&",
$this->CreateFrontendLink( $id, $returnid, 'unsubscribe',
'', array('uniqueid' => $userinfo['uniqueid']),
'', true, '', true)));
Hope, this helps!
Eberhard
P.S.: Don't forget the closing brace!!!
In modules/NMS/action.usersettings_email.php (line 23 ff) I added this (red):
$this->smarty->assign( 'usersettings_url',
str_replace( "&", "&",
$this->CreateFrontendLink( $id, $returnid, 'usersettings', '',
array('uniqueid' => $userinfo['uniqueid']),
'', true, '', true)));
$this->smarty->assign( 'unsubscribe_url',
str_replace( "&", "&",
$this->CreateFrontendLink( $id, $returnid, 'unsubscribe',
'', array('uniqueid' => $userinfo['uniqueid']),
'', true, '', true)));
Hope, this helps!
Eberhard
P.S.: Don't forget the closing brace!!!
Last edited by Steppenwolf on Tue Sep 04, 2007 3:15 pm, edited 1 time in total.
Re: Newsletter Made Simple 1.0-beta6: links do not work
Thank you very much. Had to change this in action.unsubscribe_email.php file.
Works great!
Works great!
