Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove Image Upload Option from SIGNUP only.

  • Avatar of seoandsem
    seoandsem
    Participant

    @seoandsem

    I am having a major problem with cropping and image at sign-up. I am using the most recent version and would like to remove the image upload option from sign-up but still leave it as an option once logged in. Can someone give me an idea on how to do this?

    Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Put this in your CSS file:

    #avatar-form-fields {display:none;}

    This will hide the avatar field from view on the registration page.

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Look at /bp-xprofile/bp-xprofile-signup.php. I’m not writing your code for you, but from the looks of things, I think you need to remove_action() the xprofile_add_signup_fields() call, and add_action your own version of this function, but obviously removing the avatar form field.

    Best place for the code would probably be /plugins/bp-custom.php and make your add_action have a priority of 11.

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Ah, r-a-y’s got a good suggestion! That one is definately easier to do, but it depends how hard your users want to try to get around it ;)

    Avatar of seoandsem
    seoandsem
    Participant

    @seoandsem

    Thanks for the fast reply and please forgive my ignorance here, but which .css file would this be? I tried base.css and it didn’t seem to change anything. I am new to this and learning this so I am still catching on.

    Thanks for the help!

    Avatar of Vachi
    vachi
    Participant

    @vachi

    yeah the css option is the best way, but that

    #avatar-form-fields {display:none;}

    in the bp-member custom.css file

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Actually that CSS code should go in your bphome theme’s CSS file.

    Or whatever you are using for your WordPress home theme.

    Let’s say you’re using the “bphome” theme.

    The CSS snippet should go at the very end of:

    /wp-content/themes/bphome/style.css

    Avatar of seoandsem
    seoandsem
    Participant

    @seoandsem

    Worked like a charm!

    Thanks everyone, especially Vachi & r-a-y!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Remove Image Upload Option from SIGNUP only.’ is closed to new replies.