Its not the problem with the code, its the problem with your template, and nice change will do the trick
anyways, here's something from me:

for a nice border, you have to do the following
[NOTE: You can only use this if you have upgraded to the newer version: 1.01]
Go to: AdminCP --> Styles & Templates --> The "
<<>>" button of your template
select Additional.css from CSS Templates and add this at the very bottom:
Code:
/**
* Avatar border by nCODE
*/
a.aw-avatar
{
*cursor: pointer; /* IE7 refuses to do this */
}
.aw-avatar img,
.aw-avatar .img,
.aw-avatarCropper
{
background-color: rgb(252, 252, 255);
padding: 2px;
border: 1px solid #a5cae4;
border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; -khtml-border-radius: 4px;
}
.aw-avatar .img
{
display: block;
background-repeat: no-repeat;
background-position: 2px 2px;
text-indent: 1000px;
overflow: hidden;
white-space: nowrap;
word-wrap: normal;
}
.aw-avatar .img { width: 32px; height: 32px; }
then you have to edit the
threadbit template:
find:
Code:
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>
replace with:
Code:
<a class="aw-avatar" href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>
find:
Code:
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>
replace with:
Code:
<a class="aw-avatar" href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>
Edit forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates as follows.
Find:
Code:
<a href="{vb:link member, {vb:raw forum}, null, 'lastposterid', 'lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>
Replace with:
Code:
<a class="aw-avatar" href="{vb:link member, {vb:raw forum}, null, 'lastposterid', 'lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>