Search Results for 'buddypress'
-
Search Results
-
How to get the BP profile pic to be used as the wordpress avatar
Everything is set up on my website, but whenever someone registers, they do not receive the activation email required for validating their account. This is a big security issue that I have yet to find a solution to. I have seen the Auto Authenticate Plugin, which again, is a huge security issue. My WP Version is 5.8, my BuddyPress Version is 9.0.0. My website is https://buckeyestategaming.com
Any assistance with this issue would be greatly appreciated.
I have a code / plugin which derivates a list of UserIDs by some logic which I want to display in a separate page in a sort of members loop.
I tried similarly to this code, setting the args and than loading the template, it simply does not display the members:
$members_args = array( 'include' => array(list of user ids here ... 1, 13, 25, 126, ...), 'exclude' => array(bp_loggedin_user_id()), 'per_page' => $max_members, 'max' => $max_members, 'populate_extras' => true, 'search_terms' => false, ); echo '<div id="buddypress" class="buddypress-wrap bp-dir-hori-nav bp-shortcode-wrap">'; echo '<div class="members">'; echo '<div class="subnav-filters filters no-ajax" id="subnav-filters">'; bp_get_template_part( 'common/filters/grid-filters' ); echo '</div>'; echo '<div class="screen-content members-directory-content">'; echo '<div id="members-dir-list" class="members dir-list">'; buddypress()->current_member_type = "my separate loop"; buddypress()->current_component = 'members'; buddypress()->is_directory = true; // Get a BuddyPress members-loop template part for display in a theme. bp_get_template_part( 'members/members-loop' ); echo '</div>'; echo '</div>'; echo '</div>';I also tried instead to modify the query args like so instead of setting $members_args, but this does not work neither:
$include = array(1, 13, 25, 126, ...); # list of user IDs to show add_filter ('bp_ajax_querystring', 'modify_directory', 20, 2); function modify_directory ($query_string, $object) { if ($object != 'members') return $query_string; if (!empty ($query_string)) $query_string .= '&'; $query_string .= 'include='. implode(',', $include).'&exclude='.bp_loggedin_user_id(); return $query_string; }Any idea?
Hello Guys,
I am creating a post subscription. When any user subscribe to any post I want to send them notifications about comments and post activities. I am adding custom notifications to buddypress. Notifications are adding but in frontend the title of notification is not showing. I checked many forums but did not find any solution.
Below is my code:
public function __construct() { add_filter( 'bp_notifications_get_registered_components', array($this,'custom_filter_notifications_get_registered_components'),20 ); add_filter( 'bp_notifications_get_notifications_for_user', array($this,'custom_format_buddypress_notifications'), 10, 7 ); add_action( 'wp_insert_comment', array($this,'bp_custom_add_notification'), 99, 2 ); } For custom component public function 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; } For notification formatting public function custom_format_buddypress_notifications( $content, $item_id, $secondary_item_id, $total_items, $format = 'string', $action, $component ) { if ( 'custom_action' === $action ){ $comment = get_comment( $item_id ); $custom_title = $comment->comment_author . ' commented on the post ' . get_the_title( $comment->comment_post_ID ); $custom_link = get_comment_link( $comment ); $custom_text = $comment->comment_author . ' commented on your post ' . get_the_title( $comment->comment_post_ID ); // WordPress Toolbar if ( 'string' === $format ) { $data_to_return = apply_filters_ref_array( '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 { $data_to_return = apply_filters_ref_array( 'custom_filter', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $item_id, $secondary_item_id ); } return $data_to_return; } else{ return $action; } } For adding notification public function bp_custom_add_notification( $comment_id, $comment_object ) { $subscribed_user = get_post_meta( $comment_object->comment_post_ID , 'subscribed_user',true ); if(!empty($subscribed_user) && is_array($subscribed_user)){ for ($i=0; $i < count($subscribed_user); $i++) { if ( bp_is_active( 'notifications' ) ) { bp_notifications_add_notification( array( 'user_id' => $subscribed_user[$i], 'item_id' => $comment_id, 'component_name' => 'custom', 'component_action' => 'custom_action', 'date_notified' => bp_core_current_time(), 'is_new' => 1, ) ); } } } }Please suggest best possible way to fix this issue.
Thank You
installed gd library php in xampp
but not working
Hello,
I have WordPress 5.7 and buddypress 8.0. When I upgrade to buddypress 9.0. A widget location (“BuddyPress member home page”) that I was using for render some html code in buddypress profile has disappears.I tried upgrading WordPress in case the problem was related to the new widget manager. But the problem persists.
Any recommendations on how to get that widget location to appear again?
Good morning.
For several days I have a problem that consists in the possibility of extracting from the site I am creating the data entered by users in the registration / registration form, in which I have added several fields with the BuddyPress Xprofile Custom Field Types plugin.
I have tried several plugins and all of them only allow you to extract the base fields. I am wondering if the add fields plugin allows you to add other fields as base fields why do the plugins I have tried do not recognize these fields as base fields?
The creator of one of the plugins used told me that the additional fields do not end up in the database or are not considered as metadata because buddypress uses its own tables.
So how can I do to extract user data into a single csv or excel file?
It is strange that this function does not happen as a basic function of buddypress …The extraction plugins used are:
LH Buddypress Export Xprofile Data
LH Export Users to CSV
Import users and customers from CSV
WordPress Users & WooCommerce Customers Import Export (BASIC)I hope there will be some users who can help me.
Thank youHello. I get notified when a new member joins my site but not when an existing member cancels their membership. How can I get notified when that happens? I’m using WP version 5.8 and BuddyPress version 9.0.0. This is the link to my site https://romancingrarehearts.com/
Thank you.
RichTopic: Logging out to home page
Hi,
Upon clicking the Buddypress ‘log out’ I am taken to the WordPress login page but I want to go to the site’s home page. How can I do this?
Thanks
Topic: Hide member in list
Hello,
in the BuddyPress user list I would like all users to be hidden and everyone to be able to see only those users who have purchased a product (with WooCommerce) that the user who is browsing the list has purchased. How can I do this?
Thank you.BuddyPress 9.0
This is my scenario. I want only the user to input his/her username and email upon registration. Later he/she can update his/her profile once registered. My Problem is I cant see the other field group in the profile, which have all the needed fields, only the base field group is there.
I am following this documentation, https://codex.buddypress.org/getting-started/guides/modifying-the-registration-form/. Is there additional steps to do?
Hi Guys
I am having trouble with newly added buddypress member types not having access to members BUT they are able to view forums. (image3)
I manually assign people to this member type via the wordpress dashboard.
My members assigned to the 1st member type I set up can see the members of the newly created member type (image 4 & 5)
I am using paid membership pro for my membership and set up the parameters in paid membership pro via the wordpress dashboard (image 1 & 2)
It acts like the database is not being updated with the new member type
I am stumped can anyone help please. 🙂Topic: Registration Page
Hi,
I am using the theme OceanWP and Elementor. My problem is that even when I choose full width for my registration page (individual page setting), BuddyPress seems to be inserting a sidebar on the right. When I set the wide layout for the entire site (which I do not want) in the Customize-General Settings, the sidebar disappears. However, the text boxes become very wide and span almost the entire page and this looks ugly. I cannot access the registration page using elemetor unless I disconnect it from BuddyPress. But, even then I do not see any text boxes on the page. I believe this is so because BuddyPress dynamically puts in the text boxes when a user visits the page. How then can I reduce the width of the text boxes in the registration page (keeping only that page’s setting as full width and not for the whole site) and also format the registration page? I do have the BuddyBuilder plugin but it does not show the registration page.
Thanks