Back to vBulletin Tips & Tricks

Full size avatar in user's profile
by Lea Verou 14 May 2008
Rating: (7 votes - 4.86 average)

It seems that Jelsoft expects everyone to have profile pictures enabled. This is the only explanation I can think for the fact that in the user's profile, his/her own avatar, is a thumbnail, whereas in other places such as the postbit or the memberinfo, its full size

Personally, I have disabled profile pictures, as I feel they are completely superfluous and I wanted the user's avatar to display at the place that the vB devs have intended the profile pic to do so.

The template edit to put it there was easy. However, how the hell would I make it full size? I even tried using the code from my 3.6.x memberinfo template. It didn't help.

No template edit I thought helped.

So, as a last resort, I looked at the code. After some reading, I found out what I had to change:

file: includes/class_userprofile.php
line: 197
find:
PHP Code:
fetch_avatar_from_userinfo($this->userinfotruefalse); 
change to:
PHP Code:
fetch_avatar_from_userinfo($this->userinfofalsefalse); 
Basically, you change the 2nd parameter from true to false.

And there isn't even a hook somewhere nearby, to save the file edit.

I hope it helps someone save the time that I spent looking for it.

And if any vB dev is reading, I want to say that its disgraceful to have to make a file edit for that!!!

vblts.ru supports vBulletin®, 2022-2024