Search Results for 'buddypress'
-
Search Results
-
Hey, so i am trying to add a filter in the members search to only show the profiles that have a certain role in an Xprofile field, doing some research i came across the next code
if ( !defined( 'ABSPATH' ) ) exit; class BP_Loop_Filters { /** * Constructor */ public function __construct() { $this->setup_actions(); } private function setup_actions() { add_action( 'bp_members_directory_order_options', array( $this, 'random_order' ) ); if( bp_is_active( 'groups' ) ) add_action( 'bp_groups_directory_order_options', array( $this, 'random_order' ) ); if( is_multisite() && bp_is_active( 'blogs' ) ) add_action( 'bp_blogs_directory_order_options', array( $this, 'random_order' ) ); } public function random_order() { ?> <option value="random"><?php _e( 'Random', 'buddypress' ); ?></option> <?php } } function bp_loop_filters() { return new BP_Loop_Filters(); } add_action( 'bp_include', 'bp_loop_filters' );i tried adjusting it to call the Xprofile fields i want but it caused a complete error on the website, any help?
Hi,
here is the my code. tab is created,
but if user not member this private group redirect to wp-login page. how to open everyone this tab?function custom_members_tab() {
if ( bp_is_groups_component() && bp_is_single_item() ) {
global $bp;
$group_link = bp_get_group_permalink( $bp->groups->current_group );
$tab_args = array(
‘name’ => esc_html__( ‘destination’, ‘default’ ),
‘slug’ => ‘destination-members’,
‘screen_function’ => ‘destination_members_screen’,
‘position’ => 60,
‘parent_url’ => $group_link,
‘parent_slug’ => $bp->groups->current_group->slug,
‘default_subnav_slug’ => ‘destination-members’,
‘item_css_id’ => ‘destination-members’,
‘access’ => ‘anyone’,
‘show_tab’ => ‘anyone’,
‘show_for_displayed_user’ => true
);
bp_core_new_subnav_item( $tab_args, ‘groups’ );
}
}
add_action( ‘bp_setup_nav’, ‘custom_members_tab’ );function destination_members_screen() {
add_action( ‘bp_template_content’, ‘custom_group_tab_content’ );
bp_core_load_template( ‘buddypress/members/single/plugins’ );
}
function custom_group_tab_content() {
echo “show non group members, guests, everyone”
}I read this ticket, but I couldn’t understand how to use it.
https://buddypress.trac.wordpress.org/ticket/4785Topic: buddypress groups
Hello!
I was organizing roles for my admins, i want them to be able to delete activity and public group posts. However currently it includes that they can view/delete activities from private groups even if theyre not apart of such groups. How can i make it so that their admin role is only restricted to public activities/groups? This is really important for my site, i appreciate your help. im using the user role editor by vladimir. Perhaps theres another plugin i can use or css code?
thank youHi, is it possible to include custom fields in search functionality?, so when searching for a keyword it will also look into a custom fields value that are attached to a page/post?
Hello,
a question that noone has an asnwer.
A buddypress user, with a multivendor plugin on woocommerce, create a new product for his/her shop and it is inserted in the shop but, automatically, posted in his activity. How is possible not to show it?
Thank you very much,
Giuseppe
Hi,
WordPress Version 5.9.2
Theme: MagicVersion: 1.10.0 By Bdaia
Website: miComunidad.comWhen I install the BuddyPress.10.2.0 I get these errors:
WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_notifications' doesn't exist] SELECT COUNT(*) FROM wp_wkkr_bp_notifications n WHERE user_id IN (1) AND component_name IN ('xprofile','friends','messages','activity','groups','members') AND is_new = 1 WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_messages_recipients' doesn't exist] SELECT SUM(unread_count) FROM wp_wkkr_bp_messages_recipients WHERE user_id = 1 AND is_deleted = 0 AND sender_only = 0 WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_friends' doesn't exist] SELECT id FROM wp_wkkr_bp_friends WHERE (initiator_user_id = 1 OR friend_user_id = 1) ORDER BY date_created DESC WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_invitations' doesn't exist] SELECT DISTINCT i.item_id FROM wp_wkkr_bp_invitations i WHERE user_id IN (1) AND class IN ('bp_groups_invitation_manager') AND type = 'invite' AND invite_sent = 1 AND accepted = 0 WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_groups' doesn't exist] SELECT DISTINCT g.id FROM wp_wkkr_bp_groups g WHERE g.id IN (0) ORDER BY g.date_created DESC WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_groups' doesn't exist] SELECT COUNT(DISTINCT g.id) FROM wp_wkkr_bp_groups g WHERE g.id IN (0) WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_notifications' doesn't exist] SELECT id, user_id, item_id, secondary_item_id, component_name, component_action, date_notified, is_new, COUNT(id) as total_count FROM wp_wkkr_bp_notifications n WHERE user_id IN (1) AND component_name IN ('xprofile','friends','messages','activity','groups','members') AND is_new = 1 GROUP BY user_id, component_name, component_action ORDER BY date_notified descHow do I create these database tables? Please help?
Thanks,
Carlos
URGENT
We’re having issues with Buddypress plugin with Memberpress, today I was able to receive a handful of emails from users/members that their passwords were changed but they obviously did not do so.
Can anyone please help?
We’re currently using these two plugins on our development site and this is so bad. I just deactivate the plugins Buddypress but not Memberpress, can anyone help, please. URGENT
Topic: Buddypress email in spam
Hello
I’m sending my email with post SMTP plugin.
T tryed to use different smtp configurations :
– i used my host smtp settings (Hostinger) = buddypress emails in spam folder of the users
– i used sendinblue transactionnal stmp settings (i have a paid account) = buddypress emails in spam folder of the users.Does someone have a solution to solve this problem ?
Thanks.
Fabien
Hi there,
I need to create an xProfile multi-select field that maps to the tags in use on the site. I know how to fetch the tags, but I am not sure how to create and configure the appropriate field type via code.
//Fetching tags for more responsiveness $tags = get_tags( array( 'orderby' => 'name', 'hide_empty' => true, ) ); $tag_field_values = array(); foreach ( $tags as $tag ) { $tag_field_values[ $tag->name ] = $tag->name; }Which functions / actions would I then use to create the BuddyPress profile field using the
$tag_field_valuesvariable as the field’s select list?Does anybody have a worked example I can follow?
What’s the REST API endpoint to get activity with comments, Or what’s the endpoint to get comments?
I’m using this endpoint getting the last 10 activity but no comments are associated
https://example.com/wp-json/buddypress/v1/activity
I’m using the latest WordPress and buddyPress version and have no problems, everything works fine,
I can not share link to my company website for NDA contract reasons
thanks