第一步、找到并打开/include/extend.func.php文件,在其最后面加上如下代码:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function face($mid)
{
global $dsql;
if($mid <> 0)
{
$row = $dsql->GetOne(“select * from dede_member where mid = ‘$mid'”);
if($row[‘face’] == ”)
{
$face = ‘<img width=”28″ height=”28″ src=”/member/templets/images/dfboy.png” />';
}
else
{
$face = $row[‘face’];
$face = ‘<img width=”28″ height=”28″ src=”‘.$face.'” />';
}
}
return $face;
}