Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] @mention appears on activity stream?

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

  • Virtuali
    Participant

    @gunju2221

    @luvs123, Here is a fix that might work. In bp-activity-classes.php, change
    `if ( !empty( $filter_array ) ) {
    $user_filter = explode( ‘,’, $filter_array );
    $user_sql = ‘ ( a.user_id IN ( ‘ . $filter_array . ‘ ) )’;
    $filter_sql[] = $user_sql;
    }` With…
    `if ( !empty( $filter_array ) ) {
    $user_filter = explode( ‘,’, $filter_array );
    $user_sql = ” ( a.user_id IN ( ” . $filter_array . ” ) “;
    foreach ( $user_filter as $user_id ) {
    $search_terms = ‘@’ . bp_core_get_username( $user_id ) . ‘<';
    $user_sql .= “OR ( a.content LIKE ‘%%”.like_escape($search_terms).”%%’ ) “;
    }
    $user_sql .= ” ) “;
    $filter_sql[] = $user_sql;
    }`


    luvs
    Member

    @luvs123

    Thank you! It worked to perfection.

    Thanks a ton @gunju2221 :-)


    minto
    Participant

    @minto

    Hi!

    What would this code look like for 1.7?


    minto
    Participant

    @minto

    finally found THIS and it works..

    thx 4 attention

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] @mention appears on activity stream?’ is closed to new replies.
Skip to toolbar