Search Results for 'profile fields'
-
AuthorSearch Results
-
February 3, 2012 at 2:39 am #129142
In reply to: Filterable member directory via profile fields.
@ChrisClayton
Participant@Lindsayannb – Essentially what you would want to do is utilise the built in “search_terms” parameter (which your already using for the profile fields links) and modifying the searchterm based on what is selected via the dropdown menu – https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-members-loop/
Haven’t looked indepth into this specific loop yet, (and i’m not sure if it will work on a directory page) but their is a profile field loop which might help… (https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-profile-data-loop-bp_has_profile/)
February 3, 2012 at 12:47 am #129128In reply to: Interactive Profile Fields During Registration
Marcella
ParticipantThinking something like this.
Still struggling to see how it would work for more than the 1st stage / 1st option directing to the xProfile Group associated with that.
Although that might be my lack of understanding the possible direction a user may take when building out their registration fields.
This interface might confuse users, Google + / Groups / BuddyPress / ahhh head aches.
Will probably opt in for a simple drop down on either side.
February 2, 2012 at 11:05 pm #129125In reply to: Interactive Profile Fields During Registration
abysshorror
Member@marcella1981 +1 plugin
February 2, 2012 at 10:26 pm #129119In reply to: Interactive Profile Fields During Registration
bojan85
Participant@marcella1981
I think a plugin would be a great addition to bp..I would believe more users would like to be able to create different registration profile fields for different users (dating sites, networking sites, job sites etc.,..that’s a good question..maybe something simple in the bp admin like the buddypress user account type plugin…or maybe is it possible to create the plugin as add on to the main Extended Profile Fields menu?I wish I could be more of a help..
Cheers, BojanFebruary 2, 2012 at 9:54 pm #129118In reply to: Interactive Profile Fields During Registration
Marcella
ParticipantHey @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?
February 2, 2012 at 8:06 pm #129112In reply to: Interactive Profile Fields During Registration
bojan85
ParticipantHey 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!
February 2, 2012 at 2:49 am #129051In reply to: Multiple Account Types
@ChrisClayton
Participanttheirs some really helpful code in here which sounds exactly like what your after – https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/interactive-profile-fields-during-registration/
January 30, 2012 at 12:09 am #128813In reply to: Interactive Profile Fields During Registration
Marcella
ParticipantIf you could stub out the functionality of the plugin I’d be happy to consider it
January 29, 2012 at 4:34 pm #128795In reply to: Add country list in extended profile
SK
Participant@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.
January 28, 2012 at 11:35 pm #128769In reply to: Interactive Profile Fields During Registration
David Veldt
ParticipantWow! 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!)
January 28, 2012 at 3:55 pm #128756In reply to: Register Page – Limit Number of Profile Fields Shown
MikeTime360
Memberr-a-y,
Awesome solution. I think that will work. Thank you.
-Mike
January 28, 2012 at 8:30 am #128748In reply to: Interactive Profile Fields During Registration
Marcella
Participanthey 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.
January 27, 2012 at 10:13 pm #128741In reply to: Interactive Profile Fields During Registration
bojan85
Participantnot 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?
January 27, 2012 at 7:03 pm #128731In reply to: model – photographer community help anyone ?
@ChrisClayton
ParticipantBuddypress 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)
January 27, 2012 at 9:37 am #128706In reply to: Interactive Profile Fields During Registration
Marcella
ParticipantHey @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.
January 27, 2012 at 7:43 am #128698In reply to: Interactive Profile Fields During Registration
Marcella
ParticipantOh I can help you with that, lemme set up a local test area.
January 27, 2012 at 1:21 am #128674In reply to: Register Page – Limit Number of Profile Fields Shown
r-a-y
KeymasterIf 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.
January 27, 2012 at 1:11 am #128670In reply to: Interactive Profile Fields During Registration
David Veldt
ParticipantYeah, 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.
January 26, 2012 at 2:27 pm #128632In reply to: Interactive Profile Fields During Registration
Marcella
ParticipantJust 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.
January 26, 2012 at 11:59 am #128623In reply to: Interactive Profile Fields During Registration
David Veldt
ParticipantHmmm 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…
January 26, 2012 at 7:28 am #128616In reply to: Interactive Profile Fields During Registration
Paul Wong-Gibbs
KeymasterSounds 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.
January 24, 2012 at 1:27 am #128478In reply to: Linking categories to member profiles.
thebusysingleparent
MemberIf 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.
January 21, 2012 at 4:54 pm #128373In reply to: missing Profile Details fields
@mercime
ParticipantYou lost me at “but new members registering in these fields should never be visible only to the four basic fields “
January 19, 2012 at 8:57 pm #128281In reply to: SOLVED: Limit Members Loop by Profile Fields
landwire
ParticipantHi all,
I modified the code from DuableLLC a bit to check for roles. I post it in case someone is looking for a solution like that:
This function goes in the functions.php
`// to exclude only defined roles in the Buddypress Members LOOP
function exclude_by_role($exclude_roles) {
$memberArray = array();
if (bp_has_members()) :
while (bp_members()) : bp_the_member();
$user = new WP_User( bp_get_member_user_id() );
$user_role = $user->roles[0];
foreach ($exclude_roles as $exclude_role) {
if ($exclude_role==$user_role) {
array_push($memberArray, $user->ID);
break;
}
}
endwhile;
endif;$theExcludeString=implode(“,”,$memberArray);
return $theExcludeString;
}`Then in the template members-loop.php you use:
`$excluded_roles = array (‘administrator’, ‘author’, ‘subscriber’); // this can be any roles you have set upif (bp_has_members( ‘exclude=’ . exclude_by_role($excluded_roles) . ‘&’ . bp_ajax_querystring( ‘members’ ) ) ) : ?>
`January 17, 2012 at 11:49 am #128154Brian Bowman
ParticipantSeems that maybe they are only showing the BASE fields…and a user must return to EDIT their profile in order to complete the process. This keeps registration short, but there should be a way to INFORM new users that their not finished. I normally use WelcomePack plugin for this, but I’m having problems with it presently as well.
-
AuthorSearch Results