XF 2.3 Gif Avatars Addon Development

QuackieMackie

New member
Hi folks,

I'm brand new to PHP and XenForo addon development (just a few hours in) but I’ve already built a basic widget with basic dynamic content. Now I want to move on to my actual goal. What I want to build is a permission that controls whether a user's avatar GIF animates or remains static.

This would mean users can upload gifs, but whether or not they move is permission based. (I would add a permission to block gif uploads at some point)

So my question is, can I hook into the avatar rendering to check if the [userWithGifAvatar] has a specific permission, and based on that, either allow or stop the animation?
 
Back
Top Bottom