Support » Plugins » Pull Subscribe2 code to the sidebar – Help Please!

  • I just downloaded the latest version of Subscribe2 plugin but wonder if anyone knows how to put the subscribe box on the sidebar instead of creating a new page?

    Thanks a lot

Viewing 15 replies - 1 through 15 (of 23 total)
  • Once the plugin is activated it should be as simple as putting this:
    <!--subscribe2-->
    in sidebar.php.

    Thread Starter tri-fusion

    (@tri-fusion)

    It doesn’t work

    no it does not, any more suggestions?

    If your theme is “widgetized”, you can accomplish what you want by installing the Subscribe2 Widget:
    http://www.prescriber.org.uk/subscribe2.php
    (Scroll to the second half of the page.)

    However, if anyone has any ideas how to do this for non-widgetized themes, I would love to hear about it, too!

    Btw, you will want to create a separate page for Subscribe2 in any case so that your registered users can modify their subscription preferences.

    Above, I posted a way to include the Subscribe2 subscription form in the sidebar of any widgetized theme.

    Does anybody know how to include the same in the Sidebar for themes that don’t use widgets?

    For non-widgetized page templates, I think that you will need to add a PHP line directly in the sidebar file.
    For example,

    <br><br><h2>Example</h2>
    <ul><?php sidebar2(); ?></ul>

    Thanks, aadil! Will try it out… 🙂

    Are you sure it’s <?php sidebar2(); ?> and not <?php subscribe2(); ?>? I couldn’t find any sidebar funtion inside the plugin file.

    I just gave it as an example, in fact I don’t even know the correct function name to call. I only know the syntax.

    I think the plugin file should help in determining the correct function to call.

    I just gave it as an example, in fact I don’t even know the correct function name to call.

    Oh, OK! Anybody out there who knows which function to call? Thanks! 🙂

    even i am looking for this for a long time but i have seem many blog have the subcrive plugin in there side bar hope some one post it here

    Nobody knows which function to call in order to pull the Subscribe2 subscription form to the sidebar menu for non-widgetized themes?

    You may want to head here:

    http://subscribe2.wordpress.com/2006/09/08/sidebar-subscribe2-without-a-widget/

    I look after the plugin now and I have a poll on about this very thing!

    Hi MattyRob,

    Thanks! I have placed my comment (in favor of publishing the unsupported method).

    I fully appreciate the fact that you are using your own time to support/update this great plugin after skippy dropped it and I am sure I am not the only one who is eternally grateful for that.

    However, what I don’t understand is why don’t you just post the way to include Subscribe2 into sidebar without the widget and just be done with it?

    As far as the Subscribe2 plugin, putting it in the sidebar for non-widgetized themes seems to be the most frequently asked question and there are plenty of reason why somebody might not want to use widgets.

    Of course, nobody expects you to support things you don’t want to support, but you can save yourself lots of frustration by answering this question once and for all.

    Matty, your poll results seem to be quite unanimous in wanting also the non-widgetized version. Do you have any plans to release it (supported or not)?

    FYI, Matty just posted the non-widget Subscribe2 solution to his blog.

    Here’s the code he recommends:

    $content = apply_filters('the_content', '<!--subscribe2-->
    ');
    echo $content;

    I am going to give it a try and report back.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Pull Subscribe2 code to the sidebar – Help Please!’ is closed to new replies.