Quote:
Originally Posted by Dj22
i could be wrong but when i installed this users were able to upload avatars as big as timeslips..
its seems to be the graphic type it enables it for a larger size in the functions_upload file?
i turned it back to the original one and it worked for the avatars
|
Ah, I know what the problem is. At some point the $permissions variable was changed to $imagepermissions in the functions_upload.php file. I copied that bit from my test board which is running RC1.. I believe this was changed in RC2 or RC3.
Anyway, heres the fix (only needed if you have v2.1):
In includes/functions_upload.php find:
Code:
if ($type=="timeslippic") {
$maxwidth=$vboptions[tdmaxwidth];
$maxheight=$vboptions[tdmaxheight];
$maxsize=$vboptions[tdmaxsize];
} else {
// get maximum filesize/dimensions etc.
$maxwidth = &$permissions[$type . 'maxwidth'];
$maxheight = &$permissions[$type . 'maxheight'];
$maxsize = &$permissions[$type . 'maxsize'];
}
Replace it with:
Code:
if ($type=="timeslippic") {
$maxwidth=$vboptions[tdmaxwidth];
$maxheight=$vboptions[tdmaxheight];
$maxsize=$vboptions[tdmaxsize];
} else {
// get maximum filesize/dimensions etc.
$maxwidth = &$imagepermissions[$type . 'maxwidth'];
$maxheight = &$imagepermissions[$type . 'maxheight'];
$maxsize = &$imagepermissions[$type . 'maxsize'];
}
I updated the hack instructions. Thanks for pointing this out.