打开includes/functions_display.php
1,找到
[code] if (empty($avatar) || !$avatar_type || (!$config['allow_avatar'] && !$ignore_config))
{
return '';
}[/code]
将
[code]return '';[/code]
替换为
[code]return '<img src="images/avatars/no_avatar.gif" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';[/code]
保存,上传后覆盖。
2,然后把一个名称为no_avatar.jpg的图片文件
例如:

上传到你的论坛目录/images/avatars文件夹中
然后刷新帖子即可看到:没有设置头像的用户头像显示出

目前头像列表因为头像图片过多(1020张)需要分页处理,待更改。 三爱克斯,先领券,淘宝天猫,京东商城,拼多多一网打尽