Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Custom avatars arent showed on single blogs in WPMU

@justbishop

sorry for the delay with reply :))
as far as I can see WP 3.0 default uploads paths are a bit different from WPMU 2.9.2
but in your case it may be enough to correct paths in my filters

in particulat in filter nfm_bp_avatar_upload_url_correct($url)
use
$url = get_blog_option( BP_ROOT_BLOG, 'siteurl' ) . "/wp-content/uploads/";
instead of
$url = get_blog_option( BP_ROOT_BLOG, 'siteurl' ) . "/files/";

if it does not help – that would mean that WP 3.0 differently handle option upload_path (I still have no time to go deeply in WP 3.0 development – so simply don’t know for sure). In this case the most simple solution is to hardcode your upload path in my filter nfm_bp_avtar_upload_path_correct($path)
change the part ABSPATH . get_blog_option( BP_ROOT_BLOG, 'upload_path' );
into the absolute server path to the upload folder.

P.S. Impressed with BP implementation in your site – interesting idea and realization :)

@poolie , @Anthony, @kasper777ny, @nahummadrid – thanks to you all… happy to know that this piece of code works for you :)

Skip to toolbar