BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 10
    Andreas Englowski on #19912

    Wow, that was blazing fast, many many many thanks!

    Yes the problem was because of the space, all is working now!

    Your the man, thanks you so much <3

  • Participant
    Level: Initiated
    Posts: 10
    Andreas Englowski on #19908
    This reply has been marked as private.
  • Participant
    Level: Initiated
    Posts: 10
    Andreas Englowski on #17848

    Hey hey, sorry for late reply, was on a business trip.

    1) Many thanks, works great!

    2) no, its somehow by default. did install invite anyone and set it to invite friends only but you can still search all members. i am bit confused cause i did deactive all bp plugins and stuff but its still the same, so i dont know how thats possible and what is causing this. do you have a idea? i am quite clueless…

    3) Please provide paypal email for donation <3 <3 <3

  • Participant
    Level: Initiated
    Posts: 10
    Andreas Englowski on #17715

    oh and one more question (sorry for not opening a new topic): is it possible to remove the “All Members” from the groups->send invites tab? i read that normally you can only invite friends to groups (which is what a want) but in my buddypress all users have the possible to invite all members… see screenshot:

    https://www.dropbox.com/s/jf4hwdqdssepji2/screen.png?dl=0

    after all those questioning – and i am sorry i know it got quite offtopic and you still provide fast and excellent support: is it possible to buy you a pizza or something? i would love to donate a little money via paypal if thats possible =)

  • Participant
    Level: Initiated
    Posts: 10
    Andreas Englowski on #17713

    Many many thanks Brajesh! So i am gonna wait for 3.3 =)

    One (hopefully) last question: i am refering to https://buddydev.com/exclude-users-from-members-directory-on-a-buddypress-based-social-network/ to remove all customers from the friend list which is working fine on the members directory. But with the code below the members are also hidden from the friendlist on the userprofile (did seperate the if statements for testing). Do you have a idea?

    
    
    add_action('bp_ajax_querystring','bpdev_exclude_users',20,2);
    function bpdev_exclude_users($qs=false,$object=false){
        //list of users to exclude
         
        if($object!='members')//hide for members only
            return $qs;
            
        $excluded_user=join(',',bpdev_get_customer_user_ids());//comma separated ids of users whom you want to exclude
      
        
        $args=wp_parse_args($qs);
        
        //check if we are are listing friends?, do not exclude in this case
     	if(!empty($args['user_id']))
     	return $qs;
    	
        //check if we are searching?, do not exclude in this case
     	if(!empty($args['search_terms']))
     	return $qs;
    	
    	
        
        if(!empty($args['exclude']))
            $args['exclude']=$args['exclude'].','.$excluded_user;
        else 
            $args['exclude']=$excluded_user;
          
        $qs=build_query($args);
       
       
       return $qs;
        
    }
    
    function bpdev_get_customer_user_ids(){
      
        $customers= get_users( array( 'role' => 'customer', 'fields' => 'ID' ) );
      
       return $customers;
    }
    
    
  • Participant
    Level: Initiated
    Posts: 10
    Andreas Englowski on #17674

    Update: Did find this one but seems to do not work anymore.
    https://buddydev.com/changing-default-subnav-buddypress-component/#comment-1976527

    Where do i have the code snippet, to my themes functions.php? 🙂

  • Participant
    Level: Initiated
    Posts: 10
    Andreas Englowski on #17673

    Hi Brajesh, no worries your support is blazing fast, many thanks for that!!

    1. i did deactivate all third party plugins which add a tab to buddypress profile and its still not working. but its okay since most important to me was to reposition and rename my additional tabs and that is working great so all good!

    2. works 🙂

    3. One last question: i have made a additional subnav to the profile tab which i like to replace with the default “public” subnav for some user roles (vendors). so i did deactivate the “public” subnav for those users but now i get an error because the default subnav is missing. is it possible to have default subnav items based on user role? i know thats a bit tricky but maybe you have a idea 🙂

    Many thanks,
    Andi

  • Participant
    Level: Initiated
    Posts: 10
    Andreas Englowski on #17651

    Hi, many thanks for your fast reply, thats awesome!

    1. Did try different values, still nothing changing. I did also try to create all tabs in the backend and did only change the number for position – but still nothing is changing. Hope you can help 🙂

    2. That worked just great, thank you. One more question: need to rename the default profile tab aswell, can you tell me which slug to use here? Please see image:
    https://www.dropbox.com/s/smsopip7tht3rwn/screen2.png?dl=0

    Thanks in advance,
    Andi