Page 1 of 1

User's LIst?

Posted: Thu Mar 15, 2007 4:31 pm
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..

Re: User's LIst?

Posted: Thu Mar 15, 2007 5:45 pm
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.

Re: User's LIst?

Posted: Thu Mar 15, 2007 6:59 pm
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

Re: User's LIst?

Posted: Thu Mar 15, 2007 7:02 pm
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

Re: User's LIst?

Posted: Thu Mar 15, 2007 7:06 pm
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

Re: User's LIst?

Posted: Thu Mar 15, 2007 7:09 pm
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

Re: User's LIst?

Posted: Thu Mar 15, 2007 7:16 pm
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

Re: User's LIst?

Posted: Thu Mar 15, 2007 7:24 pm
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.

Re: User's LIst?

Posted: Thu Mar 15, 2007 7:36 pm
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

Re: User's LIst?

Posted: Thu Mar 15, 2007 7:49 pm
by saltydog
I am running CMS 1.0.4, maybe this is difference? For the rest, I made exactly your steps.

Re: User's LIst?

Posted: Thu Mar 15, 2007 7:53 pm
by RonnyK
If you want I can PM you a login to my test-site, so you can check it over there.

Ronny

Re: User's LIst?

Posted: Thu Mar 15, 2007 7:56 pm
by saltydog
I believe you!
If that's not a prob, I will test. Thanks.

Re: User's LIst?

Posted: Thu Mar 15, 2007 8:07 pm
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!

Re: User's LIst?

Posted: Thu Mar 15, 2007 8:13 pm
by RonnyK
very good, strange though that it works on my version.

Ronny

Re: User's LIst?

Posted: Thu Mar 15, 2007 8:15 pm
by saltydog
Probably it is related to the CMS version (I have 1.0.4) and how it handles templates id's