I’m using WordPress Version 4.5.2, BP Version 2.5.3 and installed Salutation WP Theme.
I have set up extended profile fields using multi-select checkboxes. It appears that I have set up the fields correctly. See screen shot #1. However, when a user tries to edit their personal interests they see duplicate fields on the edit screen. See screen shot #2.
How do I remove the duplicate fields on the user’s edit screen?
https://www.dropbox.com/sh/xc4suyybb8la56s/AAB752JqHXWBviJlkj68ANm9a?dl=0
I am very new to Buddypress and would appreciate any help you can provide.
When a member requests to join a private group the button shows “Request Sent” but I’d like to change that to say “Request Sent – Cancel” and have that cancel the request (and delete the notification).
I saw on this post from last year it would need to be a custom function and didn’t see it anywhere but wasn’t sure if that has been added or if there’s a best practice for it.
Thanks,
Andrew
I’ve been trying to figure out how to add Online Offline Border to user Avatar with user cover image upload enabled. I have it working fine if cover image upload is disabled in Settings:
Place this in member-header.php:
<?php
global $bp;
function check_is_user_online($user_id){
if ( bp_has_members( 'type=online&include='.$user_id) ) return true;
else return false;
}
$this_id = bp_displayed_user_id();
$is_online = check_is_user_online($this_id);
if ($is_online) echo '<div id="item-header-avatar" class="online"></div>';
else{ echo '<div id="item-header-avatar" class="offline"></div>';
}
?>
But when I enable Cover image upload and give the Online div a green border color:
#buddypress #item-header-cover-image #item-header-avatar img.avatar {
border: solid 2px #008000;
background: rgba( 255, 255, 255, 0.8 );
}
and the Offline border a red color
#buddypress #item-header-cover-image #item-header-avatar img.avatar-offline {
border: solid 2px #be3631;
background: rgba( 255, 255, 255, 0.8 );
}
The green border shows while the red doesn’t show. Have anyone tried or know the solution to this?
The new div call in member-header.php
if ($is_online) echo '<div id="buddypress item-header-cover-image item-header-avatar" class="avatar">';
else{ echo '<div id="buddypress item-header-cover-image item-header-avatar" class="avatar-offline">';
Hi,
BuddyPress has worked fine on my website (AZBros.com) since I launched it. This morning I wanted to change my profile banner, but when I clicked the Settings link on my site, the page took forever to load and finally said it could not be reached. I tried clicking on Activity and Notifications and they both responded the same way. I checked to see if there was an update, but there was none. I can access my BuddyPress files within my Dashboard, but I can’t access my profile. Any ideas what might have happened? The only major change I’ve made to my site within the past couple days was installing Wordfence on my site. I did some research and don’t see any conflicts between the two plugins.
Hopefully someone can give me some suggestions to get BuddyPress working properly again. Thanks!
it’s explained above !
Another solution here:
Hide All Members Tag
I am curious how to achieve this as well with the current version of BuddyPress (2.5.3).
I can see that the “Create an Account” title in on line 3070 of bp-core-template.php
How could I change this to “Register” through a hook/filter in functions.php or bp-custom.php?
That plugin create field types. You asked for how to create a CV with BuddyPress. Basically, such a feature use a text-area field type. 🙂
Essentially my issue is I am trying to see a users profile/registration before I activate them because their registration process includes info/files that need to be vetted before activation. Now it appears there’s no way to do that under vanilla buddypress/manage signups menu, but per this thread I can see all that info under the BP registration plugin.
The issue becomes I need to activate/approve the user twice; once under manage signups, once under BP registration.
Thanks, i found helpful plugin for solution.
Plugin Name:
BuddyPress Xprofile Custom Fields Type
https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/
Check out this codex page:
https://codex.buddypress.org/emails/#customize-header
By default these buttons are showing on the profile header.
The action location is defined in
/bp-templates/bp-legacy/buddypress/members/single/member-header.php:66
/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php:45
When Profile Cover option is enabled (see bp settings), BP use the cove-image-header file.
If the option is disabled, he use member-header.
In both case, these buttons need the displayed_user_id and the loggedin_user_id to work. This means you need to be at least in the member loop.
You want these buttons to appear elsewhere. OK. But where exactly ?
Don’t hesitate to provide a screenshot sketching the new place.
How do I change the colors on the BuddyPress emails?
Add a a new field group to profiles, call it CV, add some fields and options and you’re done.
User Extended Profiles
As you certainly want to get this part a bit apart of the other profile fields, you can also use this plugin who brings a nice tabbed profile page.
Error message can be changed to whatever by using the language file (even if your site use en_Us or en_GB…).
Customizing Labels, Messages, and URLs
I made some changes on BuddyPress theme
– if don’t show what you did, how could it be possible to help you ?
Revert back step by step to find what you did wrong.
@bryanbatcher,
you can use a function within bp-custom.php
Something like:
function bpfr_remove_nav_tabs() {
bp_core_remove_nav_item( 'messages' );
// and so on for each item you want to remove
}
add_action( 'bp_setup_nav', 'bpfr_remove_nav_tabs', 15 );
References
nav-item
http://hookr.io/plugins/buddypress/2.4.3/functions/bp_core_remove_nav_item/
sub-nav-item
bp_core_remove_subnav_item
For the header thing, see template file and made your modification from within a child-theme.
– profile pic and username: bp-templates/bp-legacy/buddypress/members/single/member-header.php
– cover image: bp-templates/bp-legacy/buddypress/members/single/profile.php
I made some changes on BuddyPress theme and now private and public message buttons appears when current user saw his Friends tab.
I removed this line: do_action( 'bp_member_header_actions' ); from cover-image-header.php file and now the messages buttons appears in user current Friend’s tab, with no href value.
Group Extension API only works for groups. Andrew is asking about member navigation.
There is currently no member extension API.
Check out the bp_core_new_nav_item() and bp_core_new_subnav_item() functions in bp-core/bp-core-buddybar.php:
https://buddypress.trac.wordpress.org/browser/tags/2.6.0-rc1/src/bp-core/bp-core-buddybar.php?marks=15-38,369-399#L15
You’d want to register your navs on the 'bp_setup_nav' hook.
eg.
function my_custom_bp_nav() {
// Fill this in from the documentation.
$nav_args = array();
// Add nav.
bp_core_new_nav_item( $nav_args );
// If you need to add another nav, copy and paste the block above and paste here.
}
add_action( 'bp_setup_nav', 'my_custom_bp_nav' );
Check out this older example on the codex as well:
https://codex.buddypress.org/developer/function-examples/core/bp_core_new_nav_item/
Depending on your requirements, you could also use the BP Skeleton Component:
https://github.com/boonebgorges/buddypress-skeleton-component
However, that might be too much for what you need.
You should only activate group extensions on the BuddyPress site whenever possible, not network-wide.
What happens when you activate the group extensions only on the BuddyPress site?
if i deactivate BuddyPress Event Organiser By Christian Wach and wise chat the sub domain comes up
refreshed the page and strangely line number changed
Fatal error: Call to undefined function bp_get_current_group_id() in /wp-content/plugins/buddypress/bp-groups/classes/class-bp-group-extension.php on line 488
I have a need to add a page with something like Recommended groups based on a person’s location (which I have) and would like to add it as:
buddypress/members/username/groups/join/
so it would sit on the list with Memberships (buddypress/members/username/groups/) and Invitations (buddypress/members/username/groups/invites/) as a 3rd option for the logged in user like Invitations.
I can’t find the right place to start to just add a skeleton to get into this part. Is this a Group Extension or a Member extension or where can I go to add something to that set?
Thanks for any tips where to go,
Andrew
@danbp thanks..yeah read that…
added the code…line number changes..
Fatal error: Call to undefined function bp_get_current_group_id() in /wp-content/plugins/buddypress/bp-groups/classes/class-bp-group-extension.php on line 486
@sharmavishal – Can you add the following in wp-content/plugins/buddypress/bp-groups/classes/class-bp-group-extension.php:
if ( defined( 'WP_NETWORK_ADMIN' ) ) {
echo get_called_class();
}
Right before this:
// Usually this will work.
$group_id = bp_get_current_group_id();
This should print the names of the group extension classes that are being loaded right before the fatal error.
Can you copy and paste this info here?
Thanks!
BuddyPress Groups Extras am using deactivated it…created a new site via add new same issue