NMS link question

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
lennon
Forum Members
Forum Members
Posts: 88
Joined: Fri Jan 13, 2006 12:19 pm

NMS link question

Post 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....
lemkepf
Forum Members
Forum Members
Posts: 163
Joined: Tue Oct 18, 2005 8:30 pm

Re: NMS link question

Post 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
lennon
Forum Members
Forum Members
Posts: 88
Joined: Fri Jan 13, 2006 12:19 pm

Re: NMS link question

Post 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? ???
lennon
Forum Members
Forum Members
Posts: 88
Joined: Fri Jan 13, 2006 12:19 pm

Re: NMS link question

Post by lennon »

Oh and thanks Calguy aswell I guess :)
lemkepf
Forum Members
Forum Members
Posts: 163
Joined: Tue Oct 18, 2005 8:30 pm

Re: NMS link question

Post 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);
lennon
Forum Members
Forum Members
Posts: 88
Joined: Fri Jan 13, 2006 12:19 pm

Re: NMS link question

Post by lennon »

perfect thats worked a treat.

Thanks for your time.
Post Reply

Return to “CMSMS Core”