Page 1 of 1
NMS link question
Posted: Tue Mar 14, 2006 7:01 pm
by lennon
Hi. I'm running CMS Made Simple 0.11.2.
I'm using PHP 4.4.1, and MySQL 4.1.12
I've just started to use the newletter made simple - thanks guys to who ever made it. Its fantastic.
My only question is this: When I add {unsubscribe} is there a way to include this on linked word?
eg. Click here to unsubcribe
I've tried this but no luck. I assume I'm missing something basic here?
Any help or advice appreciated....
Re: NMS link question
Posted: Tue Mar 14, 2006 10:00 pm
by lemkepf
Thanks for the compliments... I built the release you are on... but Calguy is the one who is kinda taking the reigns now and enhancing it to be better.
Anyways... that code you posted doesn't work? Could you post the email html that get's generated when you do that? Thanks,
Paul
Re: NMS link question
Posted: Wed Mar 15, 2006 9:17 am
by lennon
Thanks Paul,
If I do this in NMS Click here to unsubcribe
I get this:
http://www.mysite.ie/index.php?module=N ... =15">Click here to unsubscribe
Clearly this is wrong. Its a link within a link. If I click on this link it asks open a window titled "locate Link Browser".
If I just put in {unsubcribe} it works great but looks unattractive having this huge line of code on an email. I'm having the smae issue with the preferences.
Is this something that can't be done?

Re: NMS link question
Posted: Wed Mar 15, 2006 9:17 am
by lennon
Oh and thanks Calguy aswell I guess

Re: NMS link question
Posted: Wed Mar 15, 2006 1:50 pm
by lemkepf
Ok, i don't think this will change in the future releases... so here is a fix for you:
Search for this line:
Code: Select all
$strMessage = str_replace("{unsubscribe}", "<a href='$unsublink'>$unsublink</a>", $strMessage);
And replace it with:
Code: Select all
$strMessage = str_replace("{unsubscribe}", "$unsublink", $strMessage);
Re: NMS link question
Posted: Wed Mar 15, 2006 3:40 pm
by lennon
perfect thats worked a treat.
Thanks for your time.