User's LIst?

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
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

User's LIst?

Post by saltydog »

Is there available a simple module to let the user subscribe to a newsletter? THE NMS is quite complicated for my needs: I need the user just inputs his email, and the system stores it in a list I can use to send the news..
cyberman

Re: User's LIst?

Post by cyberman »

Please look for it here

http://dev.cmsmadesimple.org/

But I'm very often there and think there's nothing like this.

But maybe you can take such a simple php script from anywhere and use it via userdefined tag ... or you embed something via iframe.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: User's LIst?

Post by RonnyK »

What do you mean with NMS is to compilcated. If you call NMS with th eoption subscribe, all a user has to add, is an e-mail, and optionally, if more than one list exists, choose the newsletter he wishes to subscribe to.

Ronny
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: User's LIst?

Post by saltydog »

RonnyK wrote: What do you mean with NMS is to compilcated. If you call NMS with th eoption subscribe, all a user has to add, is an e-mail, and optionally, if more than one list exists, choose the newsletter he wishes to subscribe to.

Ronny
Yes, thanks. I have better studied it and now I am testing...
Some problems with the message composer, thou
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: User's LIst?

Post by RonnyK »

To send a html-file, you must setup a template without the {content}, this must be replace by {$message_text}, this is shown in the text, while composing a message.
Quote:  When using a page template as a message template, you need to use {$message_text} in place of {content} in your template.
Ronny
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: User's LIst?

Post by saltydog »

RonnyK wrote: To send a html-file, you must setup a template without the {content}, this must be replace by {$message_text}, this is shown in the text, while composing a message.
Quote:  When using a page template as a message template, you need to use {$message_text} in place of {content} in your template.
Ronny
Did it, Ron, but it won't work. Look at this thread: http://forum.cmsmadesimple.org/index.ph ... l#msg53944
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: User's LIst?

Post by RonnyK »

If you just fill a name, a valid mail-address and a subject-line (don't change the mail-content), do you then also get the error?

Be aware that the settings in the "preferences" tab must be correctly filled as well, being the admin-mail.

Ronny
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: User's LIst?

Post by saltydog »

RonnyK wrote: If you just fill a name, a valid mail-address and a subject-line (don't change the mail-content), do you then also get the error?

Be aware that the settings in the "preferences" tab must be correctly filled as well, being the admin-mail.

Ronny
Yes. It didn't work even with just default inputs. One question: what is the "Return Page"? It is un-grayed only in "None HTML message"  mode.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: User's LIst?

Post by RonnyK »

In my version it's ungray all the time? I'm running NMS 1.0.1 on CMS 1.0.2.

If you choose your template as HTML-template, so change the default, further change nothing except, the 3 fields (user, mail, subject). That works for me, I just installed a clean NMS to test it.

Ronny
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: User's LIst?

Post by saltydog »

I am running CMS 1.0.4, maybe this is difference? For the rest, I made exactly your steps.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: User's LIst?

Post by RonnyK »

If you want I can PM you a login to my test-site, so you can check it over there.

Ronny
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: User's LIst?

Post by saltydog »

I believe you!
If that's not a prob, I will test. Thanks.
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: User's LIst?

Post by saltydog »

Rnny, I have found the trick.
Sniffing into the code, I have found a line that wasn't correct.

else if( $templateid == -1 )
  {
    $this->smarty->assign('message',$this->Lang('error_formerror'));
    $error = true;

Just changed the "-1" with "0" and now it is working!
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: User's LIst?

Post by RonnyK »

very good, strange though that it works on my version.

Ronny
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: User's LIst?

Post by saltydog »

Probably it is related to the CMS version (I have 1.0.4) and how it handles templates id's
Post Reply

Return to “CMSMS Core”