WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
[resolved] subscribe2 and WP super popup (12 posts)

  1. akhawatebusiness
    Member
    Posted 1 year ago #

    I need help with a wordpress plugin : i want to put the Subscribe2 form in a popup with WP super popup. I wrote <p> </p>
    '<p>[subscribe2 hide="unsubscribe"]</p>
    <p> </p>'
    in the plain HTML content (not the wysiwyg editor) but it doesn't work... it displays the same code

    http://wordpress.org/extend/plugins/subscribe2/

  2. mattyrob
    Member
    Plugin Author

    Posted 1 year ago #

    @akhawatebusiness,

    It would seem that WP Super Popup does not support WordPress shortcodes, until it is updated or you find an alternative popup plugin this is not going to work.

    Have you tried using Subscribe2 with AJAX enabled in the settings?

  3. akhawatebusiness
    Member
    Posted 1 year ago #

    Thank you for your answer, how should I make this ?

  4. mattyrob
    Member
    Plugin Author

    Posted 1 year ago #

    @akhawatebusiness,

    From the FAQs:

    How do I make use of the new option to AJAXify the form?

    The first thing you will need to do is visit the options page and enable the AJAX setting where it says "Enable AJAX style subscription form?", this will load the necessary javascript onto your WordPress site.

    Next you need to decide if you want the link to be on a WordPress page or in your Sidebar with the Widget.

    For a WordPress page you use the normal Subscribe2 token but add a 'link' parameter with the text you'd like your users to click, so something like:

    [subscribe2 link="Click Here to Subscribe"]

    For Sidebar users, visit the Widgets page and look in the Subscribe2 Widget, there is a new option at the bottom called "Show as link". If you choose this a link will be placed in your sidebar that displays the form when clicked.

    In either case, if your end users have javascript disabled in their browser the link will sinply take them through to the subscription page you are recommended to create at step 7 of the install instructions.

  5. akhawatebusiness
    Member
    Posted 1 year ago #

    Here i checked "Enable AJAX style subscription form
    http://hpics.li/b20f125

    I changed my WP super popup plugin, now i try with WP popup Scheduler, they only have an editor, and here is the code (because of appearance settings:
    '<p><span style="color: #333333; font-family: sans-serif; font-size: 13px; line-height: 22px;">[Subscribe2 link = "Cliquez ici pour vous abonner"]</span></p>'

    and it still the same, the popup shows [Subscribe2 link = "Cliquez ici pour vous abonner"]

  6. mattyrob
    Member
    Plugin Author

    Posted 1 year ago #

    @akhawatebusiness,

    If you are using Subscribe2 in AJAX mode it will handle the popup modal for you without the need for a separate popup plugin.

    Please read the instructions I pasted above again, they tell you what you need to do.

  7. akhawatebusiness
    Member
    Posted 1 year ago #

    ok thank you.
    I did it but this is not what i want : with this method, people need to go on the page inscription, click on the link then popu opens.
    I want that when they come to my website, they get a popup for subscribtion.
    Do you see what I mean ?

  8. mattyrob
    Member
    Plugin Author

    Posted 1 year ago #

    @akhawatebusiness,

    Maybe try putting thins in the popup instead then:

    echo do_shortcode(' [Subscribe2 link = "Cliquez ici pour vous abonner"]');

    That might not work though, I don't do stuff like this as I consider it an annoyance on websites.

  9. akhawatebusiness
    Member
    Posted 1 year ago #

    withouh php ?
    like this it doesn't work... I think i need the original code, where sould I find it ?

  10. akhawatebusiness
    Member
    Posted 1 year ago #

    i tryed this :
    <?php echo do_shortcode( [Subscribe2] ); ?>
    Now the popup is empty

  11. mattyrob
    Member
    Plugin Author

    Posted 1 year ago #

    @akhawatebusiness,

    You can't manually deploy the Subscribe2 form, if you try this it probably won't work as expected when data gets submitted.

    You'll need to try to find a popup plugin that supports WordPress shortcodes or speak to the author of one of those plugins about how to get shortcodes working with that popup plugin.

  12. akhawatebusiness
    Member
    Posted 1 year ago #

    yes i're right, thanks for help

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags