vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=179172

Full size avatar in user's profile
by Lea Verou
14 May 2008 11:48

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 :eek:

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:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

change to:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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!!! :mad:

KURTZ 14 May 2008 12:06

Quote:

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

agreed :p

cafenetland 14 May 2008 13:22

thx man.

it looks much much better


https://www.vbulletin.org/forum/external/2008/05/52.jpg

elmati 14 May 2008 13:57

I'm not a fan of file edits, but nice hack m8 :)

slowphantom 14 May 2008 13:59

thx great work keep it up

Lea Verou 14 May 2008 14:05

Quote:

Originally Posted by elmati (Post 1519315)
I'm not a fan of file edits, but nice hack m8 :)

I hate file edits too, I got so mad when I found out that this needs a file edit...

Defkalion 14 May 2008 20:58

Nice find Lia, I needed this too :)

MSheraz86 14 May 2008 21:34

Thanks for this :) very helpful indeed!

Zaiaku 14 May 2008 23:54

One of the few times where a file edit can be really useful. Thx!

avsunforum 15 May 2008 12:39

Thank You very Much

FleaBag 15 May 2008 17:27

Great! Nominated for MOTM. :)

Thelonius Beck 18 May 2008 17:52

I only made the size change, as my members prefer the locations 'as is', but great job on the file edit.
*Installed*

DaninMS 22 May 2008 22:41

Nice. Hated that thumbnail they used. thx.

Saskia 23 Jun 2008 19:47

Great modification. I can't believe it's not a standard vB option to choose either thumbnail or normal size avatar for memberinfo.

Thanks!

Vegetrunks 08 Jul 2008 21:30

Thanks for this hack. :)


All times are GMT. The time now is 14:44.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.