Replies
Hi Brajesh, you wrote about overriding navs, that I can completely hide the navs, and in some cases override user sub nav.
Where can I see an overview of these templates, and is there some documentation on the process?
If I make a completely override to hide all navs, does this block for adding navs elsewhere on the page?
Regards
CarstenHi Brajesh, if I use this code as it is, the Block button is displayed on own profile as well, so I need some kind of denial to the statement, like the opposite to
if ( bp_is_my_profile() ) {}
?if ( function_exists( 'bublock_get_button' ) ) { echo bublock_get_button( $user_id ); }
2.
Notice: Undefined variable: user_id in /home/domain/public_html/wp-content/plugins/gp-premium/elements/class-hooks.php(180) : eval()’d code on line 4
I get this error because of the undefined $user_id, but to my understanding this a variable that should not be defined, would you please clarify about this?
This is how I added the code to the element:
<?php if ( function_exists( 'bublock_get_button' ) ) { echo bublock_get_button( $user_id ); } ?>
Regards
CarstenHi Brajesh, sounds great, options for both Recent Visitors and Members Directory would be much appreciated, thank you!
Regards
CarstenHi Brajesh, thanks for adding a solution for disabling the button.
About the wish for disabling the Block option in Members Directory, should I use CSS for that, or will there be a solution to this?
It might makes sense to me, to have the block button in the Recent Visitors list, but not in the Members Directory.
Apparently the class is the same for both Members Directory, and Recent Visitors list, should I use page id to hide the relevant button on the relevant page?
Regards
Carsten- calu on May 18, 2020 at 7:38 pm in reply to: [Resolved] Can users block another user with BuddyPress Moderation Tools? #29990This reply has been marked as private.
- This reply has been marked as private.
- This reply has been marked as private.
- This reply has been marked as private.
- This reply has been marked as private.