Discuz群组图标大小的修改方法

      发布在:优化技巧, 前端技巧      评论:1 条评论

DZ(Discuz!)群组图标(变量:$group[icon])默认会被压缩成48*48像素,如若拉伸放大就会变模糊,解决方法如下:

打开\source\function\目录下的function_forum.php

查找:$img->Thumb($upload->attach['target'], './'.$uploadtype.'/'.$upload->attach['attachment'], 48, 48, 'fixwr');
其中的48,48就是宽高了,改成你要的规格即可
例如:$img->Thumb($upload->attach['target'], './'.$uploadtype.'/'.$upload->attach['attachment'], 66, 66, 'fixwr');

注意:修改后,已上传的群组图标还是小的,需要重新上传才会变大变清晰。

Responses
    加载中...
  1. Hi my loved one! I wish to say that this article is amazing, nice written and include almost all
    important infos. I'd like to look more posts
    like this .

    回复

滇ICP备14007443号-4