View Full Version : Avatar and Profile Picture Not Visible
PokeCenter
08-01-2011, 03:49 PM
For some reason when we go to profiles we can't see other people's profile pictures or avatars.
We can see our own in our profiles, but nobody else.
Some Examples:
http://thepokecenter123.com/member.php?1-PokeCenter
http://thepokecenter123.com/member.php?916-Lyrebirdgirl
http://thepokecenter123.com/member.php?455-Colorado-Avalanche
Please help.
Sage Knight
08-01-2011, 04:47 PM
Did you have a look at the the user group settings for "Non Registered members" aka "Guests"?
By default guests cannot view Profile Pictures. Unless you edit the permissions.
PokeCenter
08-01-2011, 11:27 PM
That's not the problem I the admin. can't see anyone as well as forum members.
Thanks for posting though.
Any other ideas?
If profile pictures are enabled in the options, and "Can View Others' Profile Pictures" and "Can Upload Profile Pictures" are set to "Yes" for your user group, then it looks like you should be seeing them. Maybe you could try disabling plugins to see if it makes any difference.
PokeCenter
08-02-2011, 02:51 AM
Tried both earlier and just tried again, but no luck :(.
Sage Knight
08-02-2011, 02:59 PM
Either post a screenshot of your Admin permissions or find anyone you trust to check it out for you.
PokeCenter
08-03-2011, 02:27 AM
I checked the permissions and they were fine. I trust you all to check it out (I mean honestly who doesn't have forum backups). Want to check it out tomorrow?
Spyike
08-03-2011, 03:37 AM
If you seem to think it isn't a permissions issue, have you checked your postbit?
In addition, try disabling all plugins and see if the "error" still occurs.
PokeCenter
08-03-2011, 07:14 PM
Haven't checked my postbit, but also haven't been in it. I tried with the plugins.
Spyike
08-03-2011, 08:21 PM
Haven't checked my postbit, but also haven't been in it. I tried with the plugins.
So with all plugins disabled did it work correctly...?
Sage Knight
08-04-2011, 10:16 AM
If you're still having issues with this, feel free to PM me your ACP details and I can take a look. I'm pretty sure it's got to be your settings and permissions.
PokeCenter
08-06-2011, 12:23 AM
Still not working Spyike. I let Sage in my ACP and he saw nothing wrong. What's going on :(.
PokeCenter
08-08-2011, 12:22 PM
Bump. Still need help.
--------------- Added 1312861669 at 1312861669 ---------------
I confirmed that you can only see your own profile picture and avatars. I logged on to users accounts and saw them.
PokeCenter
08-14-2011, 01:25 PM
Bump.
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)
else
{
$this->prepared['profilepicurl'] = '';
}
}
add thses lines so that it looks like this:
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.
PokeCenter
08-15-2011, 12:30 AM
I see the avatars as a guest, but not when logged in still no profile pictures when logged in or out (I'm going to try your above method, but informing that avatars issue).
PokeCenter
08-19-2011, 12:26 PM
KH99 I tried it and the profile pages wouldn't come up at all.
Hmm...I tried it before posting and just checked it again and it works for me. Maybe it's related to the issue. Can you re-upload your vbulletin files (assuming that you haven't made any changes to them, of course).
Sage Knight
08-19-2011, 02:23 PM
The way I see it, it's a plugin, you have a lot of them installed. I did told you on your forums to try disabling one at a time.
That's certainly something that should have been tried already. Maybe I misunderstood the earlier post where I thought PokeCenter said that it had made no difference.
grey_goose
08-19-2011, 11:15 PM
I'd be interested in hearing what you turn up, I have same problem.
PokeCenter
08-21-2011, 03:57 AM
I tried all at once. I'll try one at a time tomorrow. Grey Goose do you have a lot of plugins?
PokeCenter
08-24-2011, 11:39 PM
The "Log in user account" modification was the problem. I also alerted the creator. Did this help you too Grey Goose?
grey_goose
08-27-2011, 11:32 AM
Yep that was it, thanks!
PokeCenter
11-29-2011, 09:33 PM
Anytime!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.