Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • crina27
    Participant

    @crina27

    Thank you! I found the problem. To load the components I was using add_action( ‘bp_init’, ‘bp_group_videochat_init’ ); and I changed it to add_action( ‘bp_include’, ‘bp_group_videochat_init’ );


    crina27
    Participant

    @crina27

    The quote typo appeared when I copied the functions.
    function bp_group_chat_format_notifications( $action, $item_id, $secondary_item_id, $total_items) {
    global $bp;

    switch ( $action ) {
    case ‘new_group_chat’:
    $group_id = $secondary_item_id;
    $group = new BP_Groups_Group( $group_id );
    $group_link = bp_get_group_permalink( $group );

    $groupSlug=groups_get_slug( $secondary_item_id);
    $url=home_url( $bp->groups->slug . ‘/’ .$groupSlug . ‘/group-chat’ );
    $return=’‘ . sprintf( __( ‘%s group broadcast invite!’, ‘group-chat’ ), $groupSlug ) . ‘‘;
    break;
    }
    do_action( ‘bp_group_chat_format_notifications’);
    return $return;

    }

    Which code button do I have to use?


    crina27
    Participant

    @crina27

    I added an active component (‘xprofile’) and now it works. Thank you!

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