Skip to:
Content

BuddyPress.org

Changeset 436 for trunk/bp-core.php


Ignore:
Timestamp:
10/24/2008 04:00:42 PM (18 years ago)
Author:
apeatling
Message:
  • Fixed avatar upload validation bug when image upload field left blank
  • Fixed incorrect "your" wording on site wide activity widget
  • Fixed profile wire posting bug
  • Updated site wide members directory
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r431 r436  
    33/* Define the current version number for checking if DB tables are up to date. */
    44define( 'BP_CORE_VERSION', '0.2.6.1' );
     5
     6/* Define the slug for member pages and the members directory (e.g. domain.com/[members] ) */
     7define( 'MEMBERS_SLUG', 'members' );
     8
     9/* These components are accessed via the root, and not under a blog name or home base.
     10   e.g Groups is accessed via: http://domain.com/groups/group-name NOT http://domain.com.andy/groups/group-name */
     11define( 'BP_CORE_ROOT_COMPONENTS', MEMBERS_SLUG . ',groups' );
    512
    613/* Load the language file */
    714if ( file_exists(ABSPATH . 'wp-content/mu-plugins/bp-languages/buddypress-' . get_locale() . '.mo') )
    815        load_textdomain( 'buddypress', ABSPATH . 'wp-content/mu-plugins/bp-languages/buddypress-' . get_locale() . '.mo' );
    9 
    10 /* These components are accessed via the root, and not under a blog name or home base.
    11    e.g Groups is accessed via: http://domain.com/groups/group-name NOT http://domain.com.andy/groups/group-name */
    12 define( 'BP_CORE_ROOT_COMPONENTS', 'groups,members' );
    1316
    1417/* Functions to handle pretty URLs and breaking them down into usable variables */
    … …  
    180183        $ud = get_userdata($user_id);
    181184       
    182         return $bp['root_domain'] . '/members/' . $ud->user_login . '/';
     185        return $bp['root_domain'] . '/' . MEMBERS_SLUG . '/' . $ud->user_login . '/';
    183186}
    184187
    … …  
    414417        $ud = get_userdata($uid);
    415418               
    416         return $bp['root_domain'] . '/members/' . $ud->user_login . '/';
     419        return $bp['root_domain'] . '/' . MEMBERS_SLUG . '/' . $ud->user_login . '/';
    417420}
    418421
Note: See TracChangeset for help on using the changeset viewer.