@madhall If you want that activity should not be created at all even at the database.
You can try following inside child theme functions.php
function wb_exclude_activity_types_from_recording( &$activity ) {
$excluded_types = array( 'joined_group', 'updated_profile'.'friendship_created' );
if ( empty( $activity->id ) && in_array( $activity->type , $excluded_types ) ) {
$activity->type = '';
}
}
add_action( 'bp_activity_before_save', 'wb_exclude_activity_types_from_recording' );
As per the Activity Filter plugin, it only hides them with bp_ajax_querystring, all activity type still get recorded inside the database. You can also check it’s live working here https://www.youtube.com/watch?v=fTwzSN1y61o
Hmmm… The OP was for default alphabetical listings for group members.
In that case, rather than the members-loop template, the template to overload is this ( assuming you are using the Legacy template pack ):
buddypress/bp-templates/bp-legacy/buddypress/groups/single/members.php
And the change would be:
<?php if ( bp_group_has_members( bp_ajax_querystring( 'group_members' ) . '&type=alphabetical' ) ) : ?>
So try overloading that template and make sure you adjust the placement of that template in your child theme.
@Venutius Just to make sure I have everything accounted for, I wanted to conifrm this should be the correct placement of members-loop.php — see screenshot for directory structure.
https://www.dropbox.com/s/cc6bqqrcxtvljmm/theme-override-placement.png?dl=0
If your theme is overloading that page then yes the changes you make might not have any effect. Your best bet is to contact the theme author and see if that’s the case then ask them how to overload that.
@Venutius or it could be conflicting with my theme — do you know of any plugins that might accomplish this — premium or otherwise, as an alternate way to solve?
You can use specially designed WordPress theme, I think the solution already exist.
The BP Nouveau I was referring to, it’s the BP Theme, you can check which one you are using in Settings>BuddyPress>Options, it’s either Legacy or Nouveau
I’ve also just tried changing the theme to WP 2017. Same issue… I have no idea what else could be wrong. Is there anything else I can do ?
@shanebp Thank you. I’e tried that as well. I’m currently using the themify ultra theme. I tried doing this on another site of mine that I’ve not yet updated to the new Buddypress using same theme and updated WP. It works on this site. Could it be a bug with the buddypress update? Is there a way for me to download the previous version of buddypress?
Yes they are compatible, afaik.
Your preferred theme may not be compatible.
Did you try switching momentarily to a WP theme like 2017 ?
Many thank yous for the reply! Would this be a function I would pop into functions. php — trying to understand if this would live there or where it should be placed.
I’m using the latest version of Buddypress and Nouveau to hook into a custom theme we’re using.
You’d need to pass an argument to bp_has_members in the members-loop.php file:
$args = array(
type => 'alphabetical'
)
if ( bp_has_members( $args ) ) :
endif:
So you would work out which BP theme you are using, then overload the correct members-loop.php for that theme and add the args as above.
Try switching to a WP theme like 2017.
If it works, then you know the issue is in your Themeforest template and you should contact them for support.
Hallo ich benutze ein Template von Themeforest. Ich versuche buddypress zu installieren und zu aktivieren das funktioniert nur lädt meine Seite nicht mehr. Kann mir bitte jemand helfen.
Hi,
whenever i try to upload a group title image (background) i can choose the image, click upload, the progressbar runs… and when it’s done, i get the message, that there was a problem during the upload of the image.
I experience this problem even with twentyseventeen theme, with WordPress 5.0.3 and Buddypress 4.1.0 as the only activated plugin.
happens in live zieltraum.de (with more complex configuration) as in staging staging2.zieltraum.de
Help please, as i have no clue, what’s the reason 🙂
Hello,
im quite new to BP. I try to post to a group, but there is no Group Post Box showing up.
I got no idea why not, I guess this should be there?
I got a Multisite Network activated. I tried different themes and deactivated the Multisite Network. But I still cannot post into a group.
Got any1 an Idea what can be wrong?
Thanks a lot!
You can use the scope argument for that.
Try this in your theme > functions.php or in bp-custom.php
function bp_activities_user_friends_scope( $retval ) {
if ( bp_is_activity_directory() ) {
$retval['scope'] = 'friends';
}
return $retval;
}
add_filter( 'bp_after_has_activities_parse_args', 'bp_activities_user_friends_scope' );
function ghostpool_reset_password_success is not a BuddyPress function.
Some code on your site, perhaps in a plugin or your theme, is adding that function.
You may need to switch themes and/or deactivate other plugins in order to find the code that is adding that function.
i couldn’t configure what is the problem,if it is working on your side then may be i have problem with my theme
i tried trulux code but problem still exist For example when I went from “all members” to “friends” and the activity feed didn’t load. I have to refresh the page to get it to load. as mentioned by notright. i cannot use nouveau because my theme donot support it.
Please use the code button when sharing code.
It would be a useful option in the WP backend.
For now, you need ftp or cpanel access to the site.
You can place that code in your theme > functions.php
If it does not work in that file, try placing it in bp-custom.php
That sounds like you already have something that’s causing that redirection since it’s not a standard feature. I could recommend a plugin to do the redirection, but it’s probably better if you track down what’s causing it, it could be either a plugin, rarely your theme, but could also be via custom coding, you’ll need to track it down.
Hi ! Here’s my problem : when I post something on the wall from a group, the post fails to be published and I just get this message : “Invalid post type”. My website was created 10 days ago and there’s nobody on it (that’s why I was trying to create content) so I don’t know about how this goes for the very few users I have. Kind of a pain, since the posts just completely disappear to let this message appear. I checked my settings and I could not find any parameter controlling some “Post Types”.
Hi use WP version 5.0.3, installed straight from Softaculous on Siteground, so probably as a directory. Unless the updates are automatic in WordPress, I don’t think I upgraded WP from 5.0.2 since I started creating my site later than the release of the latest version of WP. I had no issues with WP before downloading BuddyPress and I only had one problem after I had : weird display of messages with some code visible in some places of the page. I didn’t get to test much though since the site is very recent. I’m running BuddyPress Version 4.1.0. I didn’t upgrade it since I created the site. I have many plugins activated. Here’s the full list : Antispam Bee; bbp style pack; bbpress Version 2.5.14; BP Better Messages; BuddyDrive; BuddyPress Create Group Types; BuddyPress Follow; BuddyPress Global Search; BuddyPress Member Type Generator; BuddyPress Security Check; Contact Form 7; Events Manager; Flamingo; Footer Putter; GEO my WP; Loginizer; Nested Pages; Orbit Fox Companion; Post Types Order (supposed to deal with order?); SG Optimizer; Sitewide Newsletters; Super Progressive Web Apps; Query Monitor (recently downloaded, after noticing the problem); The GDPR Framework; TranslatePress – Multilingual; Wordfence Security; WP Statistics; Wpworx FAQ; YellowPencil Pro; Yoast SEO; Youzer. I have a few other installed but deactivated plugins. I am using the theme Orfeo by ThemeIsle, a child theme from Hestia if I remember correctly. I didn’t modify the core files and I don’t think I have custom functions.
I don’t know what system my server is running.
Thanks in advance ????
Put this in your theme functions.php or in bp-custom.php
function kjc_remove_edit_tab() {
bp_core_remove_subnav_item( 'profile', 'edit' );
}
add_action( 'bp_ready', 'kjc_remove_edit_tab' );
Hi
I make member profile page private for everyone with this snippets in my child theme functions.php file:
function remove_xprofile_links() {
remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 3 );
}
add_action( 'bp_init', 'remove_xprofile_links' );
function my_private_profiles() {
if ( ! bp_is_user_profile() )
return;
if ( current_user_can( 'manage_options' ) )
return;
if ( bp_loggedin_user_id() == bp_displayed_user_id() )
return;
bp_core_redirect( home_url() );
}
add_action( 'init', 'my_private_profiles' );
But I need to disable the members access to a single user front page. Can you help me?
Thanks in advance!