vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Avatar and Profile Picture Not Visible (https://vborg.vbsupport.ru/showthread.php?t=267778)

PokeCenter 08-01-2011 03:49 PM

Avatar and Profile Picture Not Visible
 
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.p...rado-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?

kh99 08-01-2011 11:49 PM

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

Quote:

Originally Posted by PokeCenter (Post 2228876)
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 [DATE]1312861669[/DATE] at [TIME]1312861669[/TIME] ---------------

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.

kh99 08-14-2011 02:08 PM

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.

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.

kh99 08-19-2011 12:58 PM

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.

kh99 08-19-2011 02:29 PM

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!


All times are GMT. The time now is 04:15 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01095 seconds
  • Memory Usage 1,794KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete