1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Animated avatar restrictions

Discussion in 'Styling and Customization Questions' started by Zynektic, May 25, 2015.

  1. Zynektic

    Zynektic Well-Known Member

    Hi there,

    I was reading a thread on Se7enSins forums about modifying the templates so you can use the default image handler to show animated avatars in x locations and was wondering if there is a way to modify it as such to restrict access to only show certain usergroups animated avatars even if another usergroup has one too.

    Code:
    <a class="username avatar Av{$user.user_id}l" href="{xen:link members, $user}">
    <img src="{xen:helper avatar, $user, l, 'true'}" alt="{$user.username}" height="96px" width="96px" itemprop="photo" />
    </a>
    The above is the code that is mentioned to modify so that it would show anyone with an animated avatar inside the thread using the default handler. I was looking at conditional statements and unsure if that is what I was looking for or if there was another way to modify this but as a temporary work around to me wanting to get an add-on coded to restrict animated avatars to usergroups can it be achieved somehow with the above.

    For example, my Premium usergroup is ID 5 and VIP is ID 12, my registered usergroup is ID 2. I want to allow the Premium and VIP's animated avatar to show in the thread but NOT the registered user if they have an animated avatar.

    Is it possible and if so, how can one achieve it if someone can modify the code for me, thanks.

    Edit: I noticed @Jaxel has something said to achieve this on his premium upgrade page so it should somehow be achievable, thanks.
     

Share This Page