Changeset 167 for trunk/bp-xprofile/bp-xprofile-templatetags.php
- Timestamp:
- 06/19/08 17:10:30 (7 months ago)
- Files:
-
- 1 modified
-
trunk/bp-xprofile/bp-xprofile-templatetags.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-templatetags.php
r166 r167 210 210 211 211 function bp_the_avatar() { 212 global $c oreuser_id;213 echo xprofile_get_avatar( $c oreuser_id, 2 );212 global $current_userid; 213 echo xprofile_get_avatar( $current_userid, 2 ); 214 214 } 215 215 216 216 function bp_the_avatar_thumbnail() { 217 global $c oreuser_id;218 echo xprofile_get_avatar( $c oreuser_id, 1 );217 global $current_userid; 218 echo xprofile_get_avatar( $current_userid, 1 ); 219 219 } 220 220 221 221 function bp_loggedinuser_avatar_thumbnail() { 222 global $ current_user;223 echo xprofile_get_avatar( $ current_user->ID, 1 );222 global $loggedin_userid; 223 echo xprofile_get_avatar( $loggedin_userid, 1 ); 224 224 } 225 225 226 226 function bp_user_fullname($user_id = false) { 227 global $c oreuser_id;227 global $current_userid; 228 228 229 229 if ( !$user_id ) 230 $user_id = $c oreuser_id;230 $user_id = $current_userid; 231 231 232 232 $data = bp_get_field_data( array( 'First Name', 'Last Name' ) ); … … 248 248 249 249 function bp_profile_group_tabs() { 250 global $ source_domain, $bp_xprofile_slug, $group_name;250 global $loggedin_domain, $bp_xprofile_slug, $group_name; 251 251 252 252 $groups = BP_XProfile_Group::get_all(); … … 262 262 } 263 263 264 echo '<li' . $selected . '><a href="' . $ source_domain . $bp_xprofile_slug . '/edit/group/' . $groups[$i]->id . '">' . $groups[$i]->name . '</a></li>';264 echo '<li' . $selected . '><a href="' . $loggedin_domain . $bp_xprofile_slug . '/edit/group/' . $groups[$i]->id . '">' . $groups[$i]->name . '</a></li>'; 265 265 } 266 266 } … … 284 284 285 285 function bp_edit_profile_form() { 286 global $action_variables, $ source_domain, $bp_xprofile_slug;286 global $action_variables, $loggedin_domain, $bp_xprofile_slug; 287 287 288 288 $group_id = $action_variables[1]; … … 291 291 $group_id = 1; // 'Basic' group. 292 292 293 xprofile_edit( $group_id, $source_domain . $bp_xprofile_slug . '/edit/group/' . $group_id . '/?mode=save' ); 294 } 295 296 293 xprofile_edit( $group_id, $loggedin_domain . $bp_xprofile_slug . '/edit/group/' . $group_id . '/?mode=save' ); 294 } 295 296 function bp_avatar_upload_form() { 297 global $loggedin_domain, $bp_xprofile_slug; 298 299 xprofile_avatar_admin(null, $loggedin_domain . $bp_xprofile_slug . '/change-avatar/'); 300 } 297 301 298 302
