UBB.Dev
Posted By: SUnruh avatars? - 01/14/2003 4:05 PM
hello,
i help run a site that runs UBBThreads 6.1 and has 15,000 members that spikes up to 180 online at the same time.

we are having a problem with avatars.
specifically, some users are linking to images that are 640x480x16million colors and not using the 80x80 that is suggested.

i have several questions:
1) does threads pull the image down, shrink it to 80x80 and then insert it into the page?

2) does threads cache ANY of the images? if so, how, where and is it a tunable value?

3) is there a way to turn avatars off for some members, but not all? (ie some type of threshhold be it post total or a admin button)

4) is there a method for users to upload their avatars to the server? if so, please point me to the url.

any other suggestions or ideas?

thanks,
steve
Posted By: Astaran Re: avatars? - 01/14/2003 8:08 PM
1) .threads doesn't shrink it as filesize and height/width are concerned. You are able to set the maximum display sitze via html attributes in the templates, so...

2) .threads, as an php script can't cache images. it surely can't cache images that rely on other servers. caching files can be done by a apache or derivates...

3) no, you can delete the avatar link from your admin panel --> Edit Users

4) It's an option in your config.inc.php you can define a dir where the avatars are uploaded to. You can set the maximum file size, what makes this the best (and only) way to limit the filesize and imagesize of avatars.

You may even want to edit your editprofile.tmpl to remove the textbox where users can type in the url to their avatar.
Posted By: SUnruh Re: avatars? - 01/14/2003 8:35 PM
[]1) .threads doesn't shrink it as filesize and height/width are concerned. You are able to set the maximum display sitze via html attributes in the templates, so...
[/]

but this doesn't answer the question.

first you say it doesn't adjust, but then you tell how to change the size. which means it HAS to adjust. this then also implies that the file IS pulled onto the threads server before it put onto a page and sent to a user.

so which is it, does it pull down any size image file that it is pointed to, adjust it to what it is set and re-send it out or not?
Posted By: JustDave Re: avatars? - 01/14/2003 8:52 PM
It doesn't grab the image and resize it physically. It displayes the remotely hosted image with incorrect width/height attributes in the <img> tag.

I hope that's more clearer.
Posted By: SUnruh Re: avatars? - 01/14/2003 10:06 PM
dave,
so does the avatar image go through the server at all then?
Posted By: Astaran Re: avatars? - 01/14/2003 10:19 PM
If the images is located on a different server it does not go through your server.
Posted By: SUnruh Re: avatars? - 01/15/2003 5:50 PM
just wanted to say thanks for the info.
© UBB.Developers