Search Results for 'buddypress'
-
Search Results
-
Not sure why this keeps disappearing? Its getting frustrating to keep reposting this, lol.
Anyways, lets try again.
I have been reading a lot about custom Avatar sizes in BuddyPress but have not found an answer to this. I am hoping to find out if there is a way in BuddyPress to actually create custom avatar sizes like I do in WordPress?
Example: in WP we simply do this for new custom sizes
add_theme_support( 'post-thumbnails' );add_image_size( 'sidebar-thumb', 120, 120, true ); // Hard Crop Mode
add_image_size( 'homepage-thumb', 220, 180 ); // Soft Crop Mode
add_image_size( 'singlepost-thumb', 590, 9999 ); // Unlimited Height Mode<?php the_post_thumbnail( 'your-specified-image-size' ); ?>
Is there a way to do something similar in BuddyPress? It would make life SOOOOO much easier if we can do something similar to this.
add_theme_support( 'custom-avatar-sizes' );add_avatar_size( 'profile-avatar', 120, 120, true ); // Hard Crop Mode
add_avatar_size( 'members-loop-avatar', 220, 180 ); // Soft Crop Mode
add_avatar_size( 'forums-avatar', 590, 9999 ); // Unlimited Height Mode<?php the_avatar_img( 'profile-avatar' ); ?>
I know that I can edit the sizes inline and I know that I can create custom css for this but its normally not reliable and its not very flexible.
Is there a way to do anything like this in BuddyPress?
WordPress: 4.9.1
BuddyPress: 2.9.2
Site: newenglandfurs.org
Theme(s) tested: Avant (Primary), Twenty SixteenThe problem I’m experiencing is with BuddyPress’ Muiltiline Text Box element. Specifically inside the editor where you would add content. Currently my community and I have noticed that if we try to center text with the element’s alignment functions, the preview shows the alignment in both the visual and text tabs. However, as soon as we save the element, those alignments disappear. This does not happen in our WordPress news posts. You can see an example of this situation here: http://newenglandfurs.org/members/rexormunde/profile/
Where it says “testing this section”, that was set to be centered in the Multiline Text Box element. As you can see, it’s not centered. Inspect the element with Google Chrome, and you’ll see no signs of any alignments on the paragraph.
I’m not sure if this is a bug or if I’m doing something wrong. Any advice would be appreciated.
Topic: Menu BuddyPress
Hello I am using Buddypress with Woffice Theme and I have create an Intarnet where can users register. I give them the permission to edit their profile. The problem is that when they want to change something in their profile in Buddypress (for example telephone or Location) in doesn’t accept the update although it is saving normally. When you are going in the overview it has the old data. Can you please help me and tell me whats wrong?? Thank you
Topic: Hooks problem.
Hi There,
I am using the buddypress and apppresser plugin in our website. Apppresser plugin is used to convert wordpress web application to mobile application. I want to use buddypress hooks to send push notifications over the friend request and invite to group request trigger but this is not working. I am using the following hooks for the same
groups_send_invites
groups_accept_invite
friends_friendship_accepted
bp_activity_add_user_favorite
friends_friendship_requestedHere is my code which I have written on function.php .
function action_groups_send_invite( $group_id, $invited_users, $user_id ) {
// make action magic happen here…
if ( !is_user_logged_in() )
return false;
$message = ‘Hi there some one send your request!’;$push = new AppPresser_Notifications_Update;
$devices = $push->get_devices_by_user_id($invited_users);
if( $devices ) {
$push->notification_send( ‘now’, $message, 1, $devices );
}
};// add the action
add_action( ‘groups_send_invites’, ‘action_groups_send_invite’, 10, 3 );function action_friends_friendship_requested( $friendship_id, $initiator_id, $friend_id ) {
if ( !is_user_logged_in() )
return false;$recipients = array( $initiator_id );
$message = ‘Hi there some one send you request!’;
$push = new AppPresser_Notifications_Update;
$devices = $push->get_devices_by_user_id( $recipients );if( $devices ) {
$push->notification_send( ‘now’, $message, 1, $devices );
}//apppush_send_notification( ‘friends_friendship_requested’ );
};// add the action
add_action( “friends_friendship_requested”, ‘action_friends_friendship_requested’, 10, 4 );function action_friends_friendship_accepted( $friendship_id, $friendship_initiator_user_id, $friendship_friend_user_id, $friendship ) {
// // make action magic happen here…
if ( !is_user_logged_in() )
return false;$recipients = array( $friendship_initiator_user_id );
$message = ‘Hi there some one accept your request!’;
$push = new AppPresser_Notifications_Update;
$devices = $push->get_devices_by_user_id( $recipients );if( $devices ) {
$push->notification_send( ‘now’, $message, 1, $devices );
}
//apppush_send_notification( ‘friends_friendship_accepted’ );
};// add the action
add_action( ‘friends_friendship_accepted’, ‘action_friends_friendship_accepted’, 10, 4 );function action_add_user_favorite( $activity_id, $user_id ) {
// do something$recipients = array( $user_id );
$message = ‘Hi there some one accept your friend request!’;
$push = new AppPresser_Notifications_Update;
$devices = $push->get_devices_by_user_id( $recipients );if( $devices ) {
$push->notification_send( ‘now’, $message, 1, $devices );
}
}
add_action(‘bp_activity_add_user_favorite’, ‘action_add_user_favorite’, 1, 2 );Hi All,
I am activating a learning management theme on a subdomain (____.domain.com) of my site. I don’t have multisite capabilities (my host doesn’t allow for it….). I want to have the same users from my main site be able to sign into the subdomain site and vice versa. Is this possible? Can i have the same buddypress network on both sites?
Thanks!
Anyone have any insight on replacing email templates from BuddyPress Email Templates (WordPress side) to Mandrill Templates instead?
Is there a plugin that can help facilitate this?
Topic: BuddyPress Moderator
Hi,
I did a serious research to find a best solutions or plugins to report abuse posts, flag BuddyPress content. I found this plugin https://wordpress.org/plugins/bp-moderation/ suggested in various BuddyPress forum but that plugin itself is not updated last 3 years and it doesn’t support my WordPress version 4.9.1 and BuddyPress 2.9.2. I think this feature is very crucial for social network application to moderate post and flag abusive post/comments. I am looking for plugins for my BuddyPress site to flag content and I really appreciate suggestions on it.I’m using WP Mail SMTP with Buddypress. I’ve reinstalled emails, and deactivated all plugins but Buddypress and WP Mail SMTP, but that doesn’t work. Test emails work fine though. I’ve also tried it with Buddypress deactivated and the regular WP registration emails work fine.
Any help with what else I might try to debug this would be appreciated. Thanks.
Topic: Buddypress notifications
Hello,
Can you help me understand how the notifications work with buddypress? I have some forums that were created through buddypress groups. When someone posts a new topic or a reply to a topic, should I receive a notification? (Not an email – I’m using buddyboss theme which has this notification icon: https://imgur.com/a/2lU75) Is there a setting to turn on to receive these notifications for forum activity? Or do I need some other plugin? Or does it sound like something is broken on my site? I don’t understand how this is supposed to work to know how to troubleshoot it.
Thank you!
Hi,
Using PHP 7.2, I notice some messages from the amazing “Query Monitor” WordPress plugin regarding a deprecated function used by BuddyPress:
Message: Function create_function() is deprecated Count: 26 File: wp-content/plugins/buddypress/bp-core/deprecated/1.6.php:268Using this function is higly discouraged by PHP itself as you can check here:
http://php.net/manual/en/function.create-function.phpI wish I could propose a workaround but I don’t speak PHP, I just wanted to warn devs for future updates. Hopefully this post gets seen by the right persons.
Best regards everyone!
In BuddyPress there is a built-in mechanism for synchronizing profile fields from WordPress.
By default, it synchronizes only the “display_name” field, which is not always sufficient.
Here is an example of the code by which you can synchronize any available fields in the WordPress field with the Buddypress fieldsfunction xprofile_sync_bp_profile2( &$errors, $update, &$user ) { // Bail if profile syncing is disabled. if ( bp_disable_profile_sync() || ! $update || $errors->get_error_codes() ) { return; } // Querying data from a table "usermeta", first we get the value of the custom field "address" and substitute this value for the "Address" field of the xprofile BuddyPress $address = get_user_meta( $user->ID, 'address', 'true' ); xprofile_set_field_data( 'Address', $user->ID, $address ); //Similarly with other fields $firstname = get_user_meta( $user->ID, 'first_name', 'true' ); xprofile_set_field_data( 'Name', $user->ID, $firstname ); $lastname = get_user_meta( $user->ID, 'last_name', 'true' ); xprofile_set_field_data( 'Lastname', $user->ID, $lastname ); $description = get_user_meta( $user->ID, 'description', 'true' ); xprofile_set_field_data( 'Bio', $user->ID, $description ); // Querying data from a table "user" xprofile_set_field_data( 'E-mail', $user->ID, $user->user_email ); xprofile_set_field_data( 'Site', $user->ID, $user->user_url ); } add_action( 'user_profile_update_errors', 'xprofile_sync_bp_profile2', 10, 3 );Unfortunately, the fields are synchronized only when the profile is updated. I do not know how to start mass synchronization 🙁
I hope someone will find this information useful.
Hi,
I managed to customize my activity feed for a custom post type, however I’m struggling to influence the output of “standard” blog posts !
Ideally I would like to redirect the “format_callback” parameter to the custom callback I created for my custom post type, which should handle both standard and custom types ultimately.
I tried the following code, and the format_callback stayed desperately the same for the blog posts…
add_action( ‘bp_register_activity_actions’, ‘customize_posts_tracking_args’ );
function customize_posts_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( ‘post’, array(
‘component_id’ => buddypress()->blogs->id,
‘action_id’ => ‘new_blog_post’,
‘format_callback’ => ‘custom_format_activity_action_post’,
) );
}Then I also tried the filters, which I found in some web pages, but they didn’t work either for blog post type… The code below didn’t cause any change to my activity feed.
// Customize post publication activity feed content
add_filter(‘bp_blogs_record_activity_action’, ‘record_cpt_activity_content’);
add_filter(‘bp_blogs_record_activity_content’, ‘record_cpt_activity_content’);
function record_cpt_activity_content( $cpt ) {
echo “Any text”;
$cpt=’Any text’;
$cpt[‘content’]=’Any text’;
return $cpt;
}Any help is very welcome here !!!
Regards,
Pascal.
Topic: Search users
Hi, I am new to WordPress. I want to add search bar to search all the users from their phone number or name or any one keyword of their address.
Is it possible to search buddypress registered users database by anyone?
+ I want to add functionality that users registered users to be divided into two sub parts, sellers and buyers. I want search bar to search only sellers details.
Please help.
+ I want to add search functionality, so that same search bar can also search all the keywords from databases created by any registered user and show to person who is searching for that keyword.
Thanks.
Hi, we’re using buddypress on our site. We have a staging site being built and we are making it live soon.
However, if there are new member signed in to our live site how can we import it to our staging site so it is also updated?Any help will do. Thank you!
Topic: Paypal donation button
Hello,
How can I include in the BuddyPress plugin donation buttons associated to the same level of authorization of “subscriber” users?
That is how to do it directly or should I install a different plugin which is completely integrated to this one?
Thanks.