Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 4,726 through 4,750 (of 73,986 total)
  • Author
    Search Results
  • soopablogga
    Participant

    The goal is to find and replace thing1 with thing2 in the wp_bp_activity “content” table. This exact code works when I use it to change the standard wp_ tables, but does not when trying to update the buddypress bp_ prefixed tables. What am I doing wrong here??

    global $wpdb, $bp;
    $wpdb->query(
        $wpdb->prepare(
            "UPDATE {$wpdb->bp_activity}
            SET content = replace(content, %s, %s)",
            'thing1',
            'thing2'
            )
    );
    #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.

    #310271
    patilkavya
    Participant

    Hi,

    We are a financial company and have a compliance obligation to record any electronic messaging by a certain set of our users. This also includes our Word Press sites and goes into comments, wall posts, etc as seen in BuddyPress but also other portions of WordPress.
    Can anyone help me to gather the data on a set rotation (probably daily) and then export it to a usable format. In theory we would like to find a way to pull whatever was posted and who posted it and have it exported and send all activities in email daily.

    Wordpress version – 5.2.5
    BuddyPress version – 5.1.2
    URL – https://nlgphptest.wpengine.com/

    Thank you

    #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!

    #310266
    lwadz88
    Participant

    Hello,

    I was wondering if there are any solutions for non-developers to create custom profile fields for the buddypress group. Basically I want to add custom fields so that every group that is created by users has them. I tried BP Group Extras, however this has way too much front end work to be useful for someone just wanting to use the website. I need to be able to present exactly the information I want at group creation and have it show up on the group home page.

    Thanks!

    #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() );		
    chickencurry
    Participant

    I want to display the users twitch stream in his or her profile. Instead of just showing the url to the link I want the stream to show up? Somebody knows how I can do this?

    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.

    #310215
    caseykiepe
    Participant

    Our business is looking at a range of online community solutions and we want to know how many people are familiar with BuddyPress (at a high level) and can work on it to successfully create custom community solutions. Obviously there is many people that work with WordPress, but what about BuddyPress more specifically? Will it be easy to find and hire BuddyPress professionals?

    Thanks,
    Casey

    #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

Viewing 25 results - 4,726 through 4,750 (of 73,986 total)
Skip to toolbar