Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/10/2010 08:42:42 PM (16 years ago)
Author:
apeatling
Message:

Shifted the filter select from the main activity page tab row onto a second row to accommodate the missing feed link (links will be altered on an upcoming commit). Added a mentions tab. Tweaked a couple of css styles and ID's for better re-use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-filters.php

    r2270 r2287  
    7474
    7575    foreach( (array)$usernames as $username ) {
    76         if ( !username_exists( $username ) )
     76        if ( !$user_id = username_exists( $username ) )
    7777            continue;
     78
     79        /* Increase the number of new @ mentions for the user */
     80        $new_mention_count = (int)get_usermeta( $user_id, 'bp_new_mention_count' );
     81        update_usermeta( $user_id, 'bp_new_mention_count', $new_mention_count + 1 );
    7882
    7983        $content = str_replace( "@$username", "<a href='" . bp_core_get_user_domain( bp_core_get_userid( $username ) ) . "' rel='nofollow'>@$username</a>", $content );
     
    8286    return $content;
    8387}
    84 add_filter( 'xprofile_activity_new_update_content', 'bp_activity_at_name_filter' );
     88add_filter( 'bp_activity_new_update_content', 'bp_activity_at_name_filter' );
    8589add_filter( 'groups_activity_new_update_content', 'bp_activity_at_name_filter' );
    8690add_filter( 'bp_activity_comment_content', 'bp_activity_at_name_filter' );
Note: See TracChangeset for help on using the changeset viewer.