Page 1 of 1

Newsletter Made Simple 1.0-beta6: links do not work

Posted: Wed Sep 13, 2006 5:09 pm
by Der Rudi
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]

Re: Newsletter Made Simple 1.0-beta6: links do not work

Posted: Fri Sep 15, 2006 3:25 pm
by LeipeLeon
had the same problem, found a work around, requires to alter the index.php:

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 ;
+}
 
is not the best solution, but works for me!

Re: Newsletter Made Simple 1.0-beta6: links do not work

Posted: Tue Sep 19, 2006 10:16 am
by Der Rudi
Ok, done a bit more research and found that the error occures with the links in the following emails send:
  • 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 :D

Re: Newsletter Made Simple 1.0-beta6: links do not work

Posted: Wed Oct 25, 2006 1:03 am
by LeipeLeon
indeed, i altered the index.php from the root site.

on vacation now, so i can't check further....

Re: Newsletter Made Simple 1.0-beta6: links do not work

Posted: Thu Mar 22, 2007 2:19 am
by Steppenwolf
Hi,

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

Posted: Tue Sep 04, 2007 2:53 pm
by liudaz
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
Hello,

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

Re: Newsletter Made Simple 1.0-beta6: links do not work

Posted: Tue Sep 04, 2007 3:11 pm
by Steppenwolf
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!!!

Re: Newsletter Made Simple 1.0-beta6: links do not work

Posted: Tue Sep 04, 2007 3:36 pm
by liudaz
Thank you very much. Had to change this in action.unsubscribe_email.php file.
Works great! ;)