Newsletter Made Simple 1.0-beta6: links do not work

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Der Rudi
Forum Members
Forum Members
Posts: 56
Joined: Wed May 17, 2006 7:42 pm

Newsletter Made Simple 1.0-beta6: links do not work

Post 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]
Last edited by Der Rudi on Wed Sep 13, 2006 5:14 pm, edited 1 time in total.
LeipeLeon

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

Post 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!
Der Rudi
Forum Members
Forum Members
Posts: 56
Joined: Wed May 17, 2006 7:42 pm

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

Post 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
LeipeLeon

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

Post by LeipeLeon »

indeed, i altered the index.php from the root site.

on vacation now, so i can't check further....
Steppenwolf
Forum Members
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

Post 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
liudaz

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

Post 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
Steppenwolf
Forum Members
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

Post 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!!!
Last edited by Steppenwolf on Tue Sep 04, 2007 3:15 pm, edited 1 time in total.
liudaz

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

Post by liudaz »

Thank you very much. Had to change this in action.unsubscribe_email.php file.
Works great! ;)
Post Reply

Return to “Modules/Add-Ons”