Profile, groups and cover iages are in a custom path.
The complete directory when a user uploads an avatar is /wp-content/uploads/avatars/35/
where 35 is the user_id. Same architecture for groups and covers. So each user as only access to his avatar, and each group has only access to his logo or cover.
Adding avatars in media library is not recommanded, as any author can access to such image. Aside, BP members are usually (except if you have a multi author blog) not going to media library to handle pictures.
And if you already googled a bit, ie. wordpress+change+avatar+upload+path, you may noticed that they are not much results.
Thanks danbp for your reply.
Yes I have Googled everything I can think of but cannot find a solution.
So my question is… is there a way to change the path in some file (such as function.php) so all uploaded avatars, group avatars and cover images from BP go to a custom directory I have elsewhere within server? Or how is this done and if possible?
I will be hiring a developer to do this for me, but my developer is not to familiar with BP. So I am trying to find some answer before hand.
> So my question is… is there a way to change the path
Afaik there is no solution on hand for this. It’s imho not possible.
Perhaps if you tell us the reason why you want to do this, somebody can give you another solution.
The reason I am needing this done is I am using a plugin that protects everything within /uploads/ folder, so that includes all the avatars. So when visitors come to site, the avatars do not show. It is only when logged in users are logged in they can see them, as the plugin allows only logged in users to have access to files and images from the /upload/ directory.
The plugin that is causing this is the s2member plugin as I am using this to protect the content within the /uploads/ directory.
I notice a plugin that allows only the user avatars to either be uploaded to a custom directory or Amazon s3. This is good, but it does not do this for group avatars or cover images. This plugin is called WP Avatar Pro…
http://codecanyon.net/item/wp-user-avatar-pro/15638832
So would there be a way to create a plugin for this or manipulate the above mentioned plugin?
If you use a third party plugin who adds his own protection rules to a folder, you have to ask on that plugin support.
Also, i’m wondering why “only logged-in” user can see their avatar and not visitors. There is certainly a setting or a filter in that plugin you could modify.
FYI, avatars are part of WP core. Group avatar and cover image is a BP feature who use a complete different logic, even if they use the default upload path – which is how WP handles uploads.
Instead of wasting your time trying to circumvent a default behave, to find an incomplete plugin and another one(!) who can to the missing stuff, stay simple and ask at least the plugin author where your problem comes from.
Next time you come in for help, please give the context first. Thxs.