{mailing_list} in opt-in message
Posted: 16 July 2008 11:39 AM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2008-07-16

Hello,

In this thread it’s stated that “{mailing_list}” showing up in mailing list opt-in messages generated when a user subscribes to the mailing list using a Freeform form is a known issue.  That thread is a couple months old, and I’m wondering if there has been any progress on this.  Freeform is perfect for my needs except for this one detail, which will be a bit of a gamebreaker for the client.

If this hasn’t been fixed yet, does anyone know of a workaround that doesn’t involve outputting variable names?

Thanks!

Ian

Profile
 
 
Posted: 16 July 2008 02:10 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3374
Joined  2006-10-18

Ian,

This issue has not yet been corrected.

A simple workaround would be (if you’re only using 1 mailing list), to manually enter the Mailing List name into the notification template smile

 Signature 
Profile
 
 
Posted: 16 July 2008 03:12 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  3
Joined  2008-07-16

That’s the problem; I’m using two mailing lists.  Any ideas for a workaround given that?  I can just use a generic standin within the notification template, I suppose, but then there’s a high probability of confusion if someone signs up for both mailing lists ("What? I just clicked the link for this!” *delete*).

Profile
 
 
Posted: 17 July 2008 03:18 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  3
Joined  2008-07-16

I can’t believe no one’s fixed this bug yet; the fix is amazingly easy.

In mod.freeform.php, line 1420 add a comma at the end of the line, then insert a new line after it with this:

'mailing_list'  => $row['list_title']

After that fix you may as well remove what are now lines 1424-1427.  The database names are completely different from the variables available in the template, so it’s pretty pointless iterating over the database call for the mailing list.

Profile
 
 
Posted: 18 July 2008 07:26 AM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3374
Joined  2006-10-18

Beckism,

Thanks for the notes! LOL

 Signature 
Profile
 
 
Posted: 10 November 2008 12:08 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  2
Joined  2008-07-17

It works! Thanks a ton.

Profile