Search Results for 'profile fields'
-
AuthorSearch Results
-
July 6, 2012 at 8:16 am #136867
In reply to: Really need help on privacy. Complete noob here
valuser
ParticipantSee and test https://buddypress.org/community/groups/miscellaneous/forum/topic/buddypress-1-6-beta-2-is-ready-to-test/
SOME privacy issues have been addressed. But not to the extent of being able to (out of the box) hiding members profile, groups, pages from visitors.
Just, now, visibility of individual profile fields can be allowed to be toggled/or fixed by admin between
> Anyone, Logged In Users or My FriendsJuly 4, 2012 at 7:49 am #136770In reply to: SOLVED: Limit Members Loop by Profile Fields
valuser
Participantbear with the ignorance !
`` What do I replace this with ?
July 3, 2012 at 1:11 am #136721In reply to: Hide/Delete Base Profile Username
ed
ParticipantSo I found the css solution:
I just added the following into my themes css:
.display-name h4 { display: none !important; }
.display-name table { display: none !important; }This will not show the base profile fields in the public view but will still allow the member to change username.
Hope this helps.
July 2, 2012 at 4:21 pm #136701In reply to: Hide/Delete Base Profile Username
valuser
ParticipantMany thanks for the tip. I presume adding the line to the functions.php of a child theme would have the same effect.
Crazily enough the plugin still works perfectly. Haven’t tried the linking to social networking bit yet. But otherwise all good. Separate words can be links with square brackets, and you can exclude fields altogether.
July 1, 2012 at 7:16 pm #136672Tammie Lister
ModeratorI’d suggest you look at wp_mail as the starting point https://codex.wordpress.org/Function_Reference/wp_mail. You can hook into the profile fields (with some custom coding) and send using that I think.
I would say looking at a plugin would be a good point to see code if not a direct solution for you.
July 1, 2012 at 12:07 pm #136657Kookidooki
ParticipantThank you Roger et al.
You / we can close this topic.
Best regards,
Kookidooki.
July 1, 2012 at 11:58 am #136655Roger Coathup
ParticipantYes, you need to echo the value returned by bp_get_member_profile_data(), or just use bp_profile_field_data() as you’ve done
July 1, 2012 at 11:54 am #136654Kookidooki
ParticipantHello Roger,
I’ve used your code bp_get_member_profile_data, but it failed and found out that his code is the solution:
`<a href="”>Url:`
I know what you’re thinking: what a weird code …. but anyway it’s working.
July 1, 2012 at 11:16 am #136652In reply to: Show custom profile fields in buddyPress?
Pinhead149
Member@RogerCoathup – email is sent
July 1, 2012 at 8:33 am #136644Roger Coathup
ParticipantTo make the URL clickable, add an anchor tag and use bp_get_member_profile_data() to get the value for the href attribute.
June 30, 2012 at 11:58 pm #136635In reply to: BuddyPress 1.6 Beta 1 is ready to test
valuser
ParticipantPresume this is the best place for feedback. if not let me know and i’ll do a separate topic.
Bp 1.6 Beta 1 and up to trunk 6154 and wp 3.4.1 local install
on a single site with bp default theme and on a multisite with child of bp default.
Changes to Profile fields visibility don’t seem to be sticking
Hobbies – not a required field Who can see this field ? Anyone (default)
Change Anyone to Logged in Users and Press Save Changes.
Green Box arrives on top of page —-> Changes Saved
But the changes are NOT saved. Everything stays the same !
Refresh page/Empty cache —> No help,
Same for non-admin user as for admin.
I have a good few plugins active and that possibly could be the cause.
Will disable these tomorrow to check.
In the meantime it would be great to have this confirmed or refuted.
June 30, 2012 at 10:44 pm #136633Hugo Ashmore
ParticipantGlad it’s working, wasn’t that hard in the end
thanks for posting your example.i’ve opened a ticket to see if the comment text in the file can be amended with new example.
June 30, 2012 at 10:05 pm #136632Kookidooki
ParticipantI’ve made a summary for others and as a reminder:
This is the code you must add around line 30 in wp-content/plugins/buddypress/bp-themes/bp-default/members/single/member-header.php:
`Location:Hobbies:<a href="”>Url:`
And how do I make the url clickable?
June 30, 2012 at 9:51 pm #136631Kookidooki
ParticipantHello guys,
It works!!!
I’ve replaced in /single/members-header.php the code bp_profile_field_data() by bp_member_profile_data() and it works great!Thank you guys!!
June 30, 2012 at 9:35 pm #136630Hugo Ashmore
ParticipantWhy are you looking in bp core files? Dont!
Please read through the thread again all the answers are there – you need to be working in /single/members-header.phpJune 30, 2012 at 9:12 pm #136629Kookidooki
ParticipantHello guys,
Thank you for your help; I really appreciate that.
In bp-members-template.php and bp_member_profile_data I’ve found this code at line 596-632:
`function bp_member_profile_data( $args = ” ) {
echo bp_get_member_profile_data( $args );
}
function bp_get_member_profile_data( $args = ” ) {
global $bp, $members_template;if ( !bp_is_active( ‘xprofile’ ) )
return false;// Declare local variables
$data = false;
$user_id = 0;// Guess at default $user_id
if ( !empty( $members_template->member->id ) )
$user_id = $members_template->member->id;
elseif ( !empty( $bp->displayed_user->id ) )
$user_id = $bp->displayed_user->id;$defaults = array(
‘field’ => false, // Field name
‘user_id’ => $user_id
);$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );// Populate the user if it hasn’t been already.
if ( empty( $members_template->member->profile_data ) && method_exists( ‘BP_XProfile_ProfileData’, ‘get_all_for_user’ ) )
$members_template->member->profile_data = BP_XProfile_ProfileData::get_all_for_user( $user_id );// Get the field data if there is data to get
if ( !empty( $members_template->member->profile_data ) )
$data = xprofile_format_profile_field( $members_template->member->profile_data[$field], $members_template->member->profile_data[$field] );return apply_filters( ‘bp_get_member_profile_data’, $data );
}`Is this the code you’re talking about and what should be modified?
June 30, 2012 at 9:12 pm #136628In reply to: Show custom profile fields in buddyPress?
Roger Coathup
Participant@pinhead149 – if you’d like us to quote on the integration work, please email info@21inspired.com
Alternatively, there are a number of other good BuddyPress developers you could approach. You could also try the jobs board on here (although it’s not very active): https://buddypress.org/community/groups/bp-jobs-board/
June 30, 2012 at 8:24 pm #136627In reply to: Show custom profile fields in buddyPress?
Pinhead149
Memberhm i don’t understand it. can you help me maybe via skype, icq or something? i’ll pay for it if it works.
skype: pinheaduntergrund
icq: 415917355thanks
June 30, 2012 at 4:22 pm #136625In reply to: Show custom profile fields in buddyPress?
Roger Coathup
ParticipantHave a look at the templates in /member/single/profile
e.g. edit.php – you’ll be interested in hooks such as bp_custom_profile_edit_fields
You’ll also want to look at members-loop.php to display the plugin fields.
June 30, 2012 at 3:09 pm #136624Hugo Ashmore
Participanthttps://buddypress.trac.wordpress.org/ticket/4319 asks the question whether comments shouldn’t be updated.
June 30, 2012 at 2:58 pm #136623Hugo Ashmore
Participant@shanebp xprofile_get_field_data() is useful if outside of a loop, but this issue is in a members loop so the above function appropriate – but as Roger says why on earth do we still guide people to use bp_profile_field_data() if it effectively doesn’t work?
June 30, 2012 at 2:47 pm #136622Roger Coathup
ParticipantJune 30, 2012 at 2:42 pm #136621shanebp
Moderator@rogercoathup
In 1.6, you can use`
xprofile_get_field_data( $field, $user_id = 0, $multi_format = ‘array’ )
`
From bp-xprofile/bp-xprofile-functions.php.To get a comma-separated string, use the other $multi_format option which will implode the array for you
`
xprofile_get_field_data( $field, $user_id = 0, $multi_format = ‘comma’ )
`June 30, 2012 at 2:37 pm #136620Hugo Ashmore
ParticipantTry using:
`bp_member_profile_data()`works for me!
June 30, 2012 at 2:20 pm #136618Roger Coathup
ParticipantYes, we’ve also noticed a problem with bp_profile_field_data() and select boxes, drop down fields, etc.
The following workaround should handle that field for you:
“
This article may help you:
http://bp-tricks.com/snippets/displaying-certain-profile-fields-on-your-members-profile-page/
Note: @shanebp suggestion of using the unserialize function (see the comments), should also do the trick for you.
-
AuthorSearch Results