BuddyDev

Search

[Resolved] Buddycircles message button broken on Buddyboss

  • Participant
    Level: Enlightened
    Posts: 30
    Bernard Michaels on #35715

    Hey Buddydev team,

    I hope you are all well. I’ve found that the message icon button which is on the listed members in the users circles doesn’t appear to work. When you click on it nothing happens. This is happening on Buddyboss.

    Thanks in advance,

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2935
    Ravi on #35980

    Hello Bernard,

    Sorry for the delayed reply. Please use the following code and let me know if it works or not:

    
    
    /**
     * Get member id.
     *
     * @param int $id Member id.
     *
     * @return int
     */
    function buddydev_circle_get_member_id( $id ) {
    
    	if ( bcircles_is_circles_page() ) {
    		return bp_get_member_user_id();
    	}
    
    	return $id;
    }
    
    /**
     * Apply filter before circle loop.
     */
    function buddydev_before_circle_loop() {
    	add_filter( 'bp_displayed_user_id', 'buddydev_circle_get_member_id', 11 );
    }
    
    /**
     * Remove filter after circle loop.
     */
    function buddydev_after_circle_loop() {
    	remove_filter( 'bp_displayed_user_id', 'buddydev_circle_get_member_id' );
    }
    
    add_action( 'before_circle_users_loop', 'buddydev_before_circle_loop' );
    add_action( 'after_circle_users_loop', 'buddydev_after_circle_loop' );
    
    

    Regards
    Ravi

  • Participant
    Level: Enlightened
    Posts: 30
    Bernard Michaels on #36001

    Hi Ravi,

    Thank you for your message. This fix appears to work on Buddyboss, thank you.

    Warm regards,

    Bernard

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2935
    Ravi on #36002

    Hello Bernard,

    Thank you for the acknowledgement. I am glad to help you.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 1
    Philip higgins on #39957

    I am experiencing this same issue. Has this been resolved without using custom code? I do not know how to edit the code. Please advise.

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

    Hi Philip,
    Thank you for using the plugin. I am sorry for the issue. We will add the above code to the plugin and it will run automatically on BuddyBoss sites.

    Please allow us 24 hours to push the release.

    Regards
    Brajesh

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2935
    Ravi on #39973

    Hello Philip,

    Sorry for the delayed reply. We added support for the BuddyBoss. Please download the latest version of the plugin and give it a shot.

    Regards
    Ravi

You must be logged in to reply to this topic.

This topic is: resolved