WordPress.org

Ready to get started?Download WordPress

Forums

MailChimp List Subscribe Form
How to make the subscribe widget constant? (12 posts)

  1. magpie
    Member
    Posted 3 years ago #

    Hello! Is there a way to make the subscribe widget constant? My client would like the form to be there even after a user has subscribed... say in case they want to subscribe to more than one email address...
    I found this page about it (http://www.kavdesign.net/blog/programming/why-mailchimp-widget-disappears-from-my-site-when-i-sign-up/) but the instructions here are not clear.
    How might it be done?

  2. jameslafferty
    Member
    Posted 3 years ago #

    Hi magpiegraphics,

    Two things:

    1. I find it highly improbably that an average user would want to subscribe to a newsletter from multiple addresses (unless they're subscribing other people, which is evil and spammy). Your first approach should be to tell your client that they need to think this thing through a bit more carefully. I know that in my experience, I really _like it a lot_ when sites aren't rats' nests of advertising nonsense and excessive calls to action. That said, I'll get of my soap box.

    2. To make the widget show up all the time, go to /mailchimp-widget/lib/ns_widget_mailchimp.class.php line 270, and change
    (isset($_COOKIE[$this->id_base . '-' . $this->number]) && $this->hash_mailing_list_id($this->number) == $_COOKIE[$this->id_base . '-' . $this->number]) || false == $this->ns_mc_plugin->get_mcapi()
    to
    false

    Please let me know if you've run into any issues. (2 represents my true, helpful self ;) )

    J.

  3. magpie
    Member
    Posted 3 years ago #

    Hello. I agree actually, as long as the subscribe widget is available to multiple users on one computer. Well perhaps I won't need to use the alteration but thank you either way.

  4. magpie
    Member
    Posted 3 years ago #

    Incidentally, I just tested and it works a charm. Thank you.

  5. jameslafferty
    Member
    Posted 3 years ago #

    Glad I could help :)

    J.

  6. jameslafferty
    Member
    Posted 3 years ago #

    This thread is listed under the wrong tag, but does seem to be resolved. Could someone with the power to do so mark it as such?

    Cheers,

    J.

  7. catriona
    Member
    Posted 3 years ago #

    Thanks for the tip as well. I'm using the form in a page where it has a hole if the form disappears.

    That being said, I like the idea of having the widget disappear once it's usefulness is spent. Down with clutter!

  8. jameslafferty
    Member
    Posted 3 years ago #

    Radness, catriona. I'm glad it helped you. :)

  9. Jack Barham
    Member
    Posted 3 years ago #

    Thanks for this - I was having the same problem as well!

    James - I understand why you have added the 'disappearing' feature which I agree with. However it left a hole in my design that required the form to be there else the site looked a bit odd and testing it also took me ages.

    Would it be possible to have an option for the site owner to choose if they wanted it to disappear or not.

    Great plugin by the way, I prefer it to the main MailChimp one :)

    Jack

  10. goofas
    Member
    Posted 2 years ago #

    Hi! Just wanted to mention that this helped me. I also wanted to mention why I want the form to stay. It's not because I expect the user to input multiple email addresses or anything 'evil and spammy'.

    Quite simply, the site was designed with the form as part of the aesthetic and without it the space looks empty. So I know it has served its purpose once the user has used it but I like it to be there afterwards for design reasons.

    Thanks for a GREAT plugin!

  11. danicholls
    Member
    Posted 2 years ago #

    Hi, this also helped me. It would be great, though, if this was a checkbox option on the widget itself (or if this was in the readme).

    A few points about the assumption the widget makes: 1) one person uses each computer (not true for families, colleges, libraries); 2) a submitted request to join the mailing list has been successful (when it is sent but not confirmed, it still disappears). I presume, but have not tested, that #2 also crops up if someone has unsubscribed and then decides to go back to the website to subscribe again.

    For the above reasons and for the element of least surprise for developers, it'd be great if non-disappearing were at least a built-in option. Nevertheless, a wonderfully simple plug-in.

  12. ksrep28
    Member
    Posted 2 years ago #

    I put false in the '-' spaces. Is that correct? It shows up now but the only problem is the first name of whoever filled it out last stays in the first name box when its refreshed. If I overwrite that whole line of code and put false in its place it gives me an error. Can anyone shed a little more light on what to replace? I think I'm missing something. Sorry for not understanding completely.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags