Hi Vapvarun,
Thank you for your fast response.
Im running:
Version 2.9.4 | By The BuddyPress Community | View details
The theme owner had this to say about the problem:
“Hi.
This is default BuddyPress page, the theme has nothing to do with it, only changed appearance. Once you changed the password, user should be redirected on the same page.”
Hi @anas9279 You can download po and mo files from the following link and save inside
/wp-content/languages/plugins/
https://translate.wordpress.org/projects/wp-plugins/buddypress/stable/ar/default
@thirty3
BuddyPress already have codes to delete activities for those post which are trash, and it works fine for post and CPT both.
You can find the code ref for it inside
buddypress/bp-blogs/bp-blogs-activity.php
@panosa1973 try to delete all the instance where you have saved language files and save as fresh at the following path
/wp-content/languages/plugins/buddypress-en_US.po
/wp-content/languages/plugins/buddypress-en_US.mo
Hi All,
I use buddypress plugin and since a while now i notice that if users change their password and they press save it lands on 404 not found page.
How can i fix this?
Mark
I’ll give another example, since this appears to me to be a bug.
Buddypress requires pretty permalinks, so why is my permalink a ?p=123 type??
Here’s the code I’m using to add a custom post type to my activity feed.
add_post_type_support( 'community-story', 'buddypress-activity' );
function customize_page_tracking_args() {
// Check if the Activity component is active before using it.
if ( ! bp_is_active( 'activity' ) ) {
return;
}
bp_activity_set_post_type_tracking_args( 'community-story', array(
'component_id' => 'activity',
'action_id' => 'new_community-story',
'bp_activity_admin_filter' => __( 'Shared a new story', 'buddypress' ),
'bp_activity_front_filter' => __( 'Community Story', 'buddypress' ),
'contexts' => array( 'activity', 'member' ),
'activity_comment' => true,
'bp_activity_new_post' => __( '%1$s shared a new <a href="%2$s">Community Story</a>', 'buddypress' ),
'bp_activity_new_post_ms' => __( '%1$s posted a new <a href="%2$s">Community Story</a>, on the site %3$s', 'buddypress' ),
'position' => 100,
) );
}
add_action( 'init', 'customize_page_tracking_args', 1000 );
function record_cpt_activity_content( $cpt ) {
if ( 'new_community-story' === $cpt['type'] ) {
$cpt['content'] = ' ';
}
return $cpt;
}
add_filter('bp_before_activity_add_parse_args', 'record_cpt_activity_content');
And here’s the result
<p>
<a href="https://domain.online/members/thirty3/">UserName/a> shared a new <a href="https://domain.online/?p=313">Community Story</a>
<a href="https://domain.online/?p=313" class="view activity-time-since bp-tooltip" data-bp-tooltip="View Discussion"><span class="time-since" data-livestamp="2018-04-23T20:07:18+0000">17 minutes ago</span></a>
</p>
Hi! I was wondering if Who’s Online widget could be connected to a button (which will represent a city) and the widget would populate with those who are from that city? I bought the plug in ‘GeoMy-Wp Pro’ to help with this. If someone reading this would know how to do this and could do it for me, I would pay! Thank you!
current version of WP, current version of buddypress and the link to my site is http://www.straveler.com, but its not live yet.
KDParticipant
Same thing happened to me. Once I de-activated the ‘BuddyPress for Learndash’ plug-in, it went back to normal..but I really need to use the ‘BuddyPress for Learndash’ plugin. 🙁
Hi
I installed BuddyPress in my website but, the Arabic translation not show !!
Can anyone help me?
my language site is Arabic
If that theme has not removed the bp_directory_members_item hook from the members-loop template, then you could use this function in bp-custom.php
Assuming you have a profile field named ‘Title’ …
function acie_show_member_data() {
$title = bp_get_member_profile_data( 'field=Title' );
if ( $title != '' ) {
$str = $title . '<br>';
echo $str;
}
}
add_action( 'bp_directory_members_item', 'acie_show_member_data' );
You could use the overload method.
imo, using hooks is easier.
For example, to hide admin users from the members loop, you could put this into bp-custom.php… untested…
function grw_members_loop_ghosts( $retval ) {
if ( bp_is_members_directory() ) {
$admins = get_users( array(
'fields' => 'ID',
'role' => 'administrator',
));
$admins = implode(',', $admins );
$retval['exclude'] = $admins;
}
return $retval;
}
add_filter( 'bp_before_has_members_parse_args', 'grw_members_loop_ghosts' );
Hi Glenn, welcome aboard.
I’m pretty new to BuddyPress myself, at least on the in-depth side of things but I’ve been a user for a few years now. Just recently started writing plugins. I know what you mean regarding integration, I guess that’s what you get with a private system, less features but better integrated.
I’ve just created a plugin that I hope will take a step in the right direction integration wise. It’s called BP Post Status and it integrates WordPress posts with BP, allowing posts to be shared in groups and to friends. It’s also got a neat group homepage feature. If you intend to give your members the ability to blog it’s worth taking a look at. Still got a few teething problems though, nothing major, just my lack of experience shining through 🙂
Hi everyone.
I am moving to BuddyPress this coming week as I move from Peepso. A few weeks ago, I created a community for family and friends with Peepso. There is a constant logging issue that has never been resolved which is one reason why I’m coming over. I like how Peepso has everything integrated, but even still, it seems from my limited opinion its functionality is limited. It seems I can do much more with BP though there may be a bigger time investment.
Looking forward to learning here.
Glenn
I think the issue here is that there’s not only single pace you can go to change all these aspects of the site, but certainly the custom MO route should allow you to change a lot of them.
Can I just check, how many times did you replace ‘friends’ in the custom MO file? It’s must have been quite a few times.
I’d not recommend editing the core files, they’d be over-written with the next update, also friends appears in a lot of places and in a lot of contexts, I’d not recommend changing that unless you really knew what you were doing and were creating a new fork of BuddyPress. I’d certainly not be able to tell you that.
Hi How do you hide the admin user from Buddypress? Thanks!
@venutius and @vapvarun,
Thank you for responding. I followed your advice but still nothing. Where does BuddyPress get the language from? Maybe I can edit the original file and see if that works. If that’s even a possibility.
Thank you.
1. take a look at this page, it shows the general principles https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/ also you can look at the BP Template Overloader plugin, it’s designed to make this process more accessible.
Basically you create a buddypress directory in your child theme directory and replicate the directory path to the buddypress/members/register.php file.
Regarding 2, how did you do that? I’ve not got it as an option, I’m aware there’s plugin that added a TOS checkbox, not seen it done directly from the xProfile fields.
But if you did add it as a xProfile field, BP will by default show it in the profile page if the user has set it to publicly visible.
you might like to check out that plugin, I don’t think it uses xProfile fields: BuddyPress Simple Terms And Conditions
Hello Venutius. Thanks for the help. I deactivated all plugins and still the double description shows up.
What is BuddyPress Trac and where is it?
The first thing you need to do is confirm it’s an issue with BP by deactivating your other plugins and see if it still happens. if it does, report it as an issue on BuddyPress Trac.
1. One way to achieve this would be to overload the BuddyPress register page and replace the current section that adds the username with code that populates this field from the username field.
2. Not sure about that one, I take it this is being added by a plugin? if it’s creating an xprofile field then by default it will show up in profile, unless set to not be shown by the user. There’s a couple of options I think, either add some code to force this to not be displayed or else overload the profile page and set it up to display the profile fields you want to display.
@grwebs Your register page seems working fine http://grhs88.glenrocknews.today/register/
If that’s still an issue, make sure you have mapped the pages correctly inside the WordPress Dashboard
Setting >> BuddyPress >> Pages
Hi all,
I’m running WordPress 4.9.5, BuddyPress 2.9.4, with Agama Blue child theme.
I want to change some wording in my labels/tabs and I went through the steps described in Customizing labels, messages and URLs with no results. The main thing I’m trying to accomplish is change “Friends” to “Connections” in all labels, tabs, messages, notifications etc.
This is what I did:
1. I opened the POT file in wp-content/plugins/buddypress/buddypress.pot, made a copy of the file and renamed it to buddypress-en_US.po.
2. I edited the fields I wanted with PoEdit and saved it.
3. I generated a .mo file.
4. I uploaded both .po and .mo files to /wp-content/languages/plugins/
5. I used the WPT Custom Mo File plugin as described.
Nothing happens. Any ideas?
Thanks in advance for your time.
hi all,
i m not new to developmnet but new to buddypress, i m tired to find out what code is running behind this
do_action( ‘bp_signup_username_errors’ );
under register.php
i added google recaptcha v2 , validated somehow successfully in
function bp_core_validate_user_signup( $user_name, $user_email )
bg-member-functions.php
next i found this
// If there are errors with account details, set them for display.
if ( !empty( $account_details[‘errors’]->errors[‘user_name’] ) )
$bp->signup->errors[‘signup_username’] = $account_details[‘errors’]->errors[‘user_name’][0];
what is I need is to show google captcha failure message where i want , as like it is showing for username or other fields.
wordpress code is really hard to understand.
MY PREVIOUS POST IS MISSING SO I’M REPOSTING AND HOPING THIS ISN’T JUST LAG…
OK I found a more targeted way to fix this. Short answer, I added this code add_filter( 'bp_get_activity_content_body', 'stripslashes_deep' );
HOW I added it is kind of important, I think. I’m running a plugin called Code Snippets https://wordpress.org/plugins/code-snippets/
By creating a snippet with just the code above, it takes care of removing those backslashes from comments on activity before it is displayed on the front end. If you apply the fix with this plugin, you can also select “run on front end” in the snippet editor for efficiency/performance.
If you wanted to fix it in your child theme (I don’t know why you’d only want the fix to be theme dependent, but that’s up to you …) then I believe this code would go into your functions.php (untested):
add_action('plugins_loaded', 'jrevillini_buddypress_get_activty_content_body_stripslashes' );
function jrevillini_buddypress_get_activty_content_body_stripslashes () {
add_filter( 'bp_get_activity_content_body', 'stripslashes_deep' );
}
Now I know that stripslashes is already applied to bp_get_activity_content_body by buddypress itself because I found it listed in this document, line 00079: https://drive.google.com/file/d/0B2NrrKAXLm0JQ01GT1ZGQlVOMkE/view (so my code *seems* redundant)
The only thing I can assume at this point is that the code built into buddypress to attach the filter is running too early for all output possibilities at priority 5. By simply adding it into a code snippet which is running as a plugin at the default priority, it seems to do the job before output on the member activity endpoint.
It should be noted that even without my fix, the same activity post will appear fine at some endpoints and not others.
The ones that I found that already worked:
* within a discussion e.g. /members/NAME/activity/73/#acomment-74
* on /member/NAME *as a reply* but *not* as an activity post