PDA

View Full Version : Mini Mods - Showgroups with Avatars


Kolbi
08-18-2009, 10:00 PM
Search in the template showgroups_usergroupbit
<td class="$bgclass">$user[onlinestatus]>add after
<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:
Demo (http://www.2-wheel-planet.de/forumleaders.html)

For people how want to have a fixed avatar width:
<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

ITDarasgah
08-19-2009, 05:10 PM
good ....very nice let me try

students_forum
08-20-2009, 03:11 PM
This is a nice little feature
Thanks

Faizan
08-21-2009, 02:00 AM
really appricated dear

DubaiZone
08-21-2009, 09:18 PM
Nice But really you know ..
The image size will be problem to us ..
Coz some avatars would be larg and big and some might be small
the result will be big miss in the Showgroups ..
But THANK YOU for the MOD ..

Kolbi
08-23-2009, 05:19 PM
Nice But really you know ..
The image size will be problem to us ..
Coz some avatars would be larg and big and some might be small
the result will be big miss in the Showgroups ..
But THANK YOU for the MOD ..

If you tell me which size the avatars should be, I can modify it for you.

Kolbi
10-12-2009, 07:34 PM
Little update for people how want to have a fixed width of their shown avatars in the showgroups :)

danyxxx
09-13-2011, 02:23 PM
Nice modification, installed !

RRCamellini
11-11-2012, 09:26 PM
thx a lot my friend