![]() |
Block animated avatars
On my forums we try to enhance the reading experience, and do not allow our members to use animated avatars. One of my members have written the following hack for my forums, and I got his permission to post it here on vbulletin.org.
What this hack does is to prevent your users from uploading an animated image. It does this by checking if the image contains more than one frame. It is not retroactive, and your current avatars will remain as is. Hope you will enjoy this. Changes: 1 New Phrase 1 File to edit (profile.php) Installtime: 45 sec In profile.php, find: Code:
// ####################### SET PHP ENVIRONMENT ########################### Code:
// Block Animated Avatars Hack - by Scha at freakforum.nu In profile.php, find: Code:
if ($avatarid == 0) Code:
// Block Animated Avatars Hack - by Scha at freakforum.nu Add phrase 'avataranimated' under the category 'Front-End Error Messages' with the following content Code:
We do not allow the usage of animated avatars on our forums. Please consider uploading a static image instead. Done. Please leave a comment if there is something you are wondering about, or if you encounter a bug. |
very cool!
|
what is wrong with animated avatars??? :(
Well thanks for sharing anyways nso ;) |
Polo: On my forums we value the information it contains above the package it is delivered in. Animated avatars steales focus from the content, and it is more intensive on 64K'ers since it in essense contains several images in one.
|
Screenshot please ?
|
Quote:
|
Nice.. but needs a usergroup conditional so certain usergroups can have animated avatars.
|
Quote:
priority 2, WAI checkpoint 7.3 - "Do not create a blinking effect with animated gif images." Some people with cognitive or visual disabilities are unable to read moving text quickly enough or at all. Movement can also cause such a distraction that the rest of the page becomes unreadable for people with cognitive disabilities. Screen readers are unable to read moving text. People with physical disabilities might not be able to move quickly or accurately enough to interact with moving objects. |
Quote:
|
Is there a way to make this so Admins can have animated avatars but not anyone else? Might be a nice way to add a perk for certain membergorups on a site. ;)
|
All times are GMT. The time now is 01:41 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|