Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/08/2008 11:32:12 PM (18 years ago)
Author:
apeatling
Message:

Updated BuddyPress to work with the new WP2.5 admin interface. The latest trunk is now REQUIRED to use BuddyPress. Must be using WPMU > v1.3.3. Fixed issues with profile image uploads because of new thumbnail filenames.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp_xprofile/bp_xprofile.signup.php

    r18 r19  
    269269    {
    270270        copy(ABSPATH . 'wp-content/mu-plugins/bp_xprofile/images/none.gif', ABSPATH . $profile_picture_path . "/none.gif");
     271        copy(ABSPATH . 'wp-content/mu-plugins/bp_xprofile/images/none-thumbnail.gif', ABSPATH . $profile_picture_path . "/none-thumbnail.gif");
     272
    271273       
    272         $pic = new BP_XProfile_Picture("none.gif");
    273         $pic->create_thumb();
     274        $pic = new BP_XProfile_Picture("none.gif");     
     275        update_blog_option($blog_id, "profile_picture", "none.gif");       
     276        update_blog_option($blog_id, "profile_picture_thumbnail", "none-thumbnail.gif");       
    274277       
    275         $thumb = explode("/", $pic->thumb_filename);
    276         $thumb = $thumb[count($thumb)-1];
    277        
    278         update_blog_option($blog_id, "profile_picture", "none.gif");       
    279         update_blog_option($blog_id, "profile_picture_thumbnail", $thumb);     
    280        
    281278    }
    282279
Note: See TracChangeset for help on using the changeset viewer.