Back to vBulletin 3.8 Template Modifications

Showgroups with Avatars
Mod Version: 1.00, by Kolbi

vB Version: 3.8.x Rating: (1 vote - 4.00 average) Installs: 18
Released: 19 Aug 2009 Last Update: 11 Sep 2009 Downloads: 107
Not Supported Template Edits Auto-Template Translations  

Search in the template showgroups_usergroupbit
Code:
<td class="$bgclass">$user[onlinestatus]>
add after
Code:
<br />
<if condition="$vbulletin->options['usefileavatar']">
    <if condition="$user['avatarrevision']"><img src="$vboptions[avatarurl]/avatar$user[userid]_$user[avatarrevision].gif" title="$user[username]'s Avatar" alt="Avatar" border="0" /></if>
<else />
    <img src="image.php?u=$user[userid]&amp;dateline=$avatar[dateline]" title="$user[username]'s Avatar" alt="Avatar" border="0" />
</if>
The attached product is for people who use the TMS.
Product and template edits will be included automatically then.

It will look like:
http://www.2-wheel-planet.de/forumleaders.html

For people how want to have a fixed avatar width:
Code:
<br />
<if condition="$vbulletin->options['usefileavatar']">
    <if condition="$user['avatarrevision']"><img src="$vboptions[avatarurl]/avatar$user[userid]_$user[avatarrevision].gif" title="$user[username]'s Avatar" alt="Avatar" border="0" width="XX" /></if>
<else />
    <img src="image.php?u=$user[userid]&amp;dateline=$avatar[dateline]" title="$user[username]'s Avatar" alt="Avatar" border="0" width="XX" />
</if>
Just remove the XX from width="XX" and replace it with the width you want to have shown in the showgroups.
The attached product is without this fixed width!
But this is only neccessary if you allow for example your moderators another size for their avatars than your administrators have.

Matthias

Download

File Type: %1$s product-showgroups1.xml (1.9 KB, 91 downloads)


vblts.ru supports vBulletin®, 2022-2024