The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Limiting Avatar File Size (Kb)?

View previous topic View next topic Go down

Solved Limiting Avatar File Size (Kb)?

Post by PKenova on June 15th 2014, 5:53 am

Our CSS Stylesheet is set to automatically resize avatar pics to 80 x 80. The avatar image pixel size is not the issue here.

Some of our users like to load animated avatar pics. They are resized without problems. However, these animation pics still require substantial FILE SIZE (Mb) and that slows the browsing experience for some other users.

In some cases, some people have repeatedly linked 2 Gb avatar files.

Is there a means by which we can prevent an avatar pic from loading if:
(a) the file size is larger than X Kb? (50 Kb) AND/OR
(b) is an animation file (*.gif)?

Our forum is running on "Invision".

Thanks in advance for your help.

Cheers, PK.

PKenova
New Member

Male Posts : 7
Reputation : 1
Language : English
Location : Australia

http://www.insuncorp.com

Back to top Go down

Solved Re: Limiting Avatar File Size (Kb)?

Post by Pizza Boi on June 16th 2014, 7:38 am

Hi Very Happy

AP < Display < Avatars Management < Personal Avatars

By putting a smaller number, it should stop the user from uploading them.

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Limiting Avatar File Size (Kb)?

Post by PKenova on June 17th 2014, 8:38 am

@Pizza Boi wrote:Hi Very Happy

AP < Display < Avatars Management < Personal Avatars

By putting a smaller number, it should stop the user from uploading them.

Regards,
Pizza Boi
Thanks for the reply.Smile

Unfortunately there's no option there to limit the file Kb size, and the only option is the maximum pixel dimensions (e.g. 80 x 80) - we already have both that and our CSS stylesheet set for 80x80.

For the moment I'm just having to ask users who link to off-site avatars to be responsible and then manually check their animated avatar Kb file size.

Then if they keep linking multi-Gb animations I can go into admin and disable their ability to display any personalized avatar (a last resort).

PKenova
New Member

Male Posts : 7
Reputation : 1
Language : English
Location : Australia

http://www.insuncorp.com

Back to top Go down

Solved Re: Limiting Avatar File Size (Kb)?

Post by Jophy on June 17th 2014, 9:08 am

Hello,

We don't have option to limit the file size to upload for now. Sorry.

I'm not sure if it can be achieved by JS coding. (I believe it can only be done by PHP)

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

Solved Re: Limiting Avatar File Size (Kb)?

Post by Pizza Boi on June 17th 2014, 9:18 am

Hi Very Happy

Unfortunately, PHP coding isn't advisable nor is it allowed in Forumotion for security purposes if you want to ask how Sad .

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Limiting Avatar File Size (Kb)?

Post by PKenova on June 17th 2014, 9:39 am

Thanks Jophy & Pizza Boi - I appreciate your answers - it's good to know so I can stop looking for a solution.Smile

My manual workaround solution should do fine.

Cheers, PK.

PKenova
New Member

Male Posts : 7
Reputation : 1
Language : English
Location : Australia

http://www.insuncorp.com

Back to top Go down

Solved Re: Limiting Avatar File Size (Kb)?

Post by Jophy on June 17th 2014, 9:40 am

Solved

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum