I'll make this short and sweet. I have two problems.
1) Trying to get the user_ID not of the active user but of the blog owner. I've tried using the variable "$user_ID" in my plugin but if I sign out and log in with a different user then the $user_ID variable gets swapped. I was using $blog_id for a bit, but then realized that $blog_id and $user_ID were not tied to each other.
2) My php file checking function is broken:
function filechecking() {
global $user_ID;
$filename = '/wp-content/avatars/' . $user_ID . '.jpg';
if (file_exists($filename)) {
printf($filename);
}
else {
echo "wp-content/avatars/default.jpg"
}
Running this function does not work for me. All I'm looking to do is have the function check whether a user has uploaded a photo, and if they have then display that, but if not display the default avatar.