supesite远程图片本地化并作为文章附件

*支持图片打水印,
*支持jpe/gif/png图片格式,
*不采集本站图片。

打开admin_spacenews.php文件:

查找:

$setsqlarr = array(
'message' => scensor($_POST['message'], 1),
'postip' => $_SGLOBAL['onlineip'],
'customfieldid' => $_POST['customfieldid'],
'customfieldtext' => $setcustomfieldtext
);

下面加:

//远程图片本地化 BEGIN
include_once(S_ROOT.'./admin/admin_spacenews_pic.php');

$msgarr = pregmessagearray($setsqlarr['message'], $msgurl);

picaddtodb($msgarr, $itemid); //作为文章附件入库

$setsqlarr['message'] = addslashes($msgarr['message']);

//远程图片本地化 END

原创文章,转载请注明出处。

相关文章:

1、DX无后缀名图片下载,后缀名指(.jpg/.gif)
https://www.onexin.net/dx-extension-picture-download-extension-means-jpg-gif/

2、CKEditor 3.4.1 WYSIWYG(所见即所得) 编辑器
https://www.onexin.net/ckeditor-3-4-1-wysiwyg-wysiwyg-editor/

3、远程图片本地化 For wordpress
https://www.onexin.net/remote-image-localization-for-wordpress/

4、UCH远程图片本地化添加水印
https://www.onexin.net/localization-of-uch-remote-image-watermark/

5、Supesite文章内TAG显示URL链接
https://www.onexin.net/supesite-article-in-tag-display-url-links/

转载请注明出处:https://www.onexin.net/supesite-remote-image-localization-and-as-a-post-attachments/

2 Replies to “supesite远程图片本地化并作为文章附件”

  1. 资讯管理模块 搜索的时候添加一个按作者搜索,(需要的是两张表联合查询)请问语句怎么写

Leave a Reply

Your email address will not be published. Required fields are marked *