BuddyDev

Search

badges – compatiblity with buddyboss 2.0 – first message in discussion

  • Participant
    Level: Master
    Posts: 152
    טליה שוורץ on #45129

    the single topic is not compatible with buddyboss 2.0
    in continue with this topic:
    https://buddydev.com/support/forums/topic/badges-can-be-displayd-in-the-same-line-with-name/

    the badges now appears twice
    see my image here:
    https://drive.google.com/file/d/1wVVOqwc-WAbB4L_lJsnTR_uhQKdb_VDc/view?usp=sharing

    i do use the custom CSS above.
    without it the badges is displayed 3 times as here:
    https://drive.google.com/file/d/1J6r5AasZJ-DHR-7soJGyV7_k8i6pICnL/view?usp=sharing

    i fixed it with this CSS:
    .bp-user-badges-badge-list {
    display: none;
    }
    and if someone is intersted to display the badge in same line with name:
    .item-meta .bp-user-badges-badge-list {
    display: inline;
    padding: 10px;
    }

    *****************

    only thing remain and i need your help with please –
    the badge doesnt disalyed in the main topic (first message in a discussion)
    https://drive.google.com/file/d/12_FbIhSpldX-ptVSVkY67co3cQ7DWlIU/view?usp=sharing

    i assume it baecause the buddyboss removed the profile avatar and information for main topic message?
    dont get why id they do that…
    how can we fix that so the badge (also dont mind all the info – avatar and name) to be displayed?
    this is important to me please help me with that?

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #45146

    Hi,
    Thank you for creating this topic and sharing the details.

    I will have the update within next 24 hours with a solution.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 152
    טליה שוורץ on #45156

    thanks for responding , i am waiting for your help

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #45176

    Hi,
    Thank you for the patience.

    Please add the following code too

    
    add_filter( 'bbp_get_topic_author_link', function ( $link , $args) {
    
    	if( isset( $args['type']) && 'name' != $args['type']) {
    		return $link;
    	}
    
    	if ( bbp_is_single_topic() && function_exists( 'bp_user_badges_get_user_badges_html' ) ) {
    		$link = $link . bp_user_badges_get_user_badges_html( bbp_get_topic_author_id() );
    	}
    
    	return $link;
    }, 10, 2 );
    

    That should show the badge in the main topic.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 152
    טליה שוורץ on #45183

    thanks, that look great.
    what should be the link “behind” the badge?
    now it has the link of the discussion
    means – when clicking on the bagde – it takes me to the same discussion.. isn’t that wierd?
    please your help with that

  • Participant
    Level: Master
    Posts: 152
    טליה שוורץ on #45184
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #45190

    Hi,
    Thank you for the replies.

    1. The link takes to the link you set while creating/editing badge in the User->Badges screen.
    2. I checked, It is not linking to discussion. It is not linking to anything. Since the link is not pointing to here, It is leading to current document/page opened.

    Do you want the link on the badges to take somewhere or do you want to disable the link completely? Please let me know and I will assist.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 152
    טליה שוורץ on #45280

    ok i set the link inside the badges settings works great, but can the lnk be open in new window?
    secondly
    one more issue,
    please see this image : the badge is over the message icon inside the members directory:
    (buddyboss theme new 2.0 )
    https://drive.google.com/file/d/1bEroS9O-1-Z4pbQcMHhkJVRLFYpw-M7l/view?usp=sharing

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #45303

    Hi,
    Please allow us to check on Monday.

    are you using any custom css for badges? If yes, Please share the same.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 152
    טליה שוורץ on #45313
    This reply has been marked as private.

You must be logged in to reply to this topic.

This topic is: not resolved