BuddyDev

Search

Replies

  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Overriding templates #30058

    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
    Carsten

  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Block Users plugin #30057

    Hi 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
    Carsten

  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Block Users plugin #30025

    Hi Brajesh, sounds great, options for both Recent Visitors and Members Directory would be much appreciated, thank you!

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Block Users plugin #30023

    Thanks Brajesh

  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Block Users plugin #30021

    Hi 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

  • Participant
    Level: Yogi
    Posts: 1112
    This reply has been marked as private.
  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Issues after update #29982
    This reply has been marked as private.
  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Issues after update #29978
    This reply has been marked as private.
  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Issues after update #29977
    This reply has been marked as private.
  • Participant
    Level: Yogi
    Posts: 1112
    calu on in reply to: [Resolved] Issues after update #29974
    This reply has been marked as private.