Changeset 9428
- Timestamp:
- 02/04/2015 01:53:42 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-catchuri.php
r9351 r9428 22 22 * 23 23 * The URIs are broken down as follows: 24 * - http:// domain.com / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ...25 * - OUTSIDE ROOT: http:// domain.com / sites / buddypress / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ...24 * - http:// example.com / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ... 25 * - OUTSIDE ROOT: http:// example.com / sites / buddypress / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ... 26 26 * 27 27 * Example: 28 * - http:// domain.com/members/andy/profile/edit/group/5/28 * - http://example.com/members/andy/profile/edit/group/5/ 29 29 * - $bp->current_component: string 'xprofile' 30 30 * - $bp->current_action: string 'edit' -
trunk/src/bp-core/bp-core-functions.php
r9426 r9428 787 787 * Return the domain for the root blog. 788 788 * 789 * eg: http:// domain.com OR https://domain.com789 * eg: http://example.com OR https://example.com 790 790 * 791 791 * @uses get_blog_option() WordPress function to fetch blog meta. … … 855 855 $site_path = '/'; 856 856 } else { 857 // Unset the first three segments (http(s):// domain.com part)857 // Unset the first three segments (http(s)://example.com part) 858 858 unset( $site_path[0] ); 859 859 unset( $site_path[1] ); -
trunk/src/bp-core/bp-core-template.php
r9351 r9428 1370 1370 * Check to see if a component's URL should be in the root, not under a member page. 1371 1371 * 1372 * - Yes ('groups' is root) : http:// domain.com/groups/the-group1373 * - No ('groups' is not-root): http:// domain.com/members/andy/groups/the-group1372 * - Yes ('groups' is root) : http://example.com/groups/the-group 1373 * - No ('groups' is not-root): http://example.com/members/andy/groups/the-group 1374 1374 * 1375 1375 * This function is on the chopping block. It's currently only used by a few -
trunk/src/bp-core/deprecated/1.5.php
r9351 r9428 450 450 /** 451 451 * Checks to see if a component's URL should be in the root, not under a member page: 452 * eg: http:// domain.com/groups/the-group NOT http://domain.com/members/andy/groups/the-group452 * eg: http://example.com/groups/the-group NOT http://example.com/members/andy/groups/the-group 453 453 * You should be using bp_is_root_component(). 454 454 * -
trunk/src/bp-members/bp-members-functions.php
r9398 r9428 152 152 153 153 /** 154 * Return the domain for the passed user: e.g. http:// domain.com/members/andy/.154 * Return the domain for the passed user: e.g. http://example.com/members/andy/. 155 155 * 156 156 * @param int $user_id The ID of the user. … … 464 464 * Return a HTML formatted link for a user with the user's full name as the link text. 465 465 * 466 * eg: <a href="http://andy. domain.com/">Andy Peatling</a>466 * eg: <a href="http://andy.example.com/">Andy Peatling</a> 467 467 * 468 468 * Optional parameters will return just the name or just the URL. -
trunk/src/bp-members/bp-members-loader.php
r9351 r9428 121 121 $bp->loggedin_user->is_super_admin = $bp->loggedin_user->is_site_admin = is_super_admin( bp_loggedin_user_id() ); 122 122 123 // The domain for the user currently logged in. eg: http:// domain.com/members/andy123 // The domain for the user currently logged in. eg: http://example.com/members/andy 124 124 $bp->loggedin_user->domain = bp_core_get_user_domain( bp_loggedin_user_id() ); 125 125
Note: See TracChangeset
for help on using the changeset viewer.