Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/10/2021 04:15:05 PM (4 years ago)
Author:
dcavins
Message:

Membership Requests: Change labels on register page.

We are using the standard "register" form to collect
membership requests, so we need to change the labels
in many cases to avoid confusion. Also ensure that users
can access the registration page when membership
requests are enabled.

See #8582.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/register.php

    r12887 r13170  
    352352             * @since 1.1.0
    353353             */
    354             do_action( 'bp_before_registration_submit_buttons' ); ?>
     354            do_action( 'bp_before_registration_submit_buttons' );
     355
     356            if ( bp_get_membership_requests_required() ) {
     357                $button_text = __( 'Submit Request', 'buddypress' );
     358            } else {
     359                $button_text = __( 'Complete Sign Up', 'buddypress' );
     360            }
     361            ?>
    355362
    356363            <div class="submit">
    357                 <input type="submit" name="signup_submit" id="signup_submit" value="<?php esc_attr_e( 'Complete Sign Up', 'buddypress' ); ?>" />
     364                <input type="submit" name="signup_submit" id="signup_submit" value="<?php echo esc_attr( $button_text ); ?>" />
    358365            </div>
    359366
     
    391398
    392399            <div id="template-notices" role="alert" aria-atomic="true">
    393                 <?php if ( bp_registration_needs_activation() ) : ?>
     400                <?php if ( bp_get_membership_requests_required() ) : ?>
     401                    <p><?php _e( 'You have successfully submitted your membership request! Our site moderators will review your submission and send you an activation email if your request is approved.', 'buddypress' ); ?></p>
     402                <?php elseif ( bp_registration_needs_activation() ) : ?>
    394403                    <p><?php _e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ); ?></p>
    395404                <?php else : ?>
Note: See TracChangeset for help on using the changeset viewer.