Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to tell if a person has uploaded a avatar only once?

I had to use something similar, in my case I just need to know if a user has an avatar or not:

`
function bp_has_avatar($user_id) {

global $bp;

$path = BP_AVATAR_UPLOAD_PATH . ‘/avatars/’ . $user_id . ‘/’;

return count(glob(” . $path . ‘*.jpg’));

}
`

Skip to toolbar