how to remove upload avatar option after user registration

Hello,

is there a way to remove the "upload avatar option" when the user registers? Please help me remove this.
Its annoying that it asks the user to upload his/her avatar when his/her account is not yet activated and its still sending an activation link to his/her email.

pls see attached file. thanks

  • Richie_KS
    • HummingBird

    try open the /registration/register.php in line 231 you'll see

    <?php if ( bp_is_active( 'xprofile' ) && !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?>

    to

    <?php if ( !bp_is_active( 'xprofile' ) && (int)bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?>

    basically a mirror condition of the original one...not sure if it work tho...you can try it out.

  • anthzila
    • New Recruit

    thank you it works so far... another question... How can I put a popup that tells the user "to activate first her account by opening the email sent"... Sometimes the user could not read the default message and they actually login automatically without activating.

    thanks

  • Richie_KS
    • HummingBird

    you can edit the same area in register.php line 225
    adding some backgorund color to the block and warning icon should be sufficient
    something like this..adding to css

    <?php if ( bp_registration_needs_activation() ) : ?>
    <p id="warning"><?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>

    p#warning {
            padding: 3% !important;
    	width: 92% !important;
    	float: left;
    	background: #FCEC8F;
    	border: 1px solid #F9D926;
    }

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.