Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 3,826 through 3,850 (of 69,150 total)
  • Author
    Search Results
  • #310283
    soopablogga
    Participant

    This question is basically impossible to answer without lots of other information. If your theme has a separate notification count code from the default one that shows up in the toolbar, you can rip that code out of the site and put it elsewhere — if not you’re going to have to learn to code it yourself or hire someone to do it for you.

    You could start with searching “how to add buddypress notifications to template”

    #310282
    stephenss
    Participant

    Hi Everyone,

    Need your help.

    How do I hide Admins from the search Members list on the frontend using BuddyPress?

    Regards
    Stephen

    #310280
    iamthewebb
    Participant

    Have you tried disabling other plugins and re-enabling one by one to see if any are interfering with this functionality?
    The basic troubleshooting section may be worth trying at the bottom of https://buddypress.org/support/topic/when-asking-for-support-2/ as a starter then some more info on your setup if this doesn’t help find the issue.

    #310278
    dakitica
    Participant

    wordpress version is 5.3.2
    buddypress version is 5.1.2

    Home Page


    Hello, I have a problem with Friend connections… when I send Friend Request it cannot be accepted. on my friends profile says that there is no friend requests. how can i solve that ?

    #310272
    AntonyC
    Participant

    UPDATE:: I tested this code on a BuddyPress installation I have and get the same results so not a buddyboss issue.

    #310270
    halpingregory
    Participant
    #310269
    halpingregory
    Participant
    visimedia
    Participant

    how to hide new topics n replies of bbpress in buddypress activity wall?
    I tried wb com plugin activity filter, it messed up with my other plugin from buddydev to show all community activity tab.
    can u help?

    #310267
    metalguy
    Participant

    I’m not a fan of having the WP bar on the front end. I have no issue adding the BuddyPress pages to the main menu, but my issue is then users lose the ability to see how many notifications they have on every page. Is there a way to move the notification bubble form the WP bar to the main menu? Or even show the amount of notifications the user has in a menu button? I’ve been searching for a while and cannot find a solution. Thanks in advance!

    #310261
    shanebp
    Moderator

    Try putting the code that sets $ic_filter_members_interest_id in bp-custom.php or in a separate plugin.

    And put it in a function that uses a BP hook.

    function set_ic_members_var() {
        //set your global var here
    }
    add_action( 'bp_ready', 'set_ic_members_var' );
    AntonyC
    Participant

    Hi,

    I’m running BuddyBoss/BuddyPress on WordPress 5.3.2

    I’d like to be able to filter my main BuddyPress members page using $_GET, from query variables passed in the URL.

    I’ve tried various ideas found on the web and the most up to date/promising way of doing this seems to be using bp_parse_args() via…

    add_filter( 'bp_after_has_members_parse_args', 'my_function' );

    Using this method works well except for the fact that I am unable to access my passed filter variables via $_GET …if I print the site url from within my function it returns wp-admin/ajax.php (or something like it) which I guess is why I can’t access the passed query variables. Any help with this would be greatly appreciated.

    Many thanks,

    Antony

    My code…

    function ic_members_filter( $retval ) {
    
        global $wpdb;
        
        global $ic_filter_members_interest_id;
    
        if( $ic_filter_members_interest_id &&  $ic_filter_members_interest_id>0 ){
     
            $prepared_statement = $wpdb->prepare( "SELECT user_id FROM ic_interests_data WHERE interest_id = %d AND (interest_value = 1 OR interest_value = 3)", $ic_filter_members_interest_id );
            $db_custom_ids = $wpdb->get_col( $prepared_statement );
            
    
            if ( $db_custom_ids ) { //!empty( $db_custom_ids )
                
                // convert the array to a csv string
                $retval['include'] =  implode(",", $db_custom_ids);  //$custom_ids_str = 'include=' . implode(",", $custom_ids);
            }
            else{
                
                // don't show any records
                $retval['include'] = array(0);
            }
    
        }else{
            // show all records
            $retval['include'] = '';
        }
     
        return $retval;
    }
    add_filter( 'bp_after_has_members_parse_args', 'ic_members_filter' );

    WHERE… $ic_filter_members_interest_id is a global that holds the interest_id via $_GET

    References…

    Using bp_parse_args() to filter BuddyPress template loops


    https://buddypress.trac.wordpress.org/browser/tags/2.2.1/src/bp-members/bp-members-template.php#L461

    #310246
    shanebp
    Moderator

    You don’t need the meta_query in your example.

    You can use one of these classes:
    buddypress\bp-core\classes\class-bp-user-query.php
    buddypress\bp-groups\classes\class-bp-group-member-query.php

    Using the former class is more verbose but maybe easier to follow at first:

    function group_members_counter() {
    
    	$args = array(
    		'group_id' 		=> 1,  // bp_get_group_id(), or pass in a group id
    		'exclude_admins_mods' 	=> false
    	);
    
    	$group_members_result = groups_get_group_members( $args );
    	$group_members_ids = array();
    
    	foreach(  $group_members_result['members'] as $member ) {
    		$group_members_ids[] = $member->ID;
    	}
    
    	echo 'group member ids: ' . implode(", ", $group_members_ids);
    
    	if ( ! empty ( $group_members_ids ) ) {
    
    		$args = array(
    			'include' 		=> $group_members_ids,
    			'meta_key'		=> 'action_one_total',
    			'meta_value'		=> '88',  
    			'populate_extras' 	=> false
    		);
    
    		$members = new BP_User_Query( $args );
    
    		echo '<br>matching meta count: ' . $members->total_users;
    
    	} else {
    		echo 'There are no group members.';
    
    	}
    
    }
    add_action( 'bp_ready', 'group_members_counter' );
    Carlen
    Participant

    I am trying to work something like this (below) to count all members in a group that have a certain meta value. I am sure there are several ways to do this, but i am new to php and buddypress and can see filter options for groups, or meta queries for all users, but have not figured out how to just run a query for members within a group. I am using this to display summary statistics in the group header.

    Any help would be greatly appreciated.

    $args = array(   
        'meta_query' => array(
            array(
              'key' => ‘action_one_total’,
              'value' => ’88’,
              'compare' => ‘=‘
            ),
        ),
        'count_total' => true
    );
    }
    $users = new WP_User_Query($args);
    
    print_r( $users->get_total() );		
    Tanmoy Biswas
    Participant

    I am using BuddyPress old version and WordPress version 5.3.2.
    But, Today, When I to updated BuddyPress Version:5.1.2 it gives me the following an error.

    Fatal error: Call to undefined function bp_is_user_inactive()

    Website Home page: https://wcblogs.com
    I am trying to fix these issues but still shows an error.

    Any suggestion?

    Thanks in advance

    #310240
    nithesh123
    Participant

    We want to use the buddypress existing username, email and phone number in the contact form 7. Can you please help us with the php code or short-codes of buddypress to add in the contact form 7?

    Eg: We have Email and Name fields in the contact form 7. We want that to be auto populated by their buddypress existing username and email. So that they don’t have to fill those fields again.

    algofae
    Participant

    Hello,

    I use the Buddypress registration form and I send the information concerning the registrations to Mailchim vie the MC4WP plugin.

    In my form, there is a date of birth field. However, it would appear that Buddypress adds backslashes in the date data that prevent the data from being sent to Mailchimp. For example, July 14, 1966 is recorded like this: 14\/07\/1966.

    Does anyone have any idea how I can fix this problem?

    Thank you in advance for your answers.

    Olivier Bonnet
    Algofaé

    #310223
    shanebp
    Moderator

    …deleted the related pages.

    Did you try creating pages with the slug that you want and then assigning them to BP components thru the wp-admin > Settings > Buddypress screens?

    #310222
    StudentFilmmakers
    Participant

    I wanted to test ultimate member so I deactivated BuddyPress and deleted the related pages. That was a mistake. The Ultimate member has issues I don’t want to deal with and it scares me that some basic things like deactivating registration are not there. So, my questions is how do I reinstall or get by buddypress pages like members page, log in and log out. I notice the logout is missing in the menu options.

    #310214
    nanomania
    Participant

    Good, I do not know if they have already found something but I can indicate some plugins, for the topic of member filters it has this plugin, but I think it does not perform conditional logic but uses all the fields you want for filters

    BP Profile Search

    then if you want conditional logic in the buddypress log fields you have this plugin

    Conditional Profile Fields for BuddyPress

    mvandemar
    Participant

    So following the steps in this post:

    change the email ‘from’ name (BuddyPress email templates)

    I used this code:

    add_action( 'bp_email', function( $email_type, $email_obj ) {
    	$email_obj->set_reply_to( "wordpress@mydomain.com", "My Site" );
    }, 10, 2 );
    
    add_action( 'bp_email', function( $email_type, $email_obj ) {
    	$email_obj->set_from( "wordpress@mydomain.com", "My Site" );
    }, 10, 2 );

    This partially worked. The signup emails going to the registrant now have the correct From address, but the notifications going to the admin have the WordPress administrator email listed as the From. I believe this is an issue because both the to and from are now a Gmail address, ie. To: myclient@gmail.com and From: myclient@gmail.com, and Gmail is kicking them back as untrusted. How do I get it to change the From email in all cases? Note that I am using the Buddyboss theme, if that makes a difference. Since the above code isn’t checking for the value of $email_type I would have thought it would just work on all of the emails, but the code is also 3 years old so guessing some things may have changed.

    Edit: Also, will Buddypress play well with plugins that allow you to send authenticated emails via SMTP or IMAP, such as WP Mail SMTP by WPForms? I feel that might alleviate the issues we are having but it would be good to know if there’s anything special we need to do before going down that road, thanks.

    -Michael

    #310203
    SirLouen
    Participant

    I can confirm that this is still an issue: if forcing wp_mail , buddypress mails can’t be HTML.

    Not sure why buddypress never switched to wp_mail which is the wp standard.

    #310198
    andrew55
    Participant

    I don’t think there was a BuddyPress update. Did you update any other plugins or themes recently? If so, I would try disabling these plugins and seeing if the issue still persists.

    #310197
    ahmedmusawir
    Participant

    Brajesh from BuddyDev.com was gracious enough help me with the following solutions verbatim:

    Hi Moose
    Thank you for the question.

    To answer your question.

    1. The front template for member type works, but it is not what you are expecting. The front template is used to show the contents inside the content area(below the member header where you see activity etc)

    2. If your goal is to completely control the profile page layout by member type, we can easily do it by forcing bp to load our own template if exists.

    add_filter( 'bp_template_hierarchy_members_single_item', function ( $templates ) {
    
    	$member_types = bp_get_member_type( bp_displayed_user_id(), false );
    	foreach ( $member_types as $member_type ) {
    		array_unshift( $templates, "members/single/index-type-{$member_type}.php" );
    	}
    
    	return $templates;
    } );

    Now, you can create buddypress/members/single/index-type-somemembertype.php and that will be the one used for whole page(You will need to include headers/footers etc manually here).

    Regards
    Brajesh

    jcfromkc
    Participant

    After 6 months of searching I finally got it!!!!

    Plugins > BuddyPress > BP-Core > BP-Core-Template.php

    Line 875

    'ending' => __( ' [&hellip;]', 'buddypress' ),

    Change […] to whatever you like, and then create a new blog post. The new blog post will include the updated text you just entered. Hells yeah!

Viewing 25 results - 3,826 through 3,850 (of 69,150 total)
Skip to toolbar