@shanebp and @danbp thank you for the replies on this. I did my change of this using Codestyling Localization. That didn’t work (it worked everywhere but in the subnav). Then I manually created po/mo files and it also worked everywhere but in the subnav. When I did that translation, I created the po using an online po edit (I don’t remember which one, and it certainly didn’t say anything about source keywords).
I’ve now installed a copy of PoEdit on my pc and am working through the file now, with the keyword information mentioned in the link above.
I have a couple additional question though, because I’ve found conflicting information on the internet and following the instructions from the BP documentation doesn’t seem to work right.
The buddypress-en_US.po and buddpress-en_US.mo files need to be in which folder?
The documentation says to put them in /wp-content/languages/plugins/ however, sources I’ve seen elsewhere say to put them in /wp-content/languages/ – currently neither of them work for me, but I’m starting this translation from scratch now and I want to get it right.
Also, does the language define statement in wp-config.php need to be set for this to work? Keep in mind that I’m not doing a full on translation, just this BuddyPress translation to change Friends to Connections.
Have you tried to use the shortcode plugin i mentionned previously ?
Warning: usort() expects parameter 1 to be array, string given in /wp-content/plugins/buddypress/bp-activity/bp-activity-akismet.php on line 643
The @ symbol is added in this file:
buddypress\bp-templates\bp-legacy\buddypress\members\single\member-header.php
Create a template overload of that file and remove the symbol.
Sure!
See here for where your filter will be applied. Here is documentation on apply_filters_ref_array() (it’s almost identical to apply_filters()). And you’ll need to use add_filter() to hook your filter function to the hook.
If you’re new to filter hooks, try searching for some tutorials, there’s so much info available already. Hope this info helps!
@henrywright – thanks for the reply. I’m new to BuddyPress and not exactly a “master coder.”
Do you have any suggested resources on where I might find out more about your recommendation? Thanks for any help.
*Update
All my problem solved, except one by adding some codes(i changed Name field to First name-and that being a must to give is okay):
//Removes mentions pane from profile activity (doesn’t remove mention functionality)
function ray_remove_mention_nav() {
global $bp;
bp_core_remove_subnav_item( $bp->activity->slug, ‘mentions’ );
}
add_action( ‘bp_setup_nav’, ‘ray_remove_mention_nav’, 15 );
add_filter( ‘bp_activity_do_mentions’, ‘__return_false’ );
define( ‘BP_SHOW_DISPLAYNAME_ON_PROFILE’, false );
+ buddypress usernames only plugin
One problem remains only: It now shows the username correctly, but there still is the @ before the name so : @Ortelius
Please help me remove that @ somehow.
Thanks,
Daniel
Whenever something doesn’t work, I usually blame my setup first. I find that’s helpful and it forces me to try all the angles to make sure it’s not me.
Having said that, in this case, I have tried off and on for two months to figure out why Group Moderators is broken. The only way I can get a Group Moderator to be able to remove others’ content in that group is by a) promoting them to Admin (no bueno) or adding extra capabilities (like delete users) to their Role (also no bueno).
I have tried this with NO other plugins active except BuddyPress and bbpress, and on three different themes (including 2015). Finally, I tried it on a completely different site, again with only bbpress and BP, and still no joy.
I thought maybe I was looking at it wrong… but I confirmed in codex:
“Moderators: When a group member is promoted to be a moderator of the group, it means that the member receives the following additional abilities:
Edit, close, and delete any forum topic or post in the group
Edit and delete other kinds of content, as produced by certain plugins”
What is interesting is that the Moderator role as set in bbpress WORKS for that user in that Group’s Group Forums. But the moderator user can NOT delete any BuddyPress posted content in that group, no matter what role or capabilities I assign (short of those of Administrator).
So, I ask, am I looking at this wrong? What am I missing? Shouldn’t a User promoted to Group Moderator be able to moderate content in that Group, regardless of their WP Role and capabilities?
Thanks.
WP 4.1.1
BP 2.2.2
Hi, I would like to ask how to add a tab naming ‘blog’ in each user’s profile page,
and it would show posts written by that author(looks like archives/author/username)
I’ve followed the instructions in
while I think I’m struggling in get_template_part( 'directory-to-content-file' );part
what should it be?! Please help. Thanks a lot.
WordPress version 4.1.1, BP 2.2.2.1
Actually, this isn’t working right. I prevents any bbPress topic/replies from being posting on activity walls at all (even just the titles). I guess it’s back to the drawing board.
I’m wondering if this might do it – putting a div class around the topic/reply content in the template files of bbPress, and then only hiding this div in BuddyPress. But then I’m thinking it might result in the same issue – nothing topic/replies show in activity wall at all.
Any suggestions greatly appreciated.
I have a solution for this – although not particularly neat.
I took a copy of the BuddyPress Core Component Widgets and changed all occurrences of bp_core_register_widgets to, in my case, bp_ovni_core_register_widgets, and placed it in the bp-custom.php file. This gave me a new widget that I could place in the side bar instead of the standard (BuddyPress) Log In. This change seems necessary to avoid a re-registration error.
I then edited the action after <?php if ( bp_get_signup_allowed() ) : ?> to go to my information page instead of the register page. From that page I link to my actual registration page, where the register form is displayed.
It all seems to work for me.
I’m still testing, but I think this does it:
.activity-list li.bbp_topic_create .activity-content .activity-inner, .activity-list li.bbp_reply_create .activity-content .activity-inner {
display: none !important;
}
It shows bbPress forum titles in BuddyPress activity streams, but not content of the bbPress reply/post. I’m still checking to see if it might cause problems somewhere else, but so far, I don’t see any.
Hope this helps anyone who might need it.
Is there a function that can be used to simply hide a div class, just within BuddyPress?
I think I can easily add an extra div to the content area of all posts in bbPress, and this would allow me to hide the content area of bbPress posts in BuddyPress.
I’ve been searching for such a funtion, and can’t seem to find anything. Thanks for any help.
* bp-legacy>buddypress>activity>index.php (in child theme folder)
This question is related to bbPress.
See bbp_title filter in wp-content/plugins/bbpress/includes/common/template.php:2519
Similar technique is used by BuddyPress.
See function bp_modify_page_title in bp-core-filsters.php:514
Here a usage example to uppercase BP titles.
function bpfr_profiles_wp_title( $title ='', $sep = '', $seplocation = '' ) {
if( bp_get_displayed_user_fullname() ) {
$bp = buddypress();
// Get the component's ID to try and get it's name
$component_id = $component_name = bp_current_component();
// Use the actual component name
if ( !empty( $bp->{$component_id}->name ) ) {
$component_name = $bp->{$component_id}->name;
// Fall back on the component ID (probably same as current_component)
} elseif ( !empty( $bp->{$component_id}->id ) ) {
$component_name = $bp->{$component_id}->id;
}
$title = str_replace( ucwords( $component_name ), '', $title );
}
return $title;
}
add_filter( 'bp_modify_page_title', 'bpfr_profiles_wp_title', 20, 3 );
Hi @danbp,
Thanks for reply. Yeah i know about those. I meant where would I put custom loops with my own filters etc. The wordpress codex says to put them in index.php. I assume that for Buddypress that would be:
bp-legacy>buddypress>activity>index.php
Then call it within bp-custom.php?
Loops are in templates.
See bp-templates/bp-legacy/buddypress/
And read carefully template hierarchy to understand how all this is working together.
Hi everyone,
Where are loops such as the Standard Loop in the link below put?
Activity Loop
https://codex.wordpress.org/The_Loop_in_Action
Do they go in the bp-custom.php file? How are they called into use on a new page?
Any help/guidance of where to look would be appreciated.
Hello friends!
After long time I decided to enroll in the comunidadee then take a doubt.
I’m using BuddyPress for a domain in a local intranet in a company that I’m doing the management of technology and communications department . The web publishing area is very good for a used and the field of technology user, however, I am proposing that a user who has the slightest knowledge can publish an article / news via BuddyPress own .
Is there a plugin for this kind of situation?
Thank you for your attention !
Hello!(wp/bp/bbp newest versions)
Thing is it would be important to give my members the opportunity to be anonymus.
The page that buddypress gives me as register page includes a *name on the left side (and email and pw)that i learned to be given by wordpress, and on the right side there is the buddypress side- that i can customize.
Is there a way to
1. use the buddypress side only-so that i can fully customize what username’ is-and so that username is the one that is displayed in the profile.-as default.
So i don’t want to display person’s name, i do want to display username in the Profile(Without the @ before the name or like so: Name (@name).
Thanks for your time,
Daniel
Sorry I thought I had!
This is code I have created to add a new tab to a cpt, its on
<?php add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;
function geodir_detail_page_tab_list_extend($tab_array)
{
$tab_array['my_new_tab'] = array(
'heading_text' => __('New Tab',GEODIRECTORY_TEXTDOMAIN),
'is_active_tab' => false,
'is_display' => apply_filters('geodir_detail_page_tab_is_display', true, 'my_new_tab'),
'tab_content' => ''
);
return $tab_array ;
}
add_action('geodir_after_tab_content' ,'geodir_my_new_tab_content');
function geodir_my_new_tab_content($tab_index)
{
if($tab_index =='my_new_tab')
{
echo "Hello world!!";
}
}
?>
These pages/cpts are created by buddypress users. So, on this new tab i have created i wish to call the activity stream of the author!
My php knowledge is almost nill so I am really struggling, I didn’t think it was to hard a thing to do!
@arturamirov,
You need to create a new php file called bp-custom.php . Then post the code @danbp posted above into it.
See here:
bp-custom.php