Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

  • Leia Scofield
    Participant

    @leiascofield

    Thanks Andy. Enjoy this lovely ticket.


    Leia Scofield
    Participant

    @leiascofield

    I cleared any outstanding group invites from the wp_bp_notifications table in the database and successfully invited a user to a group in 1.2.1, however when I tried to invite them to a second group, I was unsuccessful.


    Leia Scofield
    Participant

    @leiascofield

    I checked the wp_bp_notifications table in my database, and there is no “group_invite” activity logged since our upgrade to 1.2.1.


    Leia Scofield
    Participant

    @leiascofield

    +1


    Leia Scofield
    Participant

    @leiascofield

    Even better!

    Add this to your functions.php:

    function bp_is_friend() {

    global $bp;

    if ( ‘is_friend’ == BP_Friends_Friendship::check_is_friend( $bp->loggedin_user->id, $bp->displayed_user->id ) )

    return true;

    return false;

    }

    Now you can drop bp_is_friend() in wherever you want to check if the displayed user is a friend of the logged in user, such as:

    <?php if ( bp_is_friend() || bp_is_my_profile() ) { ?>

    The above line checks if the displayed user is a friend or is the user.


    Leia Scofield
    Participant

    @leiascofield

    Even better:

    <?php

    global $bp, $friends_template;

    $friend_status = friends_check_friendship_status( $bp->loggedin_user->id, $bp->displayed_user->id );

    if ( $friend_status == ‘is_friend’ || bp_is_my_profile() ) { ?>


    Leia Scofield
    Participant

    @leiascofield

    Andy — Add this to your child functions.php:

    function remove_header_support() {

    remove_action( ‘init’, ‘bp_dtheme_add_custom_header_support’ );

    }

    add_action( ‘init’, ‘remove_header_support’, 9 );

    (Hat tip: MrMaz)


    Leia Scofield
    Participant

    @leiascofield

    Not sure if this is the perfect way to do it, but here’s how I achieved what I was trying to do. This is in one of my templates:

    <?php

    global $bp, $friends_template;

    $friend_status = friends_check_friendship_status( $bp->loggedin_user->id, $bp->displayed_user->id );

    if ( $friend_status == ‘is_friend’ || $bp->loggedin_user->id == $bp->displayed_user->id ) {

    ?>

    This checks to see if the user you’re looking at is a friend OR you, and then would display the information following it. You would then follow up with an else that shows the information non-friends see.


    Leia Scofield
    Participant

    @leiascofield

    Roger — MrMaz has the solution to that over here.


    Leia Scofield
    Participant

    @leiascofield

    A temporary quick fix would be to add the following to your child theme’s CSS:

    If you don’t want any image:

    #header { background: none !important }

    If you want some other image:

    #header { background: url(/path/to/image.gif) !important }


    Leia Scofield
    Participant

    @leiascofield

    Likewise. Tried setting a priority on the remove_action to no avail.

    WP 2.9.1, BP 1.2

Viewing 11 replies - 1 through 11 (of 11 total)
Skip to toolbar