Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25392
    Brajesh Singh on in reply to: [Resolved] Who’s Online widget adjustment #45021

    oops, you forgot to add a line at the bottom of that function.

    Here is it updated for you.

    
    add_filter( 'widget_title', 'enostalgia_show_online_members_only_widget_title', 10, 3 );
    function show_online_members_only_widget_title( $title, $settings, $id_base ) {
    
    	if ( 'Ποιος είναι συνδεδεμένος' == $title ) {
    		return '<p class="notranslate stay-in-touch" style="color: #b8860b;">WHO IS ONLINE IN OUR FORUM</p>';
    	}
    
    	return $title;
    }
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392
  • Keymaster
    (BuddyDev Team)
    Posts: 25392
    Brajesh Singh on in reply to: BuddyPress Friends Suggestions Pro #45019

    Hi Sam,
    Welcome to BuddyDev support.

    Please disable the Friends Suggestions Pro temporarily and check if that speeds up friendship request.

    That will help us understand if it friendship suggestions plugin or something else. I don’t see any specific reason for friendship suggestions to cause this, so need to verify.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392

    Hi,
    Thank you for the question.

    I am not aware of any such integration currently.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392
    Brajesh Singh on in reply to: [Resolved] blog page template as forum page. #45007

    Thank you Victor.

  • Keymaster
    (BuddyDev Team)
    Posts: 25392
    Brajesh Singh on in reply to: [Resolved] Who’s Online widget adjustment #45006

    Hi,
    The filter ‘widget_title’ is dependent on plugin offering widget(some plugins may not offer it).

    Depending on which widget you are filtering, the issue is either the plugin not using widget_title filter or the title being different(or the plugin offering the filter but escaping the title).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392

    Hi Andreas,
    Welcome to BuddyDev support forums.
    Thank you for the question.

    Please use the following code

    
    
        add_filter( 'bp_xprofile_member_type_field_allowed_types', function( $member_types ) {
    
    	    if ( ! bp_is_register_page() ) {
    		    return $member_types;
    	    }
    
            // we are on signup page.
            // do something with member types(add/remove).
    
            return $member_types;
        });
    

    You can adapt it as you need.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392
    Brajesh Singh on in reply to: [Resolved] Who’s Online widget adjustment #45003

    Hi,
    Thank you for the questions.

    1. You are doing it correctly.

    2. Please make sure to put the following code at the beginning of your function

    
    if ( ! is_user_logged_in() || empty( $args['type'] ) || $args['type'] !='online' ) {
    		return $args;
    	}
    

    That will make sure it does not affect your main loop.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392

    Hi Hussein,
    Thank you for purchasing circles.

    1. The issue with badge is you are using a huge min size(150px for image). There are 2 possible ways.
    a. Don’t set min width to a large number.
    b. or You can use flex-flow:row wrap; to make sure the badge goes to next line if they don’t fit. The second option will work but does not look good. I will suggest limiting the min size on directory and I can provide the code for justifying the images to center. Please let me know if it works for you.

    2. For the circle button, we can not add the button to the bottom meta. BuddyBoss plugin has the bottom meta part hardcoded with 2 of their actions and they do not provide any hook to add new.

    instead, Please add the following css to make the button a bit better(justifies center and limits the size)

    
    #members-list.item-list li .bp-members-list-hook .circle-button {
    	
    	text-align:center;
    }
    #members-list.item-list li .bp-members-list-hook .circle-button a {
    	
    	display:inline-block !important;
    	
    }
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392

    Hi Torben,
    Thank you for the question.

    Please contact BuddyBoss about this as they are in better position to assist you.
    Currently, we provide limited support for BuddyBoss where the scope is limited to compatibility with our advertised plugins.

    Regards
    Brajesh