We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

NEW Plugin - List Member…

Development and Programming

Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
Plugin Updated With thanks to Dabbledoo the plugin has now been updated to V1.1 The SQL query has been modified slightly and a new function to provide an unsubscribe URL has now been created. Many thanks Dabbledoo (Doug).

Hiya,

Another very quick and simple plugin this one. Just does the one job so far and that is to check whether the logged in user is signed up for a certain mailing list.

Usage

{exp:list_member list_name="default"}

{if member_of_list}
You <strong><em>are</em></strong> a member of the <strong>{list_name} - {list_title}</strong> mailing list
<a href="http://{unsubscribe_url}">Unsubscribe</a>
{if:else}
You <strong><em>are not</em></strong> a member of the <strong>{list_name} - {list_title}</strong> mailing list
{/if}

{/exp:list_member}

If the logged-in member is a member of the mailing list short name that you provide in the plugin parameter then the success message in the member_of_list conditional will be shown. If they either aren’t a member of the list or you have provided the wrong list_name parameter then the other message will be shown instead.

I wasn’t really too sure of what to do if people provide a list name in the parameter which doesn’t exist so the member_of_list error message will show on both counts. I am looking into this though to perhaps do something different depending on whether the user is a member or if someone provides an incorrect parameter.

Hope it helps someone somewhere though.

Best wishes,

Mark

       
russlipton's avatar
russlipton
305 posts
16 years ago
russlipton's avatar russlipton

How are you using/recommend using this in specific cases?

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Well actually I very very quickly wrote the plugin in answer to this post here.

Thought it might have some uses.

Best wishes,

Mark

       
russlipton's avatar
russlipton
305 posts
16 years ago
russlipton's avatar russlipton

OK. I can also see it being useful for pitching special offers, paid or free, to folks who have self-identified their interests by joining a specific list.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
OK. I can also see it being useful for pitching special offers, paid or free, to folks who have self-identified their interests by joining a specific list.

Excellent! Thanks for the ideas 😉 Giving me thoughts now too!! 😊

       
Bas1c's avatar
Bas1c
11 posts
16 years ago
Bas1c's avatar Bas1c

Thx Mark. It’s working and pretty straight forward 😊

Really appreciate it.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
Thx Mark. It’s working and pretty straight forward 😊 Really appreciate it.

No problem at all. Glad it’s of use.

Best wishes,

Mark

       
theVitalPath's avatar
theVitalPath
23 posts
15 years ago
theVitalPath's avatar theVitalPath

Awesome Mark…very useful!

Just one thing: you use {list_name} which pulls the short name of the mailing list…anyway to get the full name? i tried {full_name} but no luck.

Thanks! Dan

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen

Hi Dan,

Plugin now updated to allow for the {list_title} variable.

Should hopefully do what you need now.

Best wishes,

Mark

       
theVitalPath's avatar
theVitalPath
23 posts
15 years ago
theVitalPath's avatar theVitalPath

Thanks for the super fast response and update…works like a charm now!

Cheers, Dan

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen
Thanks for the super fast response and update…works like a charm now! Cheers, Dan

No problem at all.

Hope it all goes well for you.

Best wishes,

Mark

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.