论坛开启了缩略图后,缩略图无法显示水印图片,点击查看大图才可见到,<div>
<div>
1、打开sourcefunctionfunction_post.php<div>
<div>
2、查找<div>
<div>
<pre class="brush:php;toolbar:false"> $image->Watermark($_G['setting']['attachdir'].'/forum/'.$newattachfile[$aid], '', 'forum');</pre><div>
<div>
在其代码上面添加<div>
<div>
<div><pre class="brush:php;toolbar:false">// 缩略图打水印
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'); } } // 缩略图打水印结束