1 of 2
1
Multiple email newsletter signups w/ EE through Freeform
Posted: 31 July 2007 03:43 PM   [ Ignore ]
Newbie
Rank
Total Posts:  8
Joined  2005-06-16

I’ve heard people mention that freeform might be possible but has anyone successfully done this?

Was hoping of using checkboxes and if checked it would sign up the user to the mailing list.

Profile
 
 
Posted: 01 August 2007 02:14 PM   [ Ignore ]   [ # 1 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

While Freeform does support multiple mailinglists in recent versions (via the mailinglist="my_list_name" parameter), there is—to the best of my knowledge—no simple way to let the user specify which lists to subscribe to. A few possible solutions:

.) Simply collect user preferences, then subscribe them manually (or use a few lines of PHP / SQL)
.) A bit of AJAX, perhaps, pulling in various templates (only brainstorming here)

Sorry I have no silver bullet solution for you.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 02 August 2007 12:10 PM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Rob,

Though Ingmar is right, Freeform doesn’t make this very easy, what you can do is this…

Freeform looks for an array of mailinglist ids in the POST. When you supply mailinglists in the mailinglist parameter, Freeform creates this array of values in the form for you as hidden fields. What you can do is NOT supply the mailinglist parameter. But instead, expose checkboxes to your users where the names of each of those checkbox fields follows this format

name="mailinglist[]"

The value of each checkbox field would be the id number of a mailinglist.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 02 August 2007 01:32 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  8
Joined  2005-06-16

Ah, terrific. Thank you!

Profile
 
 
Posted: 03 August 2007 01:40 AM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  26
Joined  2007-03-15

Mitchell, I guess this solution will still fall into the trap of not checking for duplicate entries in mailing lists?

cheers Kenny

Profile
 
 
Posted: 03 August 2007 09:17 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

No. The module is designed not to add someone to a mailinglist twice. And even if it did happen, the EE functions you might use to send mail out filtrer out duplicates just in case.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 03 August 2007 09:48 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  26
Joined  2007-03-15

Hi mk,
if the name already exists in the mailing list it does duplicate. I reported this in another thread.
cheers Kenny

Profile
 
 
Posted: 03 August 2007 10:47 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Oof. Thanks Kenny! It’s borked!

Funny thing about software is that you don’t hear about bugs until some brave soul starts to try out the obscure features.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 03 August 2007 11:48 AM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  26
Joined  2007-03-15

no problem, I can’t make ‘em but i can break ‘em!!

cheers Kenny

Profile
 
 
Posted: 03 August 2007 01:33 PM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Actually, it’s better to find someone who can break ‘em than make ‘em. Speaking of QA. You want to be the first beta tester or our new Video module? It allows you to associate YouTube and Revver videos with blog entries and stuff.

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 06 August 2007 02:13 PM   [ Ignore ]   [ # 10 ]
Newbie
Rank
Total Posts:  26
Joined  2007-03-15

Hi Mitchell,
I must admit we do not have much call for that kind of function on our site at the moment, in fact I had not heard of Revver before you mentioned it! However the way things are going I can see it having a part to play on our site, even if in a limited form.
I would be happy to have a play if the offer is open.
cheers Kenny

Profile
 
 
Posted: 08 August 2007 01:31 PM   [ Ignore ]   [ # 11 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Kenny,

Would you mind emailing support@solspace.com and we’ll get you on the beta group?

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 22 April 2008 06:01 PM   [ Ignore ]   [ # 12 ]
Newbie
Avatar
Rank
Total Posts:  9
Joined  2008-02-16

This is awesome, and exactly what I need for the project I am currently working on. Unfortunately, I can’t get it to work. When the user submits the form, the info is stored in the freeform entry, but they are not signed up for the mailing list. :(

{exp:freeform:form form_name="register"}
<input class="input" type="text" name="email" value="” />
<input name="mailinglist[]" id="requestinfo" type="checkbox" value="default" />
{/exp:freeform:form}

I’m trying to sign the user up for the default mailing list which has the short name “default”.

Does anyone have any idea what I am doing wrong?

Thank you for all of your help!

*EDIT*

I read on another post in the forum that the current version of FreeForm has a bug that disables this feature. Does anyone know of a way to access the older versions of FreeForm?

Profile
 
 
Posted: 23 April 2008 06:45 AM   [ Ignore ]   [ # 13 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3257
Joined  2006-10-18

adamrobo,

We plan to correct this issue in the short future smile

 Signature 
Profile
 
 
Posted: 23 April 2008 07:35 AM   [ Ignore ]   [ # 14 ]
Newbie
Avatar
Rank
Total Posts:  9
Joined  2008-02-16

Thank you, oh protector of the flaky crust.  LOL

Profile
 
 
Posted: 23 April 2008 07:42 AM   [ Ignore ]   [ # 15 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3257
Joined  2006-10-18

haha LOL

 Signature 
Profile
 
 
   
1 of 2
1