This is a simple template edit that allows animated avatars to show in posts. You have two options here:
1. Forces the size of all avatars to be 96x96
2. Allow avatars to use their aspect ration.
Forced 96x96 edit: Open template message_user_info
Find
Replace withPHP Code:<xen:avatar user="$user" size="m" />
Aspect ration edit: Open template message_user_infoPHP 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>
Find
Replace withPHP Code:<xen:avatar user="$user" size="m" />
Edit: Working on the URL for the avatar to profile. Anyone know the code for this?PHP 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}" style="max-height:96px;max-width:96px;" itemprop="photo" />
</a>
Edit: Complete.
Edit: Updated added username to the class in the url. Remove this if you do not want the profile card popping up and you just want a direct link to the profile page.
source thread : http://xenforo.com/community/threads...threads.14807/View more the latest threads:
- More BB-codes for the BB Code Manager
- Fb Send Button threads "Share This...
- For all smartphones: Android,ios, nokia, win...
- MassAlert - Send custom alerts to groups of...
- Viet-XF - Advanced Forum Statistics
- Danh sách Add-ons and Modifications Xenforo...
- Category Description Tooltips
- Add custom sidebar block
- Sidebar Advertisements
- Announcing Forum Runner - XenForo...







Trả Lời Với Trích Dẫn

Bookmarks