Search Results for 'buddypress'
-
Search Results
-
We are migrating to Buddypress from an in house software. We will be having 1600 groups. All these groups would have avatar images and profile photos. While we are able to create the groups through a program, we could not figure out a way to automatically upload the avatar and profile photo. Any help would be appreciated.
HI,
When i search for a member in a group (/groups/grupo/members/), occurs this error:
[Unknown column ‘u.user_id’ in ‘IN/ALL/ANY subquery’]
SELECT u.ID as id FROM adwp_users u WHERE 1=1 AND u.ID IN (27412,304,509,6625) AND u.user_id IN ( SELECT ID FROM adwp_users WHERE ( display_name LIKE ‘%ar%’ OR user_login LIKE ‘%ar%’ ) ) ORDER BY FIELD(u.id,27412,304,509,6625) LIMIT 0, 20
[Unknown column ‘u.user_id’ in ‘IN/ALL/ANY subquery’]
SELECT COUNT(u.ID) FROM adwp_users u WHERE 1=1 AND u.ID IN (27412,304,509,6625) AND u.user_id IN ( SELECT ID FROM adwp_users WHERE ( display_name LIKE ‘%ar%’ OR user_login LIKE ‘%ar%’ ) )
In log we have “do_action(‘wp_ajax_bp_get_suggestions’), WP_Hook->do_action, WP_Hook->apply_filters, bp_ajax_get_suggestions, bp_core_get_suggestions, BP_Groups_Member_Suggestions->get_suggestions, BP_User_Query->__construct, BP_User_Query->do_user_ids_query”I check the SQL and changing the field name “… AND u.user_id IN ( SELECT ID FROM adwp_users …” by “… AND u.ID IN ( SELECT ID FROM adwp_users …” fix it.
So, in /plug-ins/buddypress/bp-core/classes/class-bp-user-query.php file, on line 346, changing:
$sql[‘where’][] = “u.{$this->uid_name} IN ( SELECT ID FROM {$wpdb->users} WHERE ” . bp_core_get_status_sql( ” ) . ” )”;
to:
$sql[‘where’][] = “u.ID IN ( SELECT ID FROM {$wpdb->users} WHERE ” . bp_core_get_status_sql( ” ) . ” )”;The message error is solved.
Could someone confirm and fixit in a new version?
I am using WP 4.9.7 and Buddypress 4.2.0.Tks
DouglasTopic: BuddyPress 4.2.0
BuddyPress 4.2.0 is now available: https://buddypress.org/2019/02/buddypress-4-2-0-maintenance-and-security-release/
ENGLISH:
Hello, I have a problem with my buddypress for sending message between two members. When I click on “Write a message” I switch to the parge to write a message but in the location “Send @UserName” the name of the recipient does not start automatically. It must be written manually. This poses me a problem.I wish that the recipient of the message is automatically put, that we do not have to write it each time.
Thanks for your help.
FRENCH:
Bonjour, j’ai un probleme avec mon buddypress pour l’envoi de message entre deux membres. Lorsque je clique sur “Rédiger un message” je bascule sur la parge afin d’ecrire un message mais dans l’emplacement “Envoyer @NomUtilisateur” le nom du destinataire ne se met pas automatiquement. Il faut l’ecrire manuellement. Cela me pose un probleme.Je souhaiterai que le destinataire du message se mette automatiquement, que l’on ne soit pas obligé de l’écrire à chaque fois.
Merci pour votre aide.
Hi!
I am using BuddyPress with “SuitePlugins – Advanced XProfile Fields for BuddyPress”, and I created some custom fields. On the registration page I want to check if ex. “idofcertificate” custom field data exist in the database. If exist then throw an error, to only one account to be created with this “idofcertificate”. There is any resolution to do this?
Thank you very much!
Hello,
I just downloaded Buddypress and the Youzer plugin. Whenever I upload images to my wall (.PNG), it changes to .JPG, and transparency is lost.
Is this issue being caused by Buddypress, or a different plugin?A general question, not related to a live site at this point, just something I’m playing with.
With a fresh WordPress + BuddyPress install, under Users > Profile Fields, I’ve created a new field called Last Name.
New registrations are capturing the data correctly and it is stored in wp_bp_xprofile_data.
Is there any easy way of also getting that value into wp_usermeta.last_name as well?
Thanks in advance.
Topic: Add notification
Hello! How I can add a notifications like in admin bar to my site menu. (I don’t use buddypress user widget and users don’t have access to the admin panel. My site menu use like user admin panel).
Hi. I noticed that the three options which BuddyPress offers in regards to field visibility is “Only Me”, “Friends Only”, and “Everyone”. If someone sets their preference of a field to “Only Me” or “Friends Only”, is it still possible for the admin to see it? If not, is there a method that I can implement to see it as an admin but to hide it to other members? Also, can I put this field into an additional column on the Users Admin Panel? Thanks for any assistance which you can provide me.
I need some custom notifications in my website. I have my code bellow, all work correctly, notification is added into database and displayed at the recipient, but without notification text

How i can fix this?
Thank youfunction custom_filter_notifications_get_registered_components( $component_names = array() ) { // Force $component_names to be an array if ( ! is_array( $component_names ) ) { $component_names = array(); } // Add 'custom' component to registered components array array_push( $component_names, 'custom' ); // Return component's with 'custom' appended return $component_names; } add_filter( 'bp_notifications_get_registered_components', 'custom_filter_notifications_get_registered_components' ); function custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { // New custom notifications if ( 'custom_action' === $action ) { $custom_title = "You have new notification"; $custom_link = "domain.com"; $custom_text = "You have new notification"; // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( 'custom_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link ); // Deprecated BuddyBar } else { $return = apply_filters( 'custom_filter', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $custom_text, $custom_title ); } return $return; } } add_filter( 'bp_notifications_get_notifications_for_user', 'custom_format_buddypress_notifications', 10, 5 ); function bp_custom_add_notification( $receiver_user_id, $initiator ) { //$post = get_post( $comment_object->comment_post_ID ); //$author_id = $post->post_author; bp_notifications_add_notification( array( 'user_id' => $receiver_user_id, 'item_id' => $initiator, 'secondary_item_id' => $initiator, 'component_name' => 'custom', 'component_action' => 'custom_action', 'date_notified' => bp_core_current_time(), 'is_new' => 1, ) ); } add_action( 'wp_insert_custom_notification', 'bp_custom_add_notification', 99, 2 );