vBulletin Mods

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

Change the Image in the Avatar
by Slowmin
23 Dec 2018 21:38

I am having problems with my avatars using a smaller thumbnail than I'd like, but can't work out how to change that, and having now luck.

So I would like to change the image it serves to the full image, then rescale in CSS, the CSS I already have, but where can I find this part

<img src="./core/image.php?userid=1&thumb=1&dateline=1545596618" alt="Admin" title="Admin">

So I can just have it show.

<img src="./core/image.php?userid=1" alt="Admin" title="Admin">

Slowmin 25 Dec 2018 00:51

Sorted.

Incase anyone is wanting to do this, I edited image.php in the core directory, if you find $table = 'customavatar';, then replace the $filedata_thumb to just say $filedata as I have here, it's not elegant, and I think someone can probably do this better! But it's doing what I wanted now.


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


delicjous 27 Dec 2018 05:49

Attention... if everyone load up a 1 mb avatar and you viewing a thread of 20 posts the user have to load 20mb to see all avatars. If you have wrong thumb size, change it and then (/admincp/misc.php?do=chooser&) rebuild custom avatar thumbnails should work!


All times are GMT. The time now is 23:52.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, 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.