// All about author by Darksider
$ava = $db->get_row($db->query("SELECT * FROM ".PREFIX."_users WHERE name='".$row['autor']."'"));
if ($ava['foto']) $tpl->set('{sf_foto}', "<img src=\"".$config['http_home_url']."uploads/fotos/".$ava['foto']."\">");
else
$tpl->set('{sf_foto}', "<img src=\"{THEME}/images/noavatar.png\">");
$tpl->set('{sf_pm}', "<a href=\"$PHP_SELF?do=pm&doaction=newpm&user=".$row['autor']."\">".$lang['news_pmnew']."</a>");
$tpl->set('{sf_icq}', stripslashes($ava['icq']));
$tpl->set('{sf_comments}', "<a href=\"".$PHP_SELF."?do=lastcomments&userid=".$ava['user_id']."\">".$ava['comm_num']."</a>");
$tpl->set('{sf_news}',"<a href=\"".$PHP_SELF."?subaction=allnews&user=".urlencode($row['autor'])."\">".$ava['news_num']."</a>" );
// All about author by Darksider