Working now!
There’s nothing wrong with the theme suffusion, any plugin or Buddypress.
All I had to do was perform a browser’s cache cleaning.
Certainly there was an outdated jquery version loaded on my browser’s cache.
Thanks a lot Henry for your concern.
I just installed buddypress. I have set all my pages and settings and added the groups and activity to my menu. when i go to the front end and click on groups, it has a button that says “create group” when I click on that it goes to a blank page???
How do I set up the groups? How do I set up the forum topics etc?? how do I set up the activity??
please help! lol
Tracy.
so if i have activate the buddypress
1. page navigation is not working http://prntscr.com/60jw72 here is missing the button “more videos”
2. http://prntscr.com/60jwhj this is Show/Hide Blog – Layouts Switcher Tool again is not working just i press and noting..
3. i have in home page a slider with icons and plays like 2-2-2-2(next-previous) now is all 10 one below the other and more like this..
only if i have the buddypress on is this problems (if you want i can give you the link from my page to see..)
HI,
i need to change like we have custom field of Gender i have to check if this form is submitted by a female then shows a message “This is not for you !”.
means just restrict the user gender vise . only males can sign up . can any one help me ?
Hi @deshmukh
- You can add items to the activity stream using
bp_activity_add(). You’d write a custom function and hook it to the relevant action which fires when a group message has been posted (see a)
- The
display_comments parameter will help you here. You’ll need to change threaded to stream (see b)
Refs:
a) https://codex.buddypress.org/developer/function-examples/bp_activity_add/
b) https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/
Hi @mastodontmedia
You’ll need to modify your members template. Check out the BuddyPress Template Hierarchy for more info on the template system.
To show a specific profile field inside the loop, you can just do: bp_member_profile_data( 'field=the field name' );
I guess something is not translated, but in this case, the email text should come in english.
If yo use an “old” translation from a previous version, it is possible that something is missing in your translation.
After checking both portugese version on GlotPress, (pt_PT and pt_BR) it appears that pt_PT is not translated for 2.1.x and to 38% for pt_PT in the dev version – the one actualy used by BP 2.1.1
https://translate.wordpress.org/projects/buddypress/dev
If you use an email plugin, ensure it is matching with WP’s mail action. Or if your theme has is own mail function, check that he uses the same wording as BP (and particulary the $s var) who fires the link.
Code in 2.1.1 looks like this
%1$s,\n
\n
\n
\n
Thanks for registering! To complete the activation of your account and blog, please click the following link:\n
\n
%2$s\n
\n
\n
\n
After you activate, you can visit your blog here:\n
\n
%3$s
Hi as an update, I tried using the plugin outside of the sidebar tabs plugin and the problem is still there, so I tried using this buddypress-activity-sidebar-widget-resubmission to see if the like’s were pushed to the side in that one too, and the weren’t, that one is perfect, so i’m sure it’s the styling in sitewide activity. Any tips would be most welcome 🙂
After searching for a plugin to import WordPress user data into BuddyPress, I ran across this helpful but dated article on the topic: http://aendrew.com/content/importing-proprietary-user-database-buddypress-boss/
Using that as a guide I wrote 3 MySQL queries to import First Name, Last Name and Description from standard WordPress user meta data. I also added empty string checks and an if exists check to prevent duplicate data. Always make a backup first and use as needed.
/* first name import */
INSERT INTO wp_bp_xprofile_data (field_id, user_id, value, last_updated)
SELECT '2' AS field_id, wp_usermeta.user_id AS user_id, wp_usermeta.meta_value AS value, NOW() AS last_updated
FROM wp_usermeta
WHERE wp_usermeta.meta_key='first_name'
AND TRIM( wp_usermeta.meta_value ) != ''
AND NOT EXISTS (
SELECT value FROM wp_bp_xprofile_data WHERE field_id='2' AND
wp_bp_xprofile_data.user_id=wp_usermeta.user_id
);
/* last name import */
INSERT INTO wp_bp_xprofile_data (field_id, user_id, value, last_updated)
SELECT '3' AS field_id, wp_usermeta.user_id AS user_id, wp_usermeta.meta_value AS value, NOW() AS last_updated
FROM wp_usermeta
WHERE wp_usermeta.meta_key='last_name'
AND TRIM( wp_usermeta.meta_value ) != ''
AND NOT EXISTS (
SELECT value FROM wp_bp_xprofile_data WHERE field_id='3' AND
wp_bp_xprofile_data.user_id=wp_usermeta.user_id
);
/* description import */
INSERT INTO wp_bp_xprofile_data (field_id, user_id, value, last_updated)
SELECT '12' AS field_id, wp_usermeta.user_id AS user_id, wp_usermeta.meta_value AS value, NOW() AS last_updated
FROM wp_usermeta
WHERE wp_usermeta.meta_key='description'
AND TRIM( wp_usermeta.meta_value ) != ''
AND NOT EXISTS (
SELECT value FROM wp_bp_xprofile_data WHERE field_id='12' AND
wp_bp_xprofile_data.user_id=wp_usermeta.user_id
);
hello. i put the buddypress in my website and after activate the plugin all my stuff in site is not working because is ajax based (like navigation images plugins..) so how to fix what??
Hi there,
I’m looking for help with a couple of specific bits
I’m using sitewide activity widget in tabs using Sidebartabs plugin, and I would like to have an activity stream for only the logged in user in the one tab, and only friends in the other.
Has anyone done this before?
Also I am using plugin Wp-ulike and when someone like’s one of my posts, on the sidebar with the activity, an icon shows up with their user (or user-tooltip?), but that icon goes off screen. I don’t mind the icon showing up if I can get it to sit in the middle, but it goes off to the right and you can’t see the name in the bubble etc. I’m sure this must be so easy to change in the style sheet wp-ulike.css or swa.css but it’s beyond me :-/
Can anyone help me? My site is locked for devel but I can supply a log in.
Many thanks in advance 🙂
Kirsty
@sbrajesh
@Alimir
Interesting. Might be a theming issue. Kleo is built for buddypress and bbpress, but maybe an error.
Will have to look into that side of things.
Thanks Henry for your quick response.
I’m using Suffusion theme.
I’m not using template pack conpatibility provided that since BP 1.7 it just became unecessary. However I’m using in child theme /buddypress/members/members-loop.php which I’ve copied from BP-legacy and customized to have a different layout and display xprofile fields information.
I removed this file to force the use of the original BP markup and the problem remains.
So it’s Ajax related.
I’ll try to check theme’s and BP’s Javascript files.
Since BuddyPress 2.0.0 you can use this in bp-custom.php
function namrons_activity_nocomment( $can_comment = true, $type = '' ) {
if ( empty( $can_comment ) ) {
return $can_comment;
}
// activities which can't be commented
$cant_comment_types = array(
'new_forum_topic' => 1,
'new_forum_post' => 1,
);
return ! isset( $cant_comment_types[ $type ] );
}
add_filter( 'bp_activity_can_comment', 'namrons_activity_nocomment', 10, 2 );
In Buddypress settings there is unfortunately only one setting that controls the ability to comment on both blog and forum posts which appear on the activity stream. There is the check box “Allow activity stream commenting on blog and forum posts”.
My issue is that I require activity stream commenting on blog posts but do not want them on forum posts. Logically, there is no reason why there should be one setting controlling both. Is it perhaps possible to separate the two so that users have this freedom?
Hi Christian,
no problem. If you decide to not use it again, you can use my plugin BuddyPress notification widget in that case.
About the notice plugin,
I will write the code tonight and put on github and link here.
Thanks
Brajesh
Firstly is have set 3 members type using member_type() function . then I set the roles
Using Henry’s solution
I.e
add_role(
'student',
__( 'Student' ),
array(
'read' => true, // true allows this capability
'edit_posts' => true,
'delete_posts' => false, // Use false to explicitly
)
);
Then by using this function I tie these roles to wo roles.
function youmin_set_role( $user_id, $member_type, $append ) {
$userdata = array( 'ID' => $user_id, 'role' => $member_type );
wp_update_user( $userdata );
}
add_action( 'bp_set_member_type', 'youmin_set_role', 10, 3 );
But still every user is able to create group since by default wp role ‘subscriber’ is loading and buddypress user role let’s the subscriber to create group.
So isn’t it possible to pass an array to above role function to restrict group creation ? Or any other code snippet ?
Take a look at https://buddypress.org/support/topic/how-to-bp_set_member_type/
Hi Christian,
There is one functionality in BuddyPress that allows it. You can see the feature as site wide notice(Mark a message as notice).
The problem is currently, only a user with the capability ‘bp_moderate’ can send the notice. Do you want to allow this notification feature for all users or just selected few?
Hi @fptquangngai,
I am assuming you are referring to the name shown in the screenshot below:

This name you want to change is coming from the line bp_core_get_userlink( $user_id ); in the snippet you provided, which is part of the bp_message_get_recipient_tabs() function defined in the BuddyPress plugin under bp-members > admin > bp-members-functions.php.
It seems there are two things you can do here:
1. You can replace the bp_core_get_userlink() function in the message template (located at wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress\members\single\messages\compose.php) with your own custom function. See BuddyPress Codex for how to properly do this.
OR
2. Create a filter.
Since the bp_core_get_userlink() function uses the ‘bp_core_get_userlink’ filter for the returned value, you can hook into this filter and modify it in your theme’s functions.php file (or your own custom plugin). The only problem is that since the bp_core_get_userlink() function is used in other parts of the code (notably the BuddyPress Login Widget), you will have to make it so that the custom filter is used only under certain conditions.
Here is the custom filter I came up with. Its not refined, but serves as a working example:
add_filter( 'bp_core_get_userlink', 'my_bp_filter', 10, 2 );
function my_bp_filter( $string, $user_id ){
global $pagename;
if ( isset( $_GET['r']) && $pagename === 'compose' ){
$username = bp_core_get_username( $user_id );
if ( $_GET['r'] === $username ) {
$string = explode(' ', $string);
$string = $string[0]. ' '. $string[1]. 'Alt="' . $username . '">'. $username . '</a>';
}
}
return $string;
}
In Buddypress settings there is unfortunately only one setting that controls the ability to comment on both blog and forum posts which appear on the activity stream. There is the check box “Allow activity stream commenting on blog and forum posts”.
My issue is that I require activity stream commenting on blog posts but do not want them on forum posts. Logically, there is no reason why there should be one setting controlling both. Is it perhaps possible to separate the two so that users have this freedom?