Skip to:
Content

BuddyPress.org

Changeset 601 for trunk/bp-xprofile.php


Ignore:
Timestamp:
12/02/2008 09:04:12 PM (17 years ago)
Author:
apeatling
Message:

Added profile field filters
Added RSS feeds to site wide, personal and friend feeds
Small fixes on blog, member and group directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r574 r601  
    1515/* Functions for handling the admin area tabs for administrators */
    1616require_once( 'bp-xprofile/bp-xprofile-admin.php' );
     17
     18/* Functions for applying filters to Xprofile specfic output */
     19require_once( 'bp-xprofile/bp-xprofile-filters.php' );
    1720
    1821/* Functions to handle the modification and saving of signup pages */
     
    421424
    422425            if ( ( $wire_post->item_id == $bp['loggedin_userid'] && $wire_post->user_id == $bp['loggedin_userid'] ) || ( $wire_post->item_id == $bp['current_userid'] && $wire_post->user_id == $bp['current_userid'] ) ) {
     426               
    423427                $content = sprintf( __('%s wrote on their own wire', 'buddypress'), bp_core_get_userlink($wire_post->user_id) ) . ': <span class="time-since">%s</span>';               
     428                $return_values['primary_link'] = bp_core_get_userlink( $wire_post->user_id, false, true );
     429           
    424430            } else if ( ( $wire_post->item_id != $bp['loggedin_userid'] && $wire_post->user_id == $bp['loggedin_userid'] ) || ( $wire_post->item_id != $bp['current_userid'] && $wire_post->user_id == $bp['current_userid'] ) ) {
    425                 $content = sprintf( __('%s wrote on %s wire', 'buddypress'), bp_core_get_userlink($wire_post->user_id), bp_core_get_userlink( $wire_post->item_id, false, false, true, true ) ) . ': <span class="time-since">%s</span>';               
     431           
     432                $content = sprintf( __('%s wrote on %s wire', 'buddypress'), bp_core_get_userlink($wire_post->user_id), bp_core_get_userlink( $wire_post->item_id, false, false, true, true ) ) . ': <span class="time-since">%s</span>';           
     433                $return_values['primary_link'] = bp_core_get_userlink( $wire_post->item_id, false, true );
     434           
    426435            }
    427436           
    428437            $content .= '<blockquote>' . bp_create_excerpt($wire_post->content) . '</blockquote>';
    429             return $content;
     438            $return_values['content'] = $content;
     439           
     440            return $return_values;
    430441        break;
    431442        case 'updated_profile':
     
    434445            if ( !$profile_group )
    435446                return false;
    436                
    437             return sprintf( __('%s updated the "%s" information on their profile', 'buddypress'), bp_core_get_userlink($user_id), '<a href="' . $bp['current_domain'] . $bp['profile']['slug'] . '">' . $profile_group->name . '</a>' ) . ' <span class="time-since">%s</span>';
     447           
     448            return array(
     449                'primary_link' => bp_core_get_userlink( $user_id, false, true ),
     450                'content' => sprintf( __('%s updated the "%s" information on their profile', 'buddypress'), bp_core_get_userlink($user_id), '<a href="' . $bp['current_domain'] . $bp['profile']['slug'] . '">' . $profile_group->name . '</a>' ) . ' <span class="time-since">%s</span>'
     451            );
    438452        break;
    439453    }
Note: See TracChangeset for help on using the changeset viewer.