Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Make avatars hotlink-only?
byakko
New
Comments
perhaps this search "prevent avatar uploads" will help you.
http://vanillaforums.org/search?adv=&search=prevent+avatar+uploads&title=&author=&cat=all&tags=&discussion_d=1&discussion_question=1&comment_c=1&comment_answer=1&page_p=1&within=1+day&date=
not sure what you mean by hot-link but there are numerous avatar plugins
gravatars, vanillicons defaultavatar , etc.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
To save an animated gif as an avatar add this to the config.php
$Configuration['Garden']['Thumbnail']['SaveGif'] = TRUE;
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Yet I thought he said he didn't want animated avatars lol.
I know I wouldn't allow them, it would chase all the forum members away.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
This would make an awesome avatar
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I'm good with disabling avatar uploads, but I'm trying to look for a way to allow users to set external image links as their avatars.
For example, a user can just paste this image link http://i.imgur.com/KHh5kwq.gif within their avatar settings and it would set as their avatar without it being hosted on the local forum. It's called "Import a photo from a URL" in IPB.
-
Also I think it would be better if there was just 1 avatar, not a thumbnail and a large one. The thumbnail one can just be a css-resized version of the large one.
Changing size of avatar with only css does not make image weight smaller and if you use hover zoom it is very annoying to constantly see the larger image pop up when you hover an avatar to see their name.
I would recommend not to load up your forum with external link requests. It will cause more problems than hosting the images in the forum.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Or just have a consistent 100x100 avatar throughout the forum like most forums without any resizing. I guess I'm fine with hosting it local rather than external, but is it possible to not resize the image? (Animated .GIF avatars lose their animation when resized.) Image weight isn't really an issue in this case.
To save an animated gif as an avatar that is still animating add this to the config.php
$Configuration['Garden']['Thumbnail']['SaveGif'] = TRUE;
this defines the size of the avatar in profile page
$Configuration['Garden']['Profile']['MaxHeight']= 1000;
$Configuration['Garden']['Profile']['MaxWidth'] = 250;
this defines the size of the thumbnail for the avatar
$Configuration['Garden']['Thumbnail']['Size'] = 40;
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@vrijvlinder OMG it worked! Thank you so much!