I actually thought this was a core feature, but I guess I was wrong.
My website is going to rely heavily on the fact that members will sign up so that they could be listed in the members directory. The goal is to create a community of professionals who can use each other’s services when the need arises instead of going to an outside company.
I have set up custom profile fields and have one field that has a list of options and check boxes. What I would love to do is use those options as user categories – essentially filtering members by them.
I know that this is partially completed using the Custom Profile Fields Filter which allows me to set specific profile fields as “clickable” tags that the user can utilize to find people who answered that field the same.
So I have the ability to link to all profiles with OPTION1 selected but what I would need help with is how to create a menu on the member directory page that lists all options for this field and clicking them would bring you to a list of all members with that option selected.
It seems like it would be easy, but looking in the codex all I could find were functions regarding groups and very little regarding profiles and profile fields.
Thanks in advance!
Hey @bojan85
Guess there is a small need for a plugin like this.
I’m trying to visualise how you would configure a plugin to meet the requirements you need and also any others like @davidveldt
Possible scenarios?
Multiple routes for registration depending on which items were selected at the “required” stage.
If this was to come “out the box” with BuddyPress, how would you expect to set this registration up within wp-admin / bp-admin?
@marcella1981,
Hey Marcella, first of all thank you for taking the time to help us, What I am trying to do is very similar as david have two different registration forms depending if their user role is an athlete or coach. I have the regular Bp default theme with the frisco theme, and latest wp and bp.
I have been trying to figure it out for a couple days but cant seem to move forward..where in the register.php do i enter the php code and jquery script? I tried a couple different places..I have matched the group fields with the $roles array I’m guessing thats the only thing im doing right so far…
Sorry for the all the questions I am a beginner at all this..Any tips or help how to move forward would be greatly appreciated!
Hi Guys,
Sorry if this is an easy one. I’ve googled for hours and hours but have had no luck.
I have a buddypress site that i want to have three different user types on. On the first registration page, there should be a few generic fields such as username, email and password. Then there should be an option at the bottom to be one of the three user types that i mentioned before.
Once registration has been completed, the user should then be directed to their profile page with the options to complete more fields, which are visible to anyone viewing the profile.
These additional profile fields should be unique, dependant on which of the three user types were chosen on the original registration page.
I have tried using the in built ‘profile fields’ options and various ‘role’ and ‘user type’ plugins but i cannot get anything to work.
Any help is hugely hugely appreciated.
Thank you guys.
The BP Profile Tv Widget allows users to embed a Ustream or Livestream video player on the sidebar of the user’s profile page using custom profile fields from their profile form.
BP Profile Tv Widget
If you could stub out the functionality of the plugin I’d be happy to consider it 
Hello,
Since I want to use BP as an extension for a real life game, I would like to add 1 or more fixed fields to a user profile, which can be edited by admin (for each user individually) but not by the users themselves.
For example, I would like to ad a field with the ranking of the user to their profile.
Does anybody know how this could be made possible?
SKParticipant
@DJPaul I know you have closed the ticket as won’t fix.
However, I’d invite you to consider this:
I think the functionality that we are after is “conditional” or “nested” fields. i.e. a list of states loading based on country selected.
The data (countries/states/cities/etc) need not necessarily be packaged with BuddyPress….maybe admins can load their own lists via csv etc…what’s important is the BEHAVIOR of the field…loading lists for a sub-field based on the value chosen for a field…
Come to think of it, conditional/nested fields could have many more applications than just addresses.
@Marcella,
Wow! What a thoughtful and detailed reply! Thank you so much for all of this.
ps. A plugin would be AWESOME – you now have 2 votes (gotta start somewhere!)
r-a-y,
Awesome solution. I think that will work. Thank you.
-Mike
hey dude, all depends on how many people would want it as a plugin and it may have already been done before.
with David having a very specific case it was ok here but would need some more work to be practical.
if you need some help getting something like this working you could describe what you need, what theme you have etc and maybe take it from there.
not to hijack this thread but Wow this was exactly what I have been looking for but being a beginner this would be hard for me to implepement….no thoughts of relasing this as a plugin marcella?
Buddypress doesn’t make it easy to allow “profile types” out of the box, you will either need to hire a developer or use a plugin, this one might get you half way their – https://buddypress.org/community/groups/buddypress-user-account-type-lite/
@djpaul also suggested to someone else with a similar-ish question, of using xprofile fields and a some custom coding. https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/interactive-profile-fields-during-registration/ (Theirs some great discussion on that thread regarding similar things that you might be interested in reading)
Hey @davidveldt this should do it if you are using the default theme. Otherwise you should integrate as you see fit.
theme/registration/register.php
You can add any groups or fields as you require. The groups and fields here are arbitrary.
` ‘player’, 4 => ‘coach’, 5 =>’parent’, 6 => ‘instructor’); ?>
$role) : ?>
<div id="” class=”role-fields”>
<label for="”>
<textarea rows="5" cols="40" name="” id=””>
<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="” />
`
Create some profile groups to cater for each role. You can find the group id within the BuddyPress admin… In the url bar or investigate your database.
You should set-up the $roles array above to match your requirements.
Within the loop you can show any fields you have created within that xprofile group. If you have a select box within that group you would add the following code as outlined in the bp-default register.php
`
<label for="”>
<select name="” id=””>
`
Finally add the following jQuery where you house any other code of similar ilk.
`
jQuery(“.role-fields”).hide();
$roles = jQuery(“#roles”);
jQuery(“#field_2”).change(function()
{
$role = jQuery(this).val().toLowerCase();
jQuery(“.role-fields”).hide();
jQuery(“#” + $role).toggle();
});
`
Here’s a pastebin for all that above. http://pastebin.com/QFdTdstz
No need for tabs or accordion this time.
Hope that helps you on the Road.
Oh I can help you with that, lemme set up a local test area.
If you create a new xprofile group, then you could move some of those profile fields to these new groups and it won’t show up on the registration page.
To create a new xprofile group, login to the WP admin dashboard and navigate to “BuddyPress > Profile Fields” page. Next, click on the “Add New Group” button located in the header text.
@Marcella,
Yeah, that’s how I pictured it as well. Trouble is, I’m not great with jQuery so that’s going to take some studying up. This project might be saved for a rainy day.
How do you NOT show all the profile fields during registration?
I have 15 profile fields.
Only 4 are required during registration.
BP Register page shows ALL the profile fields at registration and intimidates people who want to sign up.
How can I have 15 profile fields (or more) for members to define themselves AFTER they register and start using the site, but SHOW ONLY the 4 required fields at time of sign up?
Thanks.
-Mike
I would like to display next to a post, an area that shows details about the author – however I would like to get the author information from their buddypress fields & avatar.
Any tips are appreciated.
Thanks
Just an example here, running with Paul Gibbs start point.
Create xprofile fields as normal.
Each career group would also have its own xprofile group.
Player would have his / her own set of fields.
Coach would have his / her own set of fields.
Parent would have his / her own set of fields.
Instructor would have his / her own set of fields.
None of the above would be required fields. (as far as BuddyPress is concerned (unless you roll some PHP codes))
You’d have another xprofile group specifically for required fields (this would be your first group).
You would make the “type” part of the required group and set it as a select box.
You could then write your registration form mark-up matching the requirements of jQuery tabs or jQuery accordion.
The “type” would be the last item on the required fields. Once that was selected you could then show or hide the corresponding jQuery ui-tab-panel that holds those form fields.
You could then on-the-fly make those fields then required using some jQuery also but a bit hacky.
Hmmm good point. Definitely worth checking out, however I still run into figuring out how to show/hide info depending on what they select from the drop-down. Not sure how to go about this…
Sounds like a lot of info for the sign up form. What about jus putting a dropdown with the ‘person type’ in the first profile field group (which is the one that appears on the registration page by default), and then putting further type-specific fields into their own profile groups.
With a little bit of coding, you can deny visibility or access to these other profile groups depending on user type, without too much diffficulty.
Hello Everyone,
I believe this topic has been asked before, and I’ve seen it on the WordPress forum but it hasn’t been resolved, so I wanted to bring it up again.
I’d like to make my registration form a little more interactive. Meaning, different profile fields depending on which type of user you select at the beginning. On my site (an athletic site), users can indicate whether they are a player, coach, parent or instructor. If you are a player, I want questions pertaining to their position, for example, to show. If you are an instructor, you may be interested in displaying your company name or website and so on.
Does anyone have any ideas on how to accomplish this? Currently, profile fields are heavily geared towards players and it seems awkward for other users. Any ideas would be much appreciated. Thanks in advance
If I am understanding you correctly you want people to be able to search for others by category?
You could add a profile field with a drop down selection box with the categories you have in mind.
I don’t know if you can select more than one so you may have to add this field 5 times if you want them to choose up to 5 categories.
I’m fairly new at this myself but I’m sure all the profile fields are searchable.
Anyway – just a thought.