Log in

View Full Version : Change the Image in the Avatar


Slowmin
12-23-2018, 07:38 PM
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
12-24-2018, 10:51 PM
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.

else
{
$table = 'customavatar';
if ($vbulletin->GPC['type'] == 'thumb' OR !empty($vbulletin->GPC['thumb']))
{
//$filedata = 'filedata_thumb';
$filedata = 'filedata';
}
}

delicjous
12-27-2018, 03:49 AM
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!