BuddyDev

Search

[Resolved] Recent Visitors For BuddyPress Profile -> Tab in Profile

  • Participant
    Level: Enlightened
    Posts: 24
    prgbr on #29131

    Hi,

    Tab in Profile is only visible to profile owner.
    How to show this tab also to visitors of a profile too?

    Regards

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #29175

    Hi,
    I am planning to add this as an option in the recent visitors setting in next update. Most probably early next week. You can turn it on/off(will be off by default).

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 24
    prgbr on #29228
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #29232
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #29286

    Hi,
    Please upgrade to 1.6.1 and use the following code

    
    /**
     * Show for other logged users.
     */
    add_filter( 'rv_show_visitors_component', function () {
    	return is_user_logged_in();
    } );
    

    That will enable visitors component on other user’s profile too.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 24
    prgbr on #29858
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #29891
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 24
    prgbr on #29900
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #29907

    We have updated the plugin and the above suggested filter will work properly.

    For older version, if you can not upgrade, Please change this line

    
    $show = ( is_super_admin()|| bp_is_my_profile() ) && visitor_is_enabled_for_user( bp_displayed_user_id() );//( $is_enabled || is_super_admin() );
    
    

    to

    
    $show = is_user_logged_in();
    

    in visitors-component.php around line 88.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 24
    prgbr on #30620
    This reply has been marked as private.

The topic ‘ [Resolved] Recent Visitors For BuddyPress Profile -> Tab in Profile’ is closed to new replies.

This topic is: resolved