Search Results for 'buddypress'
-
Search Results
-
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.Hola! Hemos instalado Buddypress en nuestro sitio http://www.actualinocente.org/registro y queremos editar el texto que dice:
“Registrarse en este sitio es muy fácil…”Alguien puede ayudarnos?
I’m completely new to BP but was wondering about the few questions/statements below:
-Is it possible to add like a document library where members of the group can add PDF, Word, and other documents for other members to review and download.
-Is it possible for group members to co-edit documents in buddypress?
-How can I upload documents and photos to the feed area? Is this not possible?hello..
can anyone suggest me a plugin to get buddypress activiy email notifications? like get and email notification when someone post something on you wall, someone likes your post and when someone comments on your post. Please suggest me.
Thank you.when a user clicks on his username it goes here http://www.livefornight.com/wp-content/forfree.html
when they try to activate their email it goes here http://www.taobaolove.info/wp-content/uploads/elovele.html
please advise
Topic: Group Filters
Within Buddypress group the setting allow the group to be public or private! However when the group is public and a member of the group post something, that post goes to activity stream on the front end. I like a code that I can put in my Custom CSS, that would only allow the (Admin of the Group) post to be seen in the overall community stream of activity when the setting is set to public. Members of the group post can only be seen within the group, when set to public.
Regards
Hi,
Please, to the best of my knowledge, there are no plugins for holding posts in the buddypress activity stream for moderation before the post appears in the stream after approval. Is there any way that such a plugin can be created?
Thanks
Hello everyone, I am current working on two different plugins, they both put icons into the admin bar and when you click them they show you your messages and friends request.
They work perfecetly as long as I am on someone’s buddypress profile, if I am just on the homepage of my site, its like the components it needs to check for new messages dont load and I cannot for the life of me figure out how to get the components to load on every page.
I’ve noticed other plugins are doing direct mysql queries to the buddypress tables instead of using the built in buddy press functions, is that the only way top access buddypress content site wide?
Thanks for your help!