Search Results for 'buddypress'
-
AuthorSearch Results
-
June 30, 2012 at 11:54 pm #136634
mememe123
MemberHi Roger,
Thank you, I am new at this. What should I tell my hosting provider specifically?
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 6:32 pm #136626gaznev2000
MemberSame Problem here as well, seen screen shot.
http://www.chimpmarketing.com/BuddyPress-Install.png
This is my screen and as you can see i have no save button.
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:33 pm #136619BobScott
MemberHi, Thanks for the reply. What do I need to look at on ‘https://wordpress.org/support/forum/how-to-and-troubleshooting’ ? Do I search for broken Permalinks? What problem do I have with my Permalinks? Thank you for your asitstance. I have re-isntalled a new WP site but have not yet isntalled BuddyPress. What do I need to do first?
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.
June 30, 2012 at 2:06 pm #136617In reply to: Layout & Sidebar Issues
Patrick Hitches
Member@mercime – I’ve installed Firebug and I’m trying to source the issue. How exactly do I go about finding the table dimension and then make the changes? This “may” be outside of my technical skills. Any help would be greatly appreciated!
June 30, 2012 at 12:56 pm #136616Tammie Lister
ModeratorIt seems you need to set some widths and CSS adjustments to your theme’s CSS – this usually happens when doing theme compatibility as it’s not a simple case of drop in. As a starting point I would suggest:
`#primary {
padding: 0 0 0 20px;
position: relative;
width: 50%;
float: left;
}`Which will for instance on the activity page pop the main body up and keep the sidebars.
June 30, 2012 at 12:18 pm #136613Kookidooki
ParticipantHello guys,
I’ve found and added this code in member-header.php and it’s almost working:
`Location: </spanHobbies:`
The location is displayed correctly, but hobbies are displayed as”Hobbies: array”.
I’ve checked profile field Hobbies; Field type= Multi select Box. This might be the problem if you use this option.1. How do I display the selected boxes?
2. Do I have to copy the above mentioned code to the Frisco theme? If so where?June 30, 2012 at 12:01 pm #136609Kookidooki
ParticipantHello guys,
Yes I’m using the Frisco theme for Buddypress and I’m completely at lost
…
and I was not aware that the Frisco theme was a child-theme.I’m now figuring out how to add my created profile fields “Location” and “Hobbies” in the member’s header.
June 30, 2012 at 11:54 am #136608Hugo Ashmore
Participant@kookidooki Are you using the bp-default theme or a custom one here? Providing all pertinent detail is very important. Rogers guidance in his first post pointed out that there are actually instructions on how to add further xprofile fields, if you have created new profile fields then it should now be a simple matter of following the guide in the member-header file, let us know if that is proving an issue and perhaps provide an example of the code you are trying to add.
June 30, 2012 at 11:49 am #136607Roger Coathup
ParticipantIf you are not tech savvy, it sounds like you would be best to hire a developer to do this development work.
It would also be helpful if you posted full information on here – like the theme you are trying to modify – I notice you have asked the same question on the Frisco theme forums
June 30, 2012 at 11:33 am #136606Kookidooki
ParticipantHello Roger,
Thank you, I’ve found the files!
I’m not tech savvy….. Maybe you could help me with the following issue:
I’ve created profile fields named “Location” and “Hobbies” in Buddypress>Profile Fields.
How do I display these fields in the member’s header just below the name of a profile.
Pls could you provide me the code and step-by-step instructions?Thx in advance,
Kookidooki.June 30, 2012 at 11:23 am #136605Roger Coathup
ParticipantEvery BuddyPress version from 1.0.1 to 1.5.6 comes with bp-default as part of the plugin package.
Start with the documentation on theming BuddyPress: https://codex.buddypress.org/theme-development/the-bp-default-theme/
Also, look at the BuddyPress files in your plugin directory.
-
AuthorSearch Results