BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 23
    y2gabs on #26001

    That worked !!

    Thanks!

    J.

  • Participant
    Level: Enlightened
    Posts: 23
    y2gabs on #25958

    This is what I’ve tried so far:

    add_action( ‘Prevent_Tenant_From_Others_profile’, function() {
    if ( bp_is_user_profile() ) {
    $user_meta = get_userdata( bp_loggedin_user_id() );

    if ( in_array( ‘tenant’, $user_meta->roles ) ) {
    wp_redirect( home_url() );
    exit;
    }
    }
    }, 1 );

  • Participant
    Level: Enlightened
    Posts: 23
    y2gabs on #25475

    Thank you sir! How would I add a comma inbetween each ID when calling the variable if using your example above?

  • Participant
    Level: Enlightened
    Posts: 23
    y2gabs on #25474

    Oh no, my bad. I am not creating a custom loop, I’m creating a custom page template with a members loop inside of it. Basically each page template will be a loop filtered for a specific member type. Does that make sense?

  • Participant
    Level: Enlightened
    Posts: 23
    y2gabs on #25439

    Hi Brajesh! Thanks so much for your reply here! I actually don’t know where to start with an example using the bp_has_members hook in a loop. Are you able to provide me with a snippet that I can start with that includes filtering for a member type?

    Thanks again!

  • Participant
    Level: Enlightened
    Posts: 23
    y2gabs on #25437

    Hi Brajesh! thanks so much for your reply here. Would it be possible based on role instead? otherwise yes please post an example described above. Thanks so much!

  • Participant
    Level: Enlightened
    Posts: 23
    y2gabs on #25404

    Thanks very much for your reply! I’m having a tough time finding the best syntax implementation of what you describe above. Can you elaborate with an example. Thanks again!

  • Participant
    Level: Enlightened
    Posts: 23
    y2gabs on #20066

    Hi there, assume I have two member types (“employers” and “employees”). If I want to provide a link to a filtered list of all employees, is there a way to do so using a filter in the URL string like http://www.mybuddypressSite.com/members?=employers or something?

  • Participant
    Level: Enlightened
    Posts: 23
    y2gabs on #19471

    Hey there, I see that the plugin was updated but is there any reference docs to understand how to include the deactivate button in the members loop?

    Thanks!

  • Participant
    Level: Enlightened
    Posts: 23
    y2gabs on #19292

    Absolutely. Thank you sir!