Skip to:
Content

BuddyPress.org

Changeset 1718 for trunk/bp-xprofile.php


Ignore:
Timestamp:
08/27/2009 09:18:10 PM (16 years ago)
Author:
apeatling
Message:

Fixes #723

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r1715 r1718  
    141141    $bp->profile->format_notification_function = 'xprofile_format_notifications';
    142142    $bp->profile->slug = BP_XPROFILE_SLUG;
    143    
     143
     144    /* Register this in the active components array */
     145    $bp->active_components[$bp->profile->slug] = $bp->profile->id;
     146       
    144147    $bp->profile->field_types = apply_filters( 'xprofile_field_types', array( 'textbox', 'textarea', 'radio', 'checkbox', 'selectbox', 'multiselectbox', 'datebox' ) );
    145148
     
    200203   
    201204    /* Add 'Profile' to the main navigation */
    202     bp_core_new_nav_item( array( 'name' => __('Profile', 'buddypress'), 'slug' => $bp->profile->slug, 'position' => 20, 'screen_function' => 'xprofile_screen_display_profile', 'default_subnav_slug' => 'public' ) );
     205    bp_core_new_nav_item( array( 'name' => __('Profile', 'buddypress'), 'slug' => $bp->profile->slug, 'position' => 20, 'screen_function' => 'xprofile_screen_display_profile', 'default_subnav_slug' => 'public', 'item_css_id' => $bp->profile->id ) );
    203206
    204207    $profile_link = $bp->loggedin_user->domain . $bp->profile->slug . '/';
Note: See TracChangeset for help on using the changeset viewer.