Hi guys,
i’ve installed a plugin called “liveTV bundle”.
The user configuration to add livestreams is included in the normal wordpress profiles. But i want to show that in buddypress profiles. Can somebody edit the following lines?
add_action( ‘show_user_profile’, ‘livetv_show_extra_profile_fields’ ); for example shows the profile fields (that i need) on wordpress profiles. How can i swap it to my buddypress profiles?
Code:
//Now hook to create extra profil fields
add_action( ‘edit_user_profile’, ‘livetv_show_extra_profile_fields’ );
//When the current on the current profil has capabilties to edit -> display
add_action( ‘edit_user_profile_update’, ‘livetv_save_extra_profile_fields’ );
//When the current on the current profil has capabilties to edit -> update
add_action( ‘show_user_profile’, ‘livetv_show_extra_profile_fields’ );
//When the current on the current profil has capabilties to show -> display
add_action( ‘personal_options_update’, ‘livetv_save_extra_profile_fields’ );
//When the current on the current profil is the current and edit -> update
https://buddypress.trac.wordpress.org/ticket/4319 asks the question whether comments shouldn’t be updated.
@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?
@shanebp @hnla –
As Hugo points out, we can also use (since 1.5.somethingorother) bp_member_profile_data(), defined in bp-members-template.php
The comments in member-header.php should be updated!
@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’ )
`
Try using:
`bp_member_profile_data()`
works for me!
Hi, 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?
I’ve now tried a lot of things – and hope to see if somebody can help me here:
Take a look at my site under construction; http://ishojvolley.dk/2 – everything’s working fine. I installed the plugin “Theme my login” and it’s working fine – except for the case that you use the “log in” button in the dark Buddypress top bar.
How can I get this login button to direct people to my customised login-page instead of the standard wp-login.page?
I found the piece of code in the buddypress/core/bp-core-buddybar.php as you can see below – but I can’t find out to change it?
Any suggestions or other ideas?
// **** "Log In" and "Sign Up" links (Visible when not logged in) ********
function bp_adminbar_login_menu() {
global $bp;
if ( is_user_logged_in() )
return false;
echo '<li class="bp-login no-arrow"><a href="' . bp_get_root_domain() . '/wp-login.php?redirect_to=' . urlencode( bp_get_root_domain() ) . '">' . __( 'Log In', 'buddypress' ) . '</a></li>';
// Show "Sign Up" link if user registrations are allowed
if ( bp_get_signup_allowed() )
echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page(false) . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>';
}
Yes, 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.
@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!
It 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.
I’ve just tried this a couple of time but I cannot install BuddyPress. I just installed WordPress and the first and only thing I did was to install BP with the default theme. I accepted all defaults (pages automatically created) but the installation seems to create problems with linking.If you try to create an account I get the message “The page isn’t redirecting properly” (from Firefox). Trying to login gets me a “Page not found” message. I tried exactly the same last week and it worked fine. I just have been experimenting with so many plugins that I wanted to start clean and I can’t even get the first stage to now work. Any help?
You can look at the problem if you go to the site: http://www.orangeschedule.com
Hello guys,
I’ve found and added this code in member-header.php and it’s almost working:
`
Location: </span
Hobbies:
`
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?
Hello 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.
@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.
If 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
Hello 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.
Every 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.
Hello Roger,
What version of Buddypress are you using cause I couldn’t find the files member-header.php and bp-default theme.
I’m using the latest version of Buddypress.
Thx in advance,
Kookidooki.
Hi,
I was referring to this https://codex.buddypress.org/getting-started/setting-up-a-new-installation/buddypress-1-5-installation-wizard/ under Step 1.
I only have Components – Finish & nothing beyond, which should be the “Save & …” button.
I think it’s a not a browser issue as this is the same on different PCs where no other such problem has shown up for WordPress plugins. Also I think it is no server issue, with the PHP 5.3 & 5.2, with all other scripts, including Drupal running.
So running the installation wizard leads to a dead end. 
I would appreciate any help …
Kind regards
== Should I install both? ==
@giovanniw650 No need.
Install only what you want/need – in this case, group forums.
== Or maybe its just not compatible with my Theme. ==
Post a throw-away username and password here so we can see what’s up with the site.
@patrickhitches you can use your theme’s full width page layout if you have one for your forums.
As for layout, looks like there’s a conflict with your theme’s table styles with that of the bbPress forums styles. In upcoming BP 1.6/bbPress 2.1, you can opt for the default “table-less” layout in forums settings..
Use/install Firebug with Firefox to ID and change the styles of respective widths of forum elements
@socialrocketship to download the 6 BP folders, use FTP/File Manager and go to server wp-content/themes/chameleon/ folder then download the 6 folders mentioned in my previous posts