Support » Plugin: Subscribe2 - Form, Email Subscribers & Newsletters » Subscribe2 confirmation link page and menus filled with Subscripton

  • Resolved eglescout

    (@eglescout)


    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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • @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.

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

    Thank you

    Thread Starter eglescout

    (@eglescout)

    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. 😉

    Twig

    (@palpatine1976)

    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 🙁

    Twig

    (@palpatine1976)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Subscribe2 confirmation link page and menus filled with Subscripton’ is closed to new replies.