Thank you.
I see that the issue is with content. The problem is this section of code.if ( is_user_logged_in() && function_exists( 'bublock_get_button' ) && bp_is_user() && ! bp_is_my_profile() ) { $args = array( 'user_id' => bp_displayed_user_id(), 'button_class' => 'my-button-class' ); echo bublock_get_button( $args ); }
It should be
if ( is_user_logged_in() && function_exists( 'bublock_get_button' ) && bp_is_user() && ! bp_is_my_profile() ) { echo bublock_get_button( bp_displayed_user_id() ); }
Regards
BrajeshHi Carsten,
You are welcome.
I am glad that issue is resolved.Can you please tell me the question about like plugin?
Thank you
BrajeshHi Brajesh, sorry for not explaining clearly.
You helped med to hook the Like button to
bp_after_member_profile_content
hook.What was left was to place the
function carsten_print_like_button()
within the samespan class
I asked ChatGPT and it came up with the solution of calling the function
carsten_print_like_button(); // call the like button function
inside the span class and adding the function below.It’s working, and my question to you was if this was an inappropriate way to add the function, but all is good.
Regards
CarstenHi Carsten,
No problem.
yes, the code is in correct position and should work fine.Regards
Brajesh
The topic ‘ [Resolved] Block button does not respond.’ is closed to new replies.