👻 Halloween Treat: Our biggest-ever 25% OFF memberships — use SPOOKYSOCIAL before Nov 1! 🎃

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25197

    Hi Jan,
    I am sorry about this.
    There are two issues:-
    1. I do not understand the requirement using tags. Are these tags, post tags?

    2. The posting to activity for simple posts are governed by the Blog Tracking settings. We can not do much there. It is either all or none. You can see it in your BuddyPress Settings-> Components screen.

    I am sorry about that but I may not be able to help much here. It is either all enabled or none.

  • Keymaster
    (BuddyDev Team)
    Posts: 25197
    Brajesh Singh on in reply to: Buddypress – Hiding or removing the username #3531

    Hi Tina,
    Welcome to BuddyDev.

    I may not have understood your requirement completely, but here is what you can do. Please put the following code in bp-custom.php

    1. Change @ name to display name for logged in/displayed user

    
    
    function buddydev_show_fullname_for_displayed_user( $username ) {
    	return bp_get_displayed_user_fullname();
    }
    add_filter( 'bp_get_displayed_user_username', 'buddydev_show_fullname_for_displayed_user' );
    
    function buddydev_show_fullname_for_loggedin_user( $username ) {
    	return bp_loggedin_user_fullname();
    }
    add_filter( 'bp_get_loggedin_user_username', 'buddydev_show_fullname_for_loggedin_user' );
    
    

    2. Change the label username to User Login

    
    //this is a bad idea, use translation instead
    function buddydev_change_login_labels( $translated_text, $text, $domain ) {
    	
    	if ( $text =='Username' ) {
    		$translated_text = 'User Login';
    	}
    	
    	return $translated_text;
    }
    add_filter( 'gettext', 'buddydev_change_login_labels', 20, 3 );
    
    

    For your 3rd step, I believe that is not required. Any number of people can have same name and will use it for display name. So, I don’t think that is a good idea.

    Hope that helps.
    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25197

    Hi Dandy,
    Thank you for the details.

    There are no available solutions for this and you will need to add it manually. I will suggest creating a map from keyword to image and then using some image hover popup script to display that.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25197
    Brajesh Singh on in reply to: Change Who's Online to Friend only #3529

    Hi Dandy,
    Please put this code in your bp-custom.php.

    
    function buddydev_show_online_friends_only( $args ) {
    	
    	if ( ! is_user_logged_in() || empty( $args['type'] ) || $args['type'] !='online' ) {
    		return $args;
    	}
    	
    	$friend_ids = friends_get_friend_user_ids( bp_loggedin_user_id() );
    	
    	if ( empty( $friend_ids ) ) {
    		$friend_ids = array( 0, 0 );//invalid
    	}
    	
    	$args['include'] = $friend_ids;
    	
    	return $args;
    }
    add_filter( 'bp_after_has_members_parse_args', 'buddydev_show_online_friends_only' );
    

    It will list only friends and if a user has no friends, they won’t see any online user.

    Hope that helps.
    regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25197

    Hi Andrew,
    I believe it is not the above code but the validation that is failing. The member type plugin uses lower case values for the names.

    Try changing this

    
     $_POST['field_1140'] = $_POST['field_960'];
    

    to

    
     $_POST['field_1140'] = strtolower( $_POST['field_960'] );
    

    Most probably that should do it. Otherwise, I will advise to check for the values and see if they are same as the key of the member type.

  • Keymaster
    (BuddyDev Team)
    Posts: 25197
    Brajesh Singh on in reply to: CDN support in mediapress #3522

    Hi Simon,
    Any plugin that supports CDN upload for WordPress should work out of the box with MediaPress. Please try any of these that works for normal media and let me know if that works for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25197

    Hi Jemma,
    Are you sure that you are using the code above for generating the uploader?

    I tried it and for me, It is not listing the galleries. It works if the $gallery_id is a valid gallery.

  • Keymaster
    (BuddyDev Team)
    Posts: 25197

    You may upload it somewhere and link here or you may send me it via mail at brajesh@buddydev.com

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25197
  • Keymaster
    (BuddyDev Team)
    Posts: 25197

    Hi Ada,
    Thank you. Finally, I understood it.

    I will be posting code a little late today.

    Thank you
    Brajesh