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-themes/bp-default/_inc/ajax.php

    r2268 r2287  
    7171        ));
    7272    } else {
    73         $activity_id = xprofile_post_update( array(
     73        $activity_id = bp_activity_post_update( array(
    7474            'content' => $_POST['content']
    7575        ));
     
    169169            $query_string = 'user_id=' . $bp->displayed_user->id;
    170170        } else {
    171             /* Set a valid type */
    172             if ( !$type || ( 'all' != $type && 'friends' != $type && 'groups' != $type && 'favorites' != $type ) )
    173                 $type = 'all';
    174 
    175             if ( ( 'friends' == $type || 'groups' == $type || 'favorites' == $type ) && !is_user_logged_in() )
     171            /* Make sure a type is set. */
     172            if ( empty($type) )
    176173                $type = 'all';
    177174
     
    195192                    $query_string = 'include=' . $favorite_ids;
    196193                    break;
     194                case 'atme':
     195                    $query_string = 'search_terms=@' . bp_core_get_username( $bp->loggedin_user->id, $bp->loggedin_user->userdata->user_nicename, $bp->loggedin_user->userdata->user_login );
     196
     197                    /* Reset the number of new @ mentions for the user */
     198                    delete_usermeta( $bp->loggedin_user->id, 'bp_new_mention_count' );
     199                    break;
    197200            }
    198201        }
Note: See TracChangeset for help on using the changeset viewer.