Discuz教程网

[已解决]DZ X3 水印问题

 关闭 [复制链接]
authicon JAZZ-NA 发表于 2013-6-19 14:00:45 | 显示全部楼层 |阅读模式

上传的图片,帖内显示的图片并没有添加水印。而需要点击图片后,才能看到水印




195648quu0qcew85nlpau4.png
最佳答案
avatar
2013-7-12 23:18:22
需要修改源码的,,,默认是点击图片后才有水印。。缩略图没有水印,,

第一步:打开打开source\function\function_post.php

第二步:查找
$image->Watermark($_G['setting']
['attachdir'].'/forum/'.$newattachfile[$aid], '', 'forum');

在其上面添加
// 缩略图打水印
         if (file_exists($_G['setting']['attachdir'] . '/forum/' . $newattachfile[$aid] .
'')) {
                    $image->Watermark($_G['setting']['attachdir'] . '/forum/' .
$newattachfile[$aid] . '', '', 'forum');
                }
                // 缩略图打水印end


第三部:查找
C::t('forum_attachment_unused')->delete($aid);

在其上面添加
// 缩略图打水印
       if (file_exists($_G['setting']['attachdir'] . '/forum/' . $attach['attachment'] .
'')) {
                $image->Watermark($_G['setting']['attachdir'] . '/forum/' . $attach
['attachment'] . '', '', 'forum');
            }
            // 缩略图打水印结束


就ok了



上一篇:X3:贴内容页DIY不能保存
下一篇:模板修改问题
authicon 山外人¥机器 发表于 2013-7-9 10:56:51 | 显示全部楼层
还有这事?没发现呢
authicon 夜丶美德淒涼 发表于 2013-7-10 18:42:04 | 显示全部楼层
http://cutftp.gotoip4.com/thread-128-1-1.html    方法   看看后台设置的是哪种类型
authicon 马后炮化工 发表于 2013-7-12 23:18:22 | 显示全部楼层    本楼为最佳答案   
需要修改源码的,,,默认是点击图片后才有水印。。缩略图没有水印,,

第一步:打开打开source\function\function_post.php

第二步:查找
$image->Watermark($_G['setting']
['attachdir'].'/forum/'.$newattachfile[$aid], '', 'forum');

在其上面添加
// 缩略图打水印
         if (file_exists($_G['setting']['attachdir'] . '/forum/' . $newattachfile[$aid] .
'')) {
                    $image->Watermark($_G['setting']['attachdir'] . '/forum/' .
$newattachfile[$aid] . '', '', 'forum');
                }
                // 缩略图打水印end


第三部:查找
C::t('forum_attachment_unused')->delete($aid);

在其上面添加
// 缩略图打水印
       if (file_exists($_G['setting']['attachdir'] . '/forum/' . $attach['attachment'] .
'')) {
                $image->Watermark($_G['setting']['attachdir'] . '/forum/' . $attach
['attachment'] . '', '', 'forum');
            }
            // 缩略图打水印结束


就ok了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-5-20 00:14

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表