Skip to:
Content

BuddyPress.org

Changeset 1851


Ignore:
Timestamp:
09/10/2009 08:05:55 PM (12 years ago)
Author:
apeatling
Message:

Added activity stream item when a new user signs up and activates their account.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-activation.php

    r1667 r1851  
    4949        }
    5050       
     51        /* Record the new user in the activity streams */
     52        if ( function_exists( 'bp_activity_add' ) ) {
     53            $userlink = bp_core_get_userlink( $signup['user_id'] );
     54           
     55            bp_activity_add( array(
     56                'user_id' => $signup['user_id'],
     57                'content' => apply_filters( 'bp_core_activity_registered_member', sprintf( '%s is now a registered member', $userlink ), $signup['user_id'] ),
     58                'primary_link' => apply_filters( 'bp_core_actiivty_registered_member_primary_link', $userlink ),
     59                'component_name' => 'profile',
     60                'component_action' => 'new_member' 
     61            ) );
     62        }
     63
    5164        do_action( 'bp_core_account_activated', &$signup, $_GET['key'] );
    5265        bp_core_add_message( __( 'Your account is now active!', 'buddypress' ) );
  • trunk/bp-xprofile.php

    r1849 r1851  
    420420
    421421    do_action( 'xprofile_screen_change_avatar' );
     422   
    422423    bp_core_load_template( apply_filters( 'xprofile_template_change_avatar', 'profile/change-avatar' ) );
    423424}
     
    629630
    630631    /* Register the activity stream actions for this component */
     632    bp_activity_set_action( $bp->profile->id, 'new_member', __( 'New member registered', 'buddypress' ) );
    631633    bp_activity_set_action( $bp->profile->id, 'updated_profile', __( 'Updated Profile', 'buddypress' ) );
    632634    bp_activity_set_action( $bp->profile->id, 'new_wire_post', __( 'New profile wire post', 'buddypress' ) );
Note: See TracChangeset for help on using the changeset viewer.