[buddypress-trac] [BuddyPress] #4252: Avatars are (erroneously) stored locally when running BP_ENABLE_MULTIBLOG (was: Avatar errors with Buddypress + Multisite)

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Jun 30 02:43:14 UTC 2012


#4252: Avatars are (erroneously) stored locally when running BP_ENABLE_MULTIBLOG
-------------------------------+-----------------------------
 Reporter:  douglance          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Future Release
Component:  Core               |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+-----------------------------
Changes (by boonebgorges):

 * milestone:  Awaiting Review => Future Release


Comment:

 The problem is BP_ENABLE_MULTIBLOG. When you're running
 `BP_ENABLE_MULTIBLOG`, your avatars are stored *locally* by design, which
 is to say that they're stored on each individual site. So changing your
 avatar on one of the sites will not change it elsewhere. On reflection,
 I'm not sure whether this makes sense, though the fact is that it's in
 place right now, and we can't easily change it anytime very soon.

 In the meantime, you can easily override this default behavior by defining
 your own custom avatar constants. Select the blog where you want custom
 avatars to live (doesn't matter which if you're starting from scratch; if
 users have already been actively creating content in one site, you should
 use that one), and define the following constants in wp-config.php:

 {{{
 // This assumes that the blog in question is #1. If it's not, the path
 will
 // have blogs.dir in it
 define( 'BP_AVATAR_UPLOAD_PATH', '/var/www/html/example/wp-
 content/uploads' );

 // Again, assuming you're coming from #1. To pull from a different blog,
 // it'll be example.com/secondaryblog/files or something like that
 define( 'BP_AVATAR_URL', 'http://example.com/wp-content/uploads' );
 }}}

 I'm putting this into Future Release for consideration by the rest of the
 core devs. Team: do you think it makes sense to have per-site avatars as
 the default, given that no other BP data is per-site in multiblog mode?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4252#comment:4>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list