Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to Remove Avatar Upload at Registration Screen

  • @brad85

    Member

    I’d only like my users to use Gravatars…it’s just a much simpler way to handle avatars, especially because my custom theme seems to cut off the avatar upload screen a little bit.

    Either way, I think Gravatars are a better solution…

    My question is, how can I edit the following from the signup screen:

    “Profile Picture (Avatar)

    You can upload an image from your computer to use as an avatar. This avatar will appear on your profile page.

    (Upload button)”

    and replace it with something like:

    “Profile Picture (Gravatar)

    To upload your own personal Avatar, please visit gravatar.com, blah, blah, blah.

    (Remove Upload button)”

    I can’t find the file that holds that content. Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @mspecht

    Participant

    Avatars are created by the xprofile component as part of the ‘signup_extra_fields’ action, specifically bp-xprofile-signup.php.

    My guess is you could create your own action and add it to ‘signup_extra_fields’ and remove the ‘xprofile_add_signup_fields’. I say guess as I have not tried it :-).

    @burtadsit

    Participant

    To do this you’ll have to replace the current bp function xprofile_add_signup_fields() with your own. In bp-custom.php create a new function that renames the current function like so. Just copy the whole thing over and rename it.

    function my_xprofile_add_signup_fields(){

    <body of existing bp function>

    <your mods to the avatar area>

    }

    remove_action( ‘signup_extra_fields’, ‘xprofile_add_signup_fields’ );

    add_action( ‘signup_extra_fields’, ‘my_xprofile_add_signup_fields’ );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Remove Avatar Upload at Registration Screen’ is closed to new replies.
Skip to toolbar