Search Results for 'profile fields'
-
AuthorSearch Results
-
September 12, 2012 at 8:21 am #141506
In 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.
September 3, 2012 at 3:05 am #140783In reply to: Custom Search Of Members
9087877
InactiveShort answer is yes!
You can use bp-profile-search plugin to search for specific profile fields. Not certain it works with the current versions of WordPress and BuddyPress though. It works great in WP 3.2.1 and BP 1.5.1
https://wordpress.org/extend/plugins/bp-profile-search/
The standard search works well too but you have to know what your searching for. BP-Profile-Search shows a visible form and a user can choose what to search for based on the criteria you set up in the plugin.
September 2, 2012 at 2:46 pm #140751In reply to: Profile fields – I dont get it!
CallMeAndy
ParticipantOk appologies they need to have data in to be visible.
Yes its working as it should then!September 2, 2012 at 2:37 pm #140750In reply to: Profile fields – I dont get it!
CallMeAndy
ParticipantNo they’re set to a mix of Logged in Users or My Friends.
But as I mentioned when i look at My Test Friend they dont show!
September 2, 2012 at 1:51 pm #140746In reply to: Profile fields – I dont get it!
modemlooper
ModeratorOn each profile field in the admin there are visibility options. Are they open for all or only user?
September 2, 2012 at 1:45 pm #140745In reply to: Profile fields – I dont get it!
CallMeAndy
ParticipantGod I hate this forum functionality – in the head of the post I have just made it says: “Deleted User said 1 minuit ago” what is that supposed to mean?
September 1, 2012 at 3:36 am #140676In reply to: Where is bp-widget base located?
modemlooper
ModeratorGo into wp-admin
users > profile fields
click edit group
change name
August 31, 2012 at 8:55 pm #140667lidakis
MemberA fast solution in profile fields for the huddle theme…
Go to wp-content/themes/huddle/functions.php and open it.
At line 45 you should see
` $new_values[] = ‘‘ . $value . ‘‘; `
change it with this
` $new_values[] = strip_tags( $value ); `
I bought this theme today, and i did not have time to beautify the code and the functions, but i will write again probably the next days.August 31, 2012 at 2:44 pm #140649In reply to: Profile Fields not showing
J J
ParticipantApologies – forgot to add that I’m using BP 1.6.1 and WP 3.4.1
August 31, 2012 at 2:27 pm #140648In reply to: Profile Fields not showing
J J
ParticipantAlso, when I export my user data, the custom profile fields are also missing. Where is the data everyone entered in my custom fields during the login process? Thank you in advance!
August 31, 2012 at 7:09 am #140604In reply to: Create profile fields visible only to administrator
scal3x
ParticipantWhile looking for a solution to the same question, I stumbled upon this: dev update. Boone B. Gorges made a “sample plugin to show how these visibility levels can be extended”: BBG’s Sample Visibility Plugin. All you have to do is create a new folder in your wp-content/plugins, and upload bbg-custom-bp-field-visibility.php & loader.php into your new folder. Then, modify bbg-custom-bp-field-visibility.php to your liking.
August 30, 2012 at 4:27 pm #140568In reply to: How do I create custom profile fields?
Andrew
MemberIn addition to my first reply, you need to have the ‘Extended Profiles’ component checked in your Buddypress settings under ‘Components’.
-
AuthorSearch Results