[buddypress-trac] [BuddyPress Trac] #5192: User roles with differents profile fields

buddypress-trac noreply at wordpress.org
Fri Jul 3 14:49:16 UTC 2015


#5192: User roles with differents profile fields
----------------------------------+------------------
 Reporter:  _DorsVenabili         |       Owner:
     Type:  enhancement           |      Status:  new
 Priority:  normal                |   Milestone:  2.4
Component:  Component - XProfile  |     Version:
 Severity:  normal                |  Resolution:
 Keywords:                        |
----------------------------------+------------------

Comment (by imath):

 @Offereins just tested your plugin, really interesting work, thank you.


 About registrations:

 1) i think we need to adapt core, your plugin is filtering
 `bp_xprofile_get_hidden_fields_for_user` but when no user id is set, this
 filter is never fired. So we should adapt
 `bp_xprofile_get_hidden_fields_for_user()`, else all "restricted to a
 member type" fields will always be displayed into the signup form.

 see the patch attached to this ticket
 (5192.bp_xprofile_get_hidden_fields_for_user.patch)

 But after applying this patch, you'll need to edit your plugin, else when
 on the xProfile Administration screen "the restricted to a member type"
 fields won't display.

 see https://gist.github.com/imath/2360ad6c2b48a5bde160

 2) Back on the ticket's description :
 > and to have different registration forms.

 i think this can be done pretty easily and what i'm thinking of would not
 require css/js manipulation.
 Let's imagine this: `site.url/register/member_type_slug`

 See https://gist.github.com/imath/60c736673cc3edc804b9
 (FYI `^^` is containing
 https://gist.github.com/imath/2360ad6c2b48a5bde160)

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5192#comment:24>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list