macc
03-05-2009, 10:00 PM
Hello! With this modification you can add default avatar picture to users mini statistics block for those who did not select avatars!
Open memberinfo template - found memberinfo_block_ministats templete and find this code <if condition="$prepared['avatarurl']">
<td><img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" />
and after this add this code below
<else />
<if condition="$bbuserinfo[showavatars]">
<td class="alt2"><a href="profile.php?$session[sessionurl]do=editavatar"><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>
Done!
Upload novatar.gif in "your template"/images/misc folder.
Want to see this in action? Welcome - http://libar-libar.com
Regards,
macc
Open memberinfo template - found memberinfo_block_ministats templete and find this code <if condition="$prepared['avatarurl']">
<td><img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" />
and after this add this code below
<else />
<if condition="$bbuserinfo[showavatars]">
<td class="alt2"><a href="profile.php?$session[sessionurl]do=editavatar"><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>
Done!
Upload novatar.gif in "your template"/images/misc folder.
Want to see this in action? Welcome - http://libar-libar.com
Regards,
macc