dedecms教程:缩略图不加水印 文章页图片加水印的方法

解决方法

1、打开 include/dialog/select_images.php 文件

找到

<input type=’checkbox’ name=’needwatermark’ value=’1′ class=’np’ <?php if($photo_markup==’1′) echo “checked”; ?> />水印  

修改为

<input type=’checkbox’ name=’needwatermark’ value=’1′ class=’np’ />水印

解析:这样做的目的是为了控制水印默认为未选中状态

2、打开 include/dialog/select_images_post.php 文件

找到

if(in_array($imgfile_type, $cfg_photo_typenames))

{

WaterImg($fullfilename,’up’);

}

修改为

if(in_array($imgfile_type,$cfg_photo_typenames) && isset($needwatermark))

{

WaterImg($fullfilename,’up’);

}

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容