Search Results for 'profile fields'
-
AuthorSearch Results
-
August 16, 2012 at 8:53 pm #139634
shanebp
ModeratorWithin the context of a wp post
$user_id would be get_the_author_id() ?`
$authorBio = xprofile_get_field_data( ‘Bio’, $user_id );echo ‘Author’s bio: ‘. $authorBio;
`August 16, 2012 at 7:37 pm #139629matthillcomer
MemberCan anyone help me with this? It seems like it would be pretty easy to do… call extended profile field data from BuddyPress for a post author to display next to their author name. Anyone have some tips?
August 16, 2012 at 3:43 am #139574matthillcomer
MemberI have single WP installation running BuddyPress as a plugin. No multisite.
August 16, 2012 at 3:22 am #139573@mercime
Participant@matthillcomer are you referring to posts by multiple authors in single WP or posts by members in subsites of a Multisite installation?
August 15, 2012 at 7:13 pm #139539adminRimma
ParticipantTo clarify my post above, I do not have buddypress showing in the toolbar on the left under settings on the subdomain and when i network activate it, do not see profile fields…
i have declared the root blog as advised…
August 15, 2012 at 6:35 pm #139536In reply to: Replacing Activity Status with xProfiles field data
David Cavins
KeymasterTo display extended profile fields in the members directory, it’s easiest to add a function to your theme’s
functions.phpfile. My theme is based on the bp-default theme, so in my file/wp-content/themes/theme-name/members/members-loop.php, there’s this action at the end of each member’s entry that we can hook into:
Open up your functions.php file and add something like this:
function add_member_custom_extended_profile() { if ( $xprofile_tele = bp_get_member_profile_data( 'field=Telephone' ) ) { echo 'Telephone:' . $xprofile_tele . ' '; } } add_action('bp_directory_members_item', 'add_member_custom_extended_profile');You can get the exact field name to use by looking at a member’s profile page and copying the text in the left-most column.
I originally got this idea from here: http://premium.wpmudev.org/forums/topic/bp-add-profile-field-data-to-members-directory-with-links
August 15, 2012 at 1:29 pm #139517In reply to: How to Hook into the Primary Profile Field [Closed]
frank tredici
MemberThanks @shawn38.
I am running WP 3.4.1 and BP 1.5.6
In my installation there is no `Profile Fields` in the Dashboard > Users navigation path.
The manner in which I get to `Profile Fields` is Dashboard > Buddy Press > Profile Fields
The page ends up being “Extended Profile Fields” and under the “Base (Primary)” tab and I click the Edit button for Name (Primary) (Required) there is no Field Description box like there is on all the other profile fields.
Do you think I have a faulty or incomplete install going on here?
Appreciate your help…
August 15, 2012 at 12:41 pm #139515In reply to: How to Hook into the Primary Profile Field [Closed]
9087877
InactiveThat is strange.When you went to Dasboard/Users/Profile Fields and under Base(Primary) and clicked Add New Field it should have took to to where you can add a Field Title, and Field Description. Did you scroll to the bottom and click “Save?”
August 15, 2012 at 2:58 am #139484In reply to: Why is profile fields displaying info as links?
modemlooper
ModeratorInstall my plugin to get option to remove links. https://wordpress.org/extend/plugins/buddypress-extended-settings/
August 15, 2012 at 2:32 am #139483In reply to: Why is profile fields displaying info as links?
August 13, 2012 at 7:33 am #139201Austin Nichols
MemberThanks, but that only works on the member’s profile page.
August 13, 2012 at 5:56 am #139234c0rp53
Memberhaven’t actually tried it myself but it would be something like:
`
Country:`
and I’d put that just after the latest updates endif in the members-loop.php
I’m not a great coder, just learning with buddypress. Let me know if it works
PS: by doing it that way, you can add some style in style.css
August 8, 2012 at 2:30 pm #138828In reply to: Global Setting for Extended Profile Visibility?
lwaltzer
ParticipantThanks, Paul– I hadn’t clicked into edit existing fields so didn’t see the toggles there.
August 7, 2012 at 6:56 pm #138675In reply to: Global Setting for Extended Profile Visibility?
Paul Wong-Gibbs
KeymasterIn what way? There is an option in the profile fields admin screen to allow an admin to set a specific profile visibility for a specific field.
August 7, 2012 at 4:42 pm #138654In reply to: Strange field in the registration form?!
bg
MemberThanks for your prompt response! I haven’t added any field that says, “Write down whats your favorite hobby is”, and I have also looked into “Profile Fields” under the “Users” menu, but there’s also nothing there?! So, I don’t get it where’s this field coming from?
August 7, 2012 at 4:02 pm #138646In reply to: Strange field in the registration form?!
Paul Wong-Gibbs
KeymasterIt’ll be a profile field set up in wp-admin. Look for “Profile Fields” under the “Users” menu, and delete it.
August 7, 2012 at 9:12 am #1386069087877
Inactive@jloc14 Install and activate @modemlooper ‘s BuddyPress Extended Settings plugin from here https://buddypress.org/community/groups/buddypress-extended-settings/
In the dashboard go to BuddyPress/Extended Settings put a check beside “Profile Field Links Disable auto linking of user profile fields” and at the bottom click “Save Changes.” This will remove the auto linking of those profile fields. Alternatively you can create a file named bp-custom.php and place it in the plugins directory and copy and paste in the below code:
`<?php
// hacks and mods will go here
function remove_xprofile_links() {
remove_filter( ‘bp_get_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 9, 2 );
}
add_action( ‘bp_init’, ‘remove_xprofile_links’ );
?>`
Save the file and this will accomplish the same goal.August 6, 2012 at 7:44 am #138457In reply to: BuddyPress 1.6 is now available
mairaj
ParticipantJust updated! the new privacy option added to the profile fields are creating confusion in my setup. Is there a way I can disable it?
I requested urgent help on this please.
Thank you very much
August 5, 2012 at 4:00 pm #138429In reply to: How to validate custom profile fields.
Roger Coathup
ParticipantIf you want validation as they type / enter — hook some jQuery onto your form. [That’s standard jQuery form validation, for which you’ll be able to Google for plenty of examples]
In your jQuery, you can call out (POST) to your PHP validation function. Look up AJAX in WordPress for details on how to do this – in particular you are interested in using admin-ajax.php and registering your function as an action. You then specify that action in your jQuery AJAX call.
You might also want to look at some of the WordPress data validation functions.
August 5, 2012 at 11:40 am #138421In reply to: How to validate custom profile fields.
enderpal444
Participant@boonebgorges @djpaul Can you toss a dog a bone on this? I’d really like to know how to do it.
August 2, 2012 at 7:33 pm #138334In reply to: Feature Request: XProfile Programmable Custom Fields
Tammie Lister
ModeratorIt’s not a perfect solution but have you look at gravity forms for registation forms and BuddyPress? http://www.gravityforms.com/
August 1, 2012 at 11:25 pm #138288In reply to: Interactive Profile Fields During Registration
jaimebib
ParticipantAnybody got this to work??
July 31, 2012 at 7:52 pm #138222mariazapata
MemberHello Roger,
Yes I am sure that i set up that correctly $curauth->ID, is just a number….
:S…
Thanks!July 31, 2012 at 8:48 am #138201Roger Coathup
Participantok… as I guess you know, modifying the core code isn’t a good solution!
Am not sure why your original code isn’t working, as the later $r = wp_parse_args( $args, $defaults ); call should overwrite user_id with the one you supplied anyway.
Did you check that $curauth->ID was set correctly?
July 31, 2012 at 8:18 am #138200mariazapata
MemberHi commented this line out, on the bp_members_template.php
//$user_id = 0;
and it works… I didnt want to touch this… but i cant find any other way
-
AuthorSearch Results