Subscribe2 widget Hack

Edit: Just a note to tell you there is a more recent version of the widget hack…please do not use the file on this page unless you have a problem with the newer version

After finding Matt Robinson’s Subscribe2 Plugin incredibly useful, I ran into the same problem that several other users had when using the Subscribe2 Widget. I set about hacking the widget plugin to make it work, and have appeared to be successful. You do have to edit something in the file, but here’s the directions:

  1. Disable the original Subscribe2 Widget.
  2. Upload the Subscribe2 Widget Hack to your plugins or widget directory.
  3. Edit the define(‘S2PERM’,”) line (line 18) to the permalink that points to the page you are using for subscribers. Where ‘’ is your domain and ‘wordpress’ is your WordPress installation directory:
    • define(‘S2PERM’, ‘’)
    • define(‘S2PERM’, ‘’)
  4. Enable the Subscribe2 Widget Hack…You’re Done!

If you have any questions or comments, please leave them here.

Download the Subscribe2 Widget Hack

15 thoughts on “Subscribe2 widget Hack”

  1. Chew, glad it works for you. I will be working on it a bit in the future to try and have it be completely plug ‘n play–no having to edit the source code. Check back here for the updates.

    Though I haven’t checked for an easier solution, what I have done is put the page as a sub-page under one of my pages (I only display the ‘top-level’ pages, so subpages are not displayed). A quick search at found this link. Hope it’s helpful.? Remember that the page is necessary to use my widget, so you can’t just delete it!

  2. Sorry, but I don’t quite get it.
    How to put “Subscribe2 widget Hack” on my web page?
    I can’t see widget box “Sidebar widget”!

  3. Red,

    Hmm…have you downloaded and enabled the most recent version (1.1) of the hack? It has worked pretty slick for me when I’ve done it on my blogs. Please check that it is enabled and let me know if you can find any other problems. Thanks.


  4. OK, I’ve found something:

    After changing name of class:

    //if ( !function_exists(‘register_sidebar_widget’) || !class_exists(‘subscribe2’))
    if ( !function_exists(‘register_sidebar_widget’) || !class_exists(‘s2class’))

    widget is visible but when I click on “You may manage your subscription options from your profile” I got under Authors->Subscription:
    “Fatal error: Cannot redeclare class s2class in /usr/share/wordpress/wp-content/plugins/subscribe2/subscribe2.php on line 57”

    When I click on “Subscription” again everything is working OK.


  5. Piotr,

    Ok…a couple of things to try. First, make sure you are using the most recent version (v1.1) of the widget hack. Second, be sure you do not have the original Subscribe2 widget enabled. The hack is meant as a replacement, not an addition. If you can confirm you are using 1.1 and aren’t using the original widget, then I’ll see what else I can think of. Ideally, try running it with only the following plugins: Sidebar Widgets, Subscribe2 plugin, and the most recent version of the widget hack (located here.

  6. Hi, I am having the same problem that Piotr, I installed the plugin Subscribe2 and everything worked ok, I activated the plugin and cool, I checked my list of subscribers and fine… It is working when I am logged out I can see the Subscription form at the page I set as subscribe page. but when I log in I see a message that tell me
    You may manage your subscription options from your profile. and at profile I can click and it carries me to my admin account to my USERS- Subscriptions and give me a message telling
    Fatal error: Cannot redeclare class s2class in /home/seorepre/public_html/labriegosencillo/wp-content/plugins/subscribe2/subscribe2.php on line 57

    I downloaded the S2 Widget Hack and enable, I disabled the original widget, I mean the other plugin at my widgets.. What am I doing wrong?

    Can you help

  7. Goro,

    I’m traveling right now for the next week, I’ll try to take a look at it when I can, but I can’t promise anything right away. When you try clicking the profile link…what user level are you logged in as (Admin, Author, etc.) if you could try several different user levels and let me know if they all have the problem, or just one, that’d be great…thanks.

  8. Excellent hack. Solved a problem I was having with Subscribe2 interfering with the Event Calendar 3 widget. Good hack!!! Thanks.

  9. hi there .thanks for plugin:

    Does anybody know if tis script is compatible with WordPress 2.5.1 ?

    Thanks in advance for any help on this!


  10. Hi there I’ve followed all your instructions activated the widget and made sure the subscribe2 widget enabled and I’ve tried to sidebars and you can see my page got 3 rolls. Niether one would even show at all.

    Need your help. If i need to manually input the codes on my sidebar perhaps?

    thanks in advance

Leave a Reply

Your email address will not be published. Required fields are marked *