discuz缩略图加水印的修改方法
- 2019年11月28日
- beetheme.cn
- 已收录
- 39
(window.slotbydup = window.slotbydup || []).push({
id: "u6201117",
container: "_loc2j2sosji",
async: true
});
论坛开启了缩略图后,缩略图无法显示水印图片,点击查看大图才可见到,
1、打开sourcefunctionfunction_post.php
2、查找
$image->Watermark($_G['setting']['attachdir'].'/forum/'.$newattachfile[$aid], '', 'forum');
在其代码上面添加
// 缩略图打水印
if (file_exists($_G['setting']['attachdir'] . '/forum/' . $newattachfile[$aid] . '.thumb.jpg')) {
$image->Watermark($_G['setting']['attachdir'] . '/forum/' . $newattachfile[$aid] . '.thumb.jpg', '', 'forum');
}
// 缩略图打水印end
3、查找
C::t('forum_attachment_unused')->delete($aid);
在其代码上面添加
// 缩略图打水印
if($_G['setting']['watermarkstatus'] && empty($_G['forum']['disablewatermark'])) {
if (file_exists($_G['setting']['attachdir'] . '/forum/' . $attach['attachment'] . '.thumb.jpg')) {
$image->Watermark($_G['setting']['attachdir'] . '/forum/' . $attach['attachment'] . '.thumb.jpg', '', 'forum');
}
}
// 缩略图打水印结束
修改好后上传覆盖即可。
精彩推荐
也想出现在这里?联系我们吧
本站承接 WordPress / DedeCMS / ThinkPHP 等
系统建站、仿站、开发、定制等业务!
1. 本站所有资源来源于用户上传和网络,仅作为演示数据,如有侵权请邮件联系站长!
2. 本站承接各类网站建设,仿站,多平台小程序搭建制作!
3. 本站联系QQ:897918909
beetheme资源网 » discuz缩略图加水印的修改方法
2. 本站承接各类网站建设,仿站,多平台小程序搭建制作!
3. 本站联系QQ:897918909
beetheme资源网 » discuz缩略图加水印的修改方法