您的购物车目前是空的!
DiscuzX3.1论坛本地附件与远程附件的转换方法,详细步骤如下:
Table of Contents
这里根据后台提示和自己开启的远程服务器的FTP的信息配置就可以,要确保FTP具有以下权限:读取文件、写入文件、删除文件、创建目录、子目录继承。
涉及到的数据库表:
pre_forum_attachment(附件表)
pre_home_pic(家园表——这个表的remote字段比较特别,home本地图片—0;home远程图片—1;论坛本地图片—2;论坛远程图片—3)
pre_portal_article_title(门户文章标题表)
pre_portal_attachment(门户文章附件表)
pre_portal_topic_pic(门户专题图片表)
update pre_forum_attachment_0 set remote = '1'; update pre_forum_attachment_1 set remote = '1'; update pre_forum_attachment_2 set remote = '1'; update pre_forum_attachment_3 set remote = '1'; update pre_forum_attachment_4 set remote = '1'; update pre_forum_attachment_5 set remote = '1'; update pre_forum_attachment_6 set remote = '1'; update pre_forum_attachment_7 set remote = '1'; update pre_forum_attachment_8 set remote = '1'; update pre_forum_attachment_9 set remote = '1';
update pre_portal_article_title set remote=1; update pre_portal_attachment set remote=1; update pre_portal_topic_pic set remote=1;
update pre_home_pic set remote=remote+1;
按照以上操作后,打开网站附件–属性看看是否已经在远程地址上了,如果显示正常说明就已经把Discuz 本地附件成功转换为远程附件了。