原帖由 小水鸡 于 2006-9-18 01:41 发表
楼主睡觉了吗?在线等!
等你半夜起床上厕所的时候顺便教教小弟解决这些问题好吗?!
万分感激!
if($allowavatar || $avatarshowstatus || $allownickname) {
$query = $db->query("SELECT mf.nickname, mf.avatar, mf.avatarwidth, mf.avatarheight, m.avatarshowid, m.gender
FROM {$tablepre}memberfields mf, {$tablepre}members m WHERE m.uid='$discuz_uid' AND mf.uid=m.uid");
$member = $db->fetch_array($query);
} else {
$member = array('nickname' => '', 'avatar' => '', 'avatarshowid' => 0);
}
$avatarshow = $avatarshowstatus ? $avatar = avatarshow($member['avatarshowid'], $member['gender']) : '';
$avatar = $avatarshowstatus != 2 && $member['avatar'] ? "<img src=\"$member[avatar]\" width=\"$member[avatarwidth]\" height=\"$member[avatarheight]\" border=\"0\">" : '';
这段代码中的红色是头像大小设置 |