WordPress.org

Forums

Subscribe2
[resolved] Subscribe2 confirmation link page and menus filled with Subscripton (6 posts)

  1. eglescout
    Member
    Posted 4 years ago #

    I am using WP 3.x along with the new menu system in my templates. When I clicked on the link in the confirmation email, the confirmation page showed up with Subscription Confirmed (or something like that) in all of my menu items instead of Home, Contact, etc.

    Here's the solution using version 6.1 of Subscribe2:

    1. Edit subscribe2/subscribe2.php by going to Plugins in the Admin section of your site and clicking the Edit link under Subscribe2.
    2. Find line 2620 (the last line from below - it's near the end of the file):
      if ( isset($_GET['s2']) ) {
      			// someone is confirming a request
      			if ( defined('DOING_S2_CONFIRM') && DOING_S2_CONFIRM ) { return; }
      			define( 'DOING_S2_CONFIRM', true );
      			add_filter('query_string', array(&$this, 'query_filter'));
      			add_filter('the_title', array(&$this, 'title_filter'));
    3. Change 'the_title' to 'single_post_title' or copy and paste the full line below.
      add_filter('single_post_title', array(&$this, 'title_filter'));
    4. Click the Update file button.
    5. Test it out to make sure it works!

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

  2. mattyrob
    Member
    Posted 4 years ago #

    @eglescout,

    Interesting, I'll take a look at that fix, normally though this glitch is to do with the way a Theme collects Page and Posts titles and perhaps not following the WordPress recommended methods.

  3. uogecko
    Member
    Posted 4 years ago #

    eglescout, tremendously helpful - I wish I'd found your post an hour and half ago!

    Thank you

  4. eglescout
    Member
    Posted 4 years ago #

    Glad it helped. Some of us are probably using/updating old themes - I've dealt with several built on Sandbox - and I haven't had time to rework the theme code to get it up to WP 3.x standards.

    @MattyRob - I'm sure you're right. I just couldn't find what to change in the time I had to fix it. Sometimes the hack like the one I offered helps me keep a little more hair on the top of my head. ;-)

  5. Sith Lord Goz
    Member
    Posted 4 years ago #

    Great fix eglescout - looks like that the_title() filter was indeed overriding the native nav menu title() calls. Hopefully it'll get rolled into the next version of Subscribe2.

    I tried to comment on the version post on the plugin site - but comments are disabled :(

  6. Sith Lord Goz
    Member
    Posted 4 years ago #

    wow LAME - v6.3 released and this simple bugfix was NOT included.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Subscribe2
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic