Default avatar for users with no selected avatar
Just some help if you want to set the default avatar to users who did not select any avatar. It is for postbit, postbit_legacy and member list template.
In your postbit template find - PHP Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
PHP Code:
<else />
In your templete memberlist_resultbits find this: PHP Code:
<if condition="$show['avatar']"><img src="$avatarurl" border="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" /><else /> </if></td></if>
PHP Code:
<img src="$stylevar[imgdir_misc]/noavatar.gif" border="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" />
For postbit_legacy find PHP Code:
<if condition="$show['avatar']">
PHP Code:
<else />
Change "your url link" to your link to picture (avatar)! You can make your own pictures (avatar) for users who did not select any avatar! Hope this will help someone! Want to see this in action? - http://libar-libar.com Regards, macc Download No files for download. Screenshots |
Similar Mods
[Release -Gamma / RC1 / RC2]Default Avatar for users with no avatar :) | vBulletin 3.0 Template Modifications |
[Release -Gamma / RC1 / RC2]Default Avatar for users with no avatar :) | vBulletin 3.0 Template Modifications |