BuddyDev

Search

Show Signup Form on page

  • Participant
    Level: Initiated
    Posts: 4
    Giovanni on #5155

    (other than the registration page itself)

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2934
    Ravi on #5161

    Hi Giovanni,

    Welcome to the BuddyDev Forum. Please refer the following url. It will help you.

    https://buddydev.com/buddypress/show-buddypress-user-registration-form-everywhere-buddypress-site/

    Thank You
    Ravi

  • Participant
    Level: Initiated
    Posts: 4
    Giovanni on #5327

    That solution doesn’t work with s2Member Plugin, when one adds extra “Custom Fields”.

    The base registration form shows up, the extra s2Member “Custom Fields” does not.

    Any hint?

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #5338

    Hi Giovanni,
    I am sorry but that tutorial only shows BuddyPress registration fields. Are the s2 members fieds added via BuddyPress Profile Field?

    Please note that at the moment only fields from the First profile field Group are displayed on the registration page/form.

  • Participant
    Level: Initiated
    Posts: 4
    Giovanni on #5391

    s2Members adds an additional div.register-section after the base signup fields using this code:

    https://www.s2member.com/codex/stable/source/s2member/includes/classes/custom-reg-fields-4bp.inc.php/

    When calling get_template_part() that s2Member Plugin code is not executed.
    (as any other signup form hooked code from other Plugins).

    Is there a better solution?

    Thank you.

  • Participant
    Level: Initiated
    Posts: 4
    Giovanni on #5392

    In that file, s2Members checks if we are on the BP registration page using bp_is_register_page().

    If one removes that call, s2Member custom fields will show.

    Since I’ve added the registration form on the Home Page, I’ve modified bp_is_register_page() this way:

    function bp_is_register_page() {
    return is_home() || (bool) bp_is_current_component( ‘register’ );
    }

    It seems it’s working everything now.
    I know it’s not a good idea to modify core files.
    But this is the simplest and fastest way to use two registration pages on BP without breaking compatibility with other Plugins.

You must be logged in to reply to this topic.

This topic is: not resolved