Skip to:
Content
Pages
Categories
Search
Top
Bottom

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


r-a-y
Keymaster

@r-a-y

If you check the code that you just posted by itself, you’re missing a bunch of variables like $avatar_dir, $item_id, $object, which is why your code isn’t working.

Just declare them manually:
$avatar_dir = ‘avatars’;
$item_id = THE USER ID YOU’RE CHECKING
$object = ‘user’;

Skip to toolbar