Skip to:
Content
Pages
Categories
Search
Top
Bottom

Base profile group fields hidden on registration form


  • Henry
    Member

    @henrywright-1

    How can I add fields to the Base profile group (Location and Profession) but not have them appear on the registration form?

    I’d like to have the fields appear under “base” when members want to edit their profile but do not want the fields to be visible on sign up as too many fields to complete might put people off registering.

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

  • shanebp
    Moderator

    @shanebp

    I believe you’ve found a bug.
    The Base group allows an admin to set default visibility levels.
    I was going to suggest you set each field to “logged-in users” and allow users to change their visibility.

    But those settings are not honored on the register form.

    You can submit a bug here.
    https://buddypress.trac.wordpress.org/
    Log in with the same user / pw you use for these forums.

    Also – do you also see “This field can be seen by: etc. ” under each Base field on the register page?
    And a ‘change’ link?

    There is a check in register.php, but it apparently fails by returning true for logged out users.

    `if ( bp_current_user_can( ‘bp_xprofile_change_field_visibility’ ) ) `

    Like this image taken while logged out on a vanilla install of WP 3.5.1, BP 1.7, 2012 theme

    register page bug


    Henry
    Member

    @henrywright-1

    Thanks for helping test. Bug report here:

    https://buddypress.trac.wordpress.org/ticket/4942

    This rings a bell, think it may have been discussed ( I certainly have a recollection of looking at this aspect of profile visibility and registration processes) before in some respect or another and there may already be a ticket raised.


    Henry
    Member

    @henrywright-1

    Just got clarification from Boone. Visibility doesn’t relate to the actual form input field, it relates to the field’s value. So this issue isn’t a bug.


    shanebp
    Moderator

    @shanebp

    @henrywright-1

    Do you see “This field can be seen by: etc. ” under each Base field on the register page?
    And a ‘change’ link?

    Per the image above ?


    Henry
    Member

    @henrywright-1

    Yep, i see it. According to Boone, it refers to the field value. Slightly misleading text i must admit.


    shanebp
    Moderator

    @shanebp

    Regardless of what it refers to, why would
    “This field can be seen by: etc. ” under each Base field on the register page
    and a ‘change’ link be visible on a register page to a non-logged-in visitor?

    That’s what I meant by it failing the bp_current_user_can() check.

    This has definitely come up, the text label jogs my memory.

    It may make sense that one had change link on pre-registration if the value selected was being passed along with the registration and setup of the user_meta and if the admin setting allowed users to change the field value but as I doubt that’s in fact possible and fact Boone has said it’s simply meant to impart the status of that given profile field visibility then the change select needs to be removed.

    @henrywright-1 ah you were labouring under a huge mis-understanding of what this meant, as Boone says it’s pseudo privacy for display of users details on their profile – if admin allows users to configure that given field – it’s NOT anything to do with whether the field is hidden on registration view.

    However there are still issue with how this works with reg form or it needs a good review.


    Henry
    Member

    @henrywright-1

    @hnla

    How this is interpreted depends very much on what you want to achieve. If you are a developer in the process of designing the public member profile page (displaying their profile field values) then you would think of visibility to mean the field values. However if you are in the process of designing the edit profile page (displaying the input form fields) then you would think of visibility to mean the input fields.

    As you can probably see, my ‘huge mis-understanding’ was quite easily done :}

    @henrywright-1 As you can probably see, my ‘huge mis-understanding’ was quite easily done :} yep and I meant no offence in the phrase ‘huge mis-understanding’ 🙂


    Henry
    Member

    @henrywright-1

    But I think we are missing the elephant in the room (except for @shanebp). Why would non-logged in visitors want to see the “This field can be seen by” text on the registration page?

    I think this whole area needs some further thought.


    Henry
    Member

    @henrywright-1

    @hnla none was taken! :}


    shanebp
    Moderator

    @shanebp

    @henrywright-1

    Bingo re elephant.

    While it’s easy to change by editing the register template, the why-is-it-there question seems worthy of a trac ticket.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Base profile group fields hidden on registration form’ is closed to new replies.
Skip to toolbar