vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Tips & Tricks (https://vborg.vbsupport.ru/forumdisplay.php?f=239)
-   -   Full size avatar in user's profile (https://vborg.vbsupport.ru/showthread.php?t=179172)

Lea Verou 05-13-2008 10:00 PM

Full size avatar in user's profile
 
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:
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!!! :mad:

KURTZ 05-14-2008 11:06 AM

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 05-14-2008 12:22 PM

thx man.

it looks much much better


https://vborg.vbsupport.ru/external/2008/05/52.jpg

elmati 05-14-2008 12:57 PM

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

slowphantom 05-14-2008 12:59 PM

thx great work keep it up

Lea Verou 05-14-2008 01:05 PM

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 05-14-2008 07:58 PM

Nice find Lia, I needed this too :)

MSheraz86 05-14-2008 08:34 PM

Thanks for this :) very helpful indeed!

Zaiaku 05-14-2008 10:54 PM

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

avsunforum 05-15-2008 11:39 AM

Thank You very Much


All times are GMT. The time now is 04:33 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.01198 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_quote_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