As a guest I can see all the avatars, I just don't see any profile pictures. Are you sure those users have uploaded profile pictures (I guess so, otherwise you also wouldn't see them when you're logged in as that user.
OK, I have something you can try: get a copy of includes/class_userprofile.php (download it via ftp if you don't have it on your local computer already), and save a copy somewhere. Then edit it and find function prepare_profilepic() around line 538. At the end of that function (that looks like this)
PHP Code:
else
{
$this->prepared['profilepicurl'] = '';
}
}
add thses lines so that it looks like this:
PHP Code:
else
{
$this->prepared['profilepicurl'] = '';
}
echo "\r\n\r\n<!--\r\n";
echo '$this->registry->options[\'profilepicenabled\'] = ' . $this->registry->options['profilepicenabled'] . "\r\n";
echo '$this->userinfo[\'profilepic\'] = ' . $this->userinfo['profilepic'] . "\r\n";
echo '$this->registry->userinfo[\'permissions\'][\'genericpermissions\'] = ' . $this->registry->userinfo['permissions']['genericpermissions'] . "\r\n";
echo '$this->registry->bf_ugp_genericpermissions[\'canseeprofilepic\'] = ' . $this->registry->bf_ugp_genericpermissions['canseeprofilepic'] . "\r\n";
echo '$this->registry->userinfo[\'permissions\'][\'genericpermissions\'] & $this->registry->bf_ugp_genericpermissions[\'canseeprofilepic\'] =' . $this->registry->userinfo['permissions']['genericpermissions'] & $this->registry->bf_ugp_genericpermissions['canseeprofilepic'] . "\r\n";
echo '$this->registry->userinfo[\'userid\'] = ' . $this->registry->userinfo['userid'] . "\r\n";
echo '$this->userinfo[\'userid\'] = ' . $this->userinfo['userid'] . "\r\n";
echo '$this->userinfo[\'permissions\'][\'genericpermissions\'] = ' . $this->userinfo['permissions']['genericpermissions'] . "\r\n";
echo '$this->registry->bf_ugp_genericpermissions[\'canprofilepic\'] = ' . $this->registry->bf_ugp_genericpermissions['canprofilepic'] . "\r\n";
echo '$this->userinfo[\'permissions\'][\'genericpermissions\'] & $this->registry->bf_ugp_genericpermissions[\'canprofilepic\'] = ' . $this->userinfo['permissions']['genericpermissions'] & $this->registry->bf_ugp_genericpermissions['canprofilepic'] . "\r\n";
echo '$this->userinfo[\'adminprofilepic\'] = ' . $this->userinfo['adminprofilepic'] . "\r\n";
echo '$this->registry->options[\'usefileavatar\'] = ' . $this->registry->options['usefileavatar'] . "\r\n";
echo '$this->registry->options[\'profilepicurl\'] = ' . $this->registry->options['profilepicurl'] . "\r\n";
echo '$this->prepared[\'userid\'] = ' . $this->prepared['userid'] . "\r\n";
echo '$this->userinfo[\'profilepicrevision\'] = ' . $this->userinfo['profilepicrevision'] . "\r\n";
echo '$this->userinfo["profilepicdateline"] = ' . $this->userinfo["profilepicdateline"] . "\r\n";
echo '$this->userinfo[\'ppwidth\'] = ' . $this->userinfo['ppwidth'] . "\r\n";
echo '$this->userinfo[\'ppheight\'] = ' . $this->userinfo['ppheight'] . "\r\n";
echo '$this->prepared[\'profilepicurl\'] = ' . $this->prepared['profilepicurl'] . "\r\n";
echo "-->\r\n\r\n";
}
(just copy the block of lines starting with 'echo' and paste them before the final curly brace).
'Then go to a page where the problem is happening, and view the source of the page. There should be a block of comments at the beginning - copy it and post it here.
|