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)

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.


All times are GMT. The time now is 12:56 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.01160 seconds
  • Memory Usage 1,767KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete