Skip to:
Content
Pages
Categories
Search
Top
Bottom

Need some modification for friends only activity plugin

  • Avatar of informerfrk
    informerfrk
    Participant

    @informerfrk

    I need some modification for friends only activity plugin for the part
    /* if member of a group – we want the activity even if nonfriend */

    if ( $activity->component != 'groups' && $activity->user_id != 0 && !my_is_friend_check($activity->user_id) && !my_is_atme_check($activity->content) ) {

    unset( $activities->activities[$key] );

    $activities->activity_count = $activities->activity_count-1;
    $activities->total_activity_count = $activities->total_activity_count-1;
    $activities->pag_num = $activities->pag_num -1;

    }
    }

    I want that in activity stream if non friend join a group and post update on a group, that should not visible to users in activity stream and also i don’t allow to show new group creation on activity stream….

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.