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 - 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> Code:
<else /> <if condition="$bbuserinfo[showavatars]"> <td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$stylevar[imgdir_misc]/noavatar.gif" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a><br /><a href="profile.php?$session[sessionurl]do=editavatar"><b>Set Avatar</b></a></td> </if> </if> In your templete memberlist_resultbits find this: 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> 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" /> Code:
<if condition="$show['avatar']"> <div class="smallfont"> <br /><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> </div> </if> Code:
<else /> <if condition="$bbuserinfo[showavatars]"> <div class="smallfont"> <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="your url link/noavatar.gif" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> </div> You can make your own pictures (avatar) for users who did not select any avatar! Thanks Download No files for download. |
Similar Mods
Show Thread Enhancements [1e2] Gravatar as Default Avatar for users without image: auto generate random avatar | vBulletin 3.8 Add-ons |
Show Thread Enhancements [1e2] Gravatar as Default Avatar for users without image: auto generate random avatar | vBulletin 3.7 Add-ons |
Add-On Releases Default avatar for users with no selected avatar | vBulletin 3.8 Add-ons |
[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 |