I think you missed one step in the mod for showthread.php
Change
Code:
$userinfo=$DB_site->query_first("SELECT userid,email,username,usertitle,signature,showemail,homepage,icq,aim,yahoo,joindate,posts FROM user WHERE userid=$userid");
To this ... (add the avimage into the select statement)
Code:
$userinfo=$DB_site->query_first("SELECT userid,email,username,usertitle,signature,showemail,homepage,icq,aim,yahoo,joindate,posts,avimage FROM user WHERE userid=$userid");
Before you add this piece...
Code:
/* Avatar Hack by Moonwolf */
if ($userinfo[avimage] and $showavatars==1 and is_file($userinfo[avimage])) {
clearstatcache();