• Resolved joshuaiz

    (@joshuaiz)


    I need to show the subscribe/unsubscribe form on the front end as I am using a membership plugin that forbids wp-admin access to non-admins. I was using the Subscribe 2 Front End script but that no longer saves options after WP 4.0.

    I don’t mind creating a template or copying pasting bits from the plugin but I’m just not sure exactly which bits I need. Or if there is a simpler way to accomplish this.

    Thanks!

    https://wordpress.org/plugins/subscribe2/

Viewing 6 replies - 1 through 6 (of 6 total)
  • @joshuaiz,

    There is a bug in the Front End plugin, as it’s not been updated for 2 years I’m not sure if it’s been abandoned. But here is the fix! 🙂

    Look in the Front End plugin code for this line:
    $form_return = buffered_form();

    And change it to this (not the full stop / period before the equals sign):
    $form_return .= buffered_form();

    Thread Starter joshuaiz

    (@joshuaiz)

    Hi Matty,

    The code has been updated since October of last year and that is no longer in the code.

    Here may be the relevant section:

    $form_return .= "<p class=\"submit\"><input type=\"submit\" class=\"button-primary\" name=\"submit\" value=\"" . __("Update Preferences", 'subscribe2') . " &raquo;\" /></p>";
    		$form_return .= "</form>\r\n";
    		$form_return .= "<style>.s2_message{display:none;}</style>";

    In any event, saving does nothing – it retains the same subscribe settings as was already in the User Profile and nothing is changed.

    Thread Starter joshuaiz

    (@joshuaiz)

    My mistake – I had the S2FE shortcode outside of the broader “form” element on my account/user profile front end page.

    Once I put it inside, saving works as normal. This is resolved.

    @joshuaiz,

    The Theme Tailors site doesn’t show and update since 2012, are you accessing updates there?

    Thread Starter joshuaiz

    (@joshuaiz)

    I spoke too fast. When I have the S2FE bit in the Membership plugin front-end account form either you can update your password/nickname/name OR your Subscribe2 notification settings.

    With the S2FE shortcode there, trying to update your password doesn’t save.

    What I have now is just the subscribe2 shortcode linking to the users/members settings page which works.

    But to answer your question, on this page it says updated on 3 October 2013:

    http://stiofan.themetailors.com/tt/portfolio/subscribe2-front-end-plugin/

    @joshuaiz,

    Ah, I hadn’t seen that I was only looking at the changelog information.

    I only have access to version 1.3 which indicates it was released in July 2012.

    It contained a glitch in relation to the creation of the form details and missed the opening <form> tag. There may be a similar issue in your version.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show form on front end?’ is closed to new replies.