无法显示头像的截图,在活跃用户页面,http://zhidao.hmwis.com/user/activelist.html:
解决方案:
lib/global.func.php
function get_avatar_dir
//return $setting[‘ucenter_url’] . ‘/avatar.php?uid=’ . $uid . ‘&size=middle’;
@include TIPASK_ROOT . ‘/data/ucconfig.inc.php’;
return UC_API . ‘/avatar.php?uid=’ . $uid . ‘&size=middle’;
原因在于:$setting[‘ucenter_url’]为空的!
解决之后,截图如下:
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/250589.html