You could alternatively try doing this :
PHP Code:
PHP:
if ($post[avatarid]!=0) {
$avatarurl=$post[avatarpath];
} else {
if ($post[hascustomavatar] and $avatarenabled) {
$avatarurl="avatar.php?userid=$post[userid]&dateline=$post[avatardateline]";
} else {
$avatarurl="$defaultavurl";
}
}
if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) {
$post[avatar]="$defaultavurl";
} else {
eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
}
Then going to :
yourdomain.com/forum/admin/setting.php?action=add
Properties :
Setting Category - Avatars
Title - Default Avatar Url
Variable Name - defaultavurl
Value - (leave blank)
Description - Url to the Default Avatar Image
Code to generate option - (leave blank)
Display Order - 1
Then Save...
Then edit your options and enter the url of the default avatar...
=-=
What are the advantages of my way? It is easier to change the Default Avatar url
Satan