BuddyDev

Search

Types of Friends

Tagged: ,

  • Participant
    Level: Initiated
    Posts: 2
    David on #14517

    Hi, I’m looking to (a) redirect profile links to author blog page, (b) designate friends as Inner Circle, Friend or Acquaintance, and (c) show All or Specific categories on the author blog page, depending on friend “type.”

    So far, I have PHP for hiding specific categories:

    function exclude_category( $query ) {
    if ( $query->is_author() && $query->is_main_query() ) {
    $query->set( 'cat', -42' );
    }
    }
    add_action( 'pre_get_posts', 'exclude_category' );

    Any suggestions for how to build this up, using further PHP snippets or plugins?

    Thank you to the community.

  • Participant
    Level: Initiated
    Posts: 2
    David on #14518

    I’m wondering if the BuddyPress Profile Visibility plugin, or the Blog Categories for Groups plugin, can be modified to this use case?

  • Keymaster
    (BuddyDev Team)
    Posts: 24231
    Brajesh Singh on #14527

    Hi David,
    Welcome to BuddyDev.

    A. What is the criteria for redirecting users from profile to author page?
    1) A logged in user should be able to visit their own profile?
    2) Other visiting a user’s profile get redirected to author page for the displayed user?

    B. There is no such plugin available. You are looking for something like google circle. We do have a similar plugin but it is unfinished. We did it by creating custom tables for labelling Friend groups. The Labels are specific to Users.

    C. That will be very easy. If you can get the point B working, a simple pre_get_posts filter like above will do it.

    Also, BP profile Visibility or Blog Categories for Groups won’t be much help with this.

    Best Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 2
    David on #14534
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24231
    Brajesh Singh on #16190

    Hi David,
    I know it is too late for it but we have finally created and released the plugin.

    I hope it will be helpful for anyone else looking for the same.

    https://buddydev.com/plugins/buddycircles/

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved