Search Results for 'profile fields'
-
AuthorSearch Results
-
September 16, 2012 at 6:57 pm #141815
In reply to: BP Extended Profiles Fields Question
Hugo Ashmore
ParticipantIf you look at the xprofile creation page in dashboard you’ll see it says “Fields in the “Base” group will appear on the signup page.” thus if you create a new group and fields those will only appear on the users profile edit screens.
If you want to auto populate fields from other WP tables then you’ll need to write a script to do this.
September 15, 2012 at 8:23 am #141744In reply to: how to add a link only viewable to user’s profile?
artxx
Member@mercime this is what i wanted to do here’s and example http://josephscott.org/code/javascript/jeip-demo/ with the custom fields a quick edit solution on the fly but i dont seem to find an answer how i can edit it like this and saving it without the user going the the custom fields group and doing it manually, i want a quick/fast solution for the users to edit fields on the fly. i hope you can help me out thank you.
September 14, 2012 at 10:31 pm #1417314ella
ParticipantI understand , he wants to add this data also below every member in every group’s directory , it means if Group A has 20 members he wants to show their profile fields in that Group A member’s directory, at this moment code shows members profile fields data only in members directory (general)
September 14, 2012 at 3:02 am #1416674ella
ParticipantNice snippet @ericreynolds007 , it works very well ! Did you managed to get to find a code for Group members directory ? Would be nice to show fields IF are present , otherwise hide
September 13, 2012 at 11:54 pm #141653modemlooper
ModeratorYeah, a developer could create a plugin that had different info fields for different users. It’s just not a core feature to have profile fields for different users. The main reason for this is BuddyPress doesn’t have different types of users. Everyone is a subscriber. The admins and mods just pertain to groups.
September 13, 2012 at 11:42 pm #141650modemlooper
ModeratorI should elaborate, you could do conditional profile page design but you can not have conditional profile fields
September 13, 2012 at 12:34 pm #141576In reply to: Adding extra default profile fields in registerform
Guido
MemberHi Paul (and everyone else),
I noticed a file and code about default WP profile:
In file ‘profile’ there’s a line called ‘Display WordPress profile (fallback)’ and in the same folder (Profile) there’s a file called ‘profile-wp’ with all default WP profile fields in it.
I’m not a programmer, but is it possible to adjust those files so default WP profile fields are displayed in members profile? What do I have to adjust?
Guido
September 12, 2012 at 11:26 pm #141552In reply to: BuddyPress Conditional Profile Fields available now?
4ella
ParticipantGravity forms has this very useful feature and I can’t imagine this plugin without conditional fields, I am using it a lot in every single form, try to take a look how this plugin works, maybe you will find some solution how to implement it.
September 12, 2012 at 6:30 pm #141533In reply to: BuddyPress Conditional Profile Fields available now?
redrocktoday
MemberI am not saying my project will have countries, states, cities etc. profile fields. I am only using the states dropdown list as an example. But definitely a few layers of nested profile fields are needed for my site. For whoever chooses to use multiple layers profile fields in their design for user registration, I am sure they already have the values(might be just 1 or 2 or 5) for each layer in their mind, it is certainly not unlimited; on the contrary, it may most likely have very limited number of option values in each field for users to choose from. And that is why I say it is a basic requirement in the perspective of admins of a BuddyPress site. It is the capability of having this nested/conditional profile fields provided in the 1st place that matters, not how many values that are going to the fields that matters.
September 12, 2012 at 2:22 pm #141519In reply to: BuddyPress Conditional Profile Fields available now?
Roger Coathup
ParticipantThis is far from ‘BASIC’, and also impractical from an interface perspective – for your specific requirement: 50 States each having say 50 cities, equates to 50 x 50 = 2,500 drop down controls you’d have to configure just on your 3rd layer.
It also doesn’t take into account handling this in a generic way, and other fields (apart from drop downs) that might equally well want conditional behaviour attached to them (checkboxes, value entered in number field, etc.).
Specialist form generation software might want to try and tackle this, but it’s not suitable for the base set of profile field functions offered by BuddyPress.
—
The best way to implement this for your Countries, States, Cities, etc. is to add the fields programmatically — if you search on Github, you’ll find a number of PHP arrays that have already been produced / maintained listing states and their corresponding cities.
You can iterate over these arrays in your code (a plugin, or functions.php, etc) and generate the fields programmatically using the xprofile functions provided in the BuddyPress API.
September 12, 2012 at 1:41 pm #141517In reply to: BuddyPress Conditional Profile Fields available now?
redrocktoday
Member@hugo: I think providing the choices with nested/conditional custom fields and the ability to be bond with automatic group assignments during user registration should be at the heart of making BuddyPress useful in a BASIC way. These are not some fancy stuff that we should expect come from the Plugins. Plus, if we depend on Plugins for all these patches to the foundamental parts of our BuddyPress powered sites, and if the Plugins not updated on time with the new release of BuddyPress Core, then we are completely doomed!
Please, everyone, in the core dev team, reconsider this request. Thank you!
In terms of the automatic group member depending on certain profile fields, here is another user’s request … https://buddypress.org/community/groups/miscellaneous/forum/topic/automatic-group-member-depending-on-fields-in-profile/
September 12, 2012 at 8:21 am #141506In reply to: Create custom field in ’base’ group manually
drrxa
ParticipantI have a working code now, the following code is able to insert a select box profile field to the ‘base’ group with any long list of options that might be hard to insert manually through the user interface. this specific example will insert a profile field with the title of “Country” that contains all countries as options. Use this code in your `functions.php` or `bp-custom.php` file and you will notice a new profile field with the title of “Country” the next time you visit the Base group in Profile Fields admin area. You can then update and change the options to suit your needs and after that click “Save” button to register this field.
Be aware that the following code will not add a new “Country” profile field as long as a profile field with the title of “Country” already exists, meaning that if you change the title to “List of Countries” for example, it will add a new profile field with the title of “Country” to your profile field, so I think it is better to use this code only once and whenever you need to insert a long listed profile field, and then remove the code from `functions.php` or `bp-custom.php` and keep on other place for future use.
`
add_action(‘bp_init’, ‘add_custom_country_list’); // That might not be the perfect hook to use
function add_custom_country_list() {
if (xprofile_get_field_id_from_name(‘Country’)) return;
$country_list_args = array(
‘field_group_id’ => 1,
‘type’ => ‘selectbox’,
‘name’ => ‘Country’,
‘description’ => ‘Please select your country’,
‘is_required’ => true,
‘can_delete’ => false,
‘order_by’ => ‘default’
);
$country_list_id = xprofile_insert_field($country_list_args);
if ($country_list_id) {
$countries = array(‘USA’,’Germany’,’England’); // Google for “country list php” and replace this one
foreach ($countries as $i => $country) {
xprofile_insert_field(array(
‘field_group_id’ => 1,
‘parent_id’ => $country_list_id,
‘type’ => ‘selectbox’, // it is ‘selectbox’ not ‘option’
‘name’ => $country,
‘option_order’ => $i+1
));
}
}
}
`September 11, 2012 at 9:49 pm #141479In reply to: BuddyPress Conditional Profile Fields available now?
Quint
ParticipantThere is a workaround which should work but I can’t confirm until I figure out the last step. Anyway, what you could do is use FormidablePro (probably the most flexible and affordable form creation plugin in the wild) to get your data and then dump (form submittal) them into the appropriately mapped XProfile fields. I am told this is possible. …But I don’t know how to do that last step.
September 11, 2012 at 8:09 pm #141474In reply to: BuddyPress Conditional Profile Fields available now?
Paul Wong-Gibbs
KeymasterNot aware of any plugins that do this. It’s been mentioned before, but I haven’t seen anything good recently.
September 11, 2012 at 8:05 pm #141472In reply to: BuddyPress Conditional Profile Fields available now?
Hugo Ashmore
ParticipantIt’s not exactly the easiest thing to implement the core devs have their work cut out with present dev requirements; this would be something that one of the community would need to run up and submit as a patch for perusal.
September 11, 2012 at 7:53 pm #141469In reply to: BuddyPress Conditional Profile Fields available now?
redrocktoday
MemberThese nested/conditional profile fields will have many applications for creating larger websites, not just location related sites… If you can make it to the Core, many would benefit.
It would be great if next release of BuddyPress could come with this nested profile fields, and in addition, a functionality that allow admins to create initial groups based on certain user profile fields -which seems very nature. And as a social networking platform, these functionalities should come from the core of software, not from Plugins – as many group related plugins will be depending on these functionalities to make themselves sophisticated enough to make foundamental user experience more fullfilled.
September 11, 2012 at 1:05 pm #141438creamundo
Participanthave the same problem!!!!!!!!!!!!!!! help
September 11, 2012 at 6:24 am #141420In reply to: Adding extra default profile fields in registerform
Paul Wong-Gibbs
KeymasterAdding the template fields is one thing, but you’d need to write a bunch of glue logic to handle saving and fetching the input to/from the WordPress profile.
September 10, 2012 at 10:18 pm #141403In reply to: profile page
Tammie Lister
ModeratorYou shouldn’t need a plugin to have emails sent or to have profile fields. Are you using the BuddyPress default theme? I ask because something could be wrong there – not sure there is though.
Now, when I say you don’t need plugins to send emails or have profile fields it all depends on ‘what’ and ‘how much’ you want.
https://codex.buddypress.org/getting-started/configure-buddypress-components/#users-profile-fields should be a starting point for you on profile fields though.
September 9, 2012 at 4:32 pm #141321In reply to: Profile fields
Roger Coathup
ParticipantIf you are a PHP developer, you can rework the profile fields (in edit.php ) to use the wp_editor() function.
You’ll also need to take a look at the filters that strip tags from profile fields and set appropriately to your needs.
The question was asked recently on this forum — so, have a Google.
September 9, 2012 at 4:14 pm #141319In reply to: Profile fields
Tammie Lister
ModeratorAs a starting point: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/html-on-profile-page-can-it-be-done/ may be useful.
September 8, 2012 at 11:53 am #141280In reply to: Theme compatibility?
Sergio De Falco
ParticipantPaul, anyway it’s pretty simple to use both methods. We know that default wp_users support first_name, last_name, nickname and description (bio). Maybe you could make possibile to modify each of that from buddypress (i made it in my theme) and make a base group with these fields. Then if administrators want to add more fields and groups you could populate xprofile table. In this way you could have a more deep integration into WordPress.
September 8, 2012 at 10:12 am #141269In reply to: Theme compatibility?
Paul Wong-Gibbs
KeymasterMercime’s pretty much right. There might be ways to use a custom post type with user meta, but revising the structure of the profile fields database tables isn’t a current priority.
September 8, 2012 at 3:33 am #141254In reply to: Theme compatibility?
@mercime
Participant== why buddypress doesn’t use user_metadata and have a proprietary xprofile table. ==
I believe one reason would be that WP doesn’t have an API for BuddyPress’ more sophisticated profile fields/groups, or something of that nature. At least that’s what I recall a core dev answering the last time that question was asked
September 6, 2012 at 7:21 pm #141159Ben Hansen
Participantcan anyone actually verify this plugin boone put up works? it appears to have the option but when i tested it the policy is not enforced and even logged out users can see the private fields on our site at least.
-
AuthorSearch Results