当前位置:首页 > 未分类 > 正文内容

Discuz! X版本地附件与远程附件的转换语言

someone2年前 (2024-11-13)未分类183

一、本地转移到远程


附件

update pre_forum_attachment_0 set remote=1 where remote=0;
update pre_forum_attachment_1 set remote=1 where remote=0;
update pre_forum_attachment_2 set remote=1 where remote=0;
update pre_forum_attachment_3 set remote=1 where remote=0;
update pre_forum_attachment_4 set remote=1 where remote=0;
update pre_forum_attachment_5 set remote=1 where remote=0;
update pre_forum_attachment_6 set remote=1 where remote=0;
update pre_forum_attachment_7 set remote=1 where remote=0;
update pre_forum_attachment_8 set remote=1 where remote=0;
update pre_forum_attachment_9 set remote=1 where remote=0;


门户

update pre_portal_article_title set remote=1 where remote=0;
update pre_portal_attachment set remote=1 where remote=0;
update pre_portal_topic_pic set remote=1 where remote=0;


相册的{相册表中的remote取值还有一种情况为remote=2(论坛附件图片保存到相册)

update pre_home_pic set remote=remote+1;



二、远程转移到本地


附件

update pre_forum_attachment_0 set remote=0 where remote=1;
update pre_forum_attachment_1 set remote=0 where remote=1;
update pre_forum_attachment_2 set remote=0 where remote=1;
update pre_forum_attachment_3 set remote=0 where remote=1;
update pre_forum_attachment_4 set remote=0 where remote=1;
update pre_forum_attachment_5 set remote=0 where remote=1;
update pre_forum_attachment_6 set remote=0 where remote=1;
update pre_forum_attachment_7 set remote=0 where remote=1;
update pre_forum_attachment_8 set remote=0 where remote=1;
update pre_forum_attachment_9 set remote=0 where remote=1;


门户及相册

update pre_portal_article_title set remote=0 where remote=1;
update pre_portal_attachment set remote=0 where remote=1;
update pre_portal_topic_pic set remote=0 where remote=1;
update pre_home_pic set remote=remote-1;


扫描二维码推送至手机访问。

版权声明:本文由一个存档发布,如需转载请注明出处。

本文链接:https://blog.allhp.fun/?id=28

标签: DZ通用
分享给朋友:

“Discuz! X版本地附件与远程附件的转换语言” 的相关文章

添加手机版淘帖插件按钮

mz./template/rtj1009_app/touch/forum/viewthread.php搜索<!--{if $rtj1009_m_config['ren_view_topxx'] ==2 && !$post[...

Discuz!修改禁用会员提示

source→language→lang_message.php修改以下'user_banned' => '抱歉,您的账号因违规被限制使用,无法访问本站点','user_banned_has_expiry' => '抱歉,您的账号因...

如何在 Debian 11 上使用 UFW 设置防火墙

整体思路同centos,设置ip白名单,删除80和443之外的所有非必要端口,删除http和https之外的所有服务。安装sudoapt install sudo步骤 1 – 安装 UFW默认情况下,Debian 不安装 UFW。如果您遵循了整个初始服务器设置教程,您将安装并启用 UFW。如果没有,...

Discuz! X3.5 解决小图标不能显示的方法

出处Discuz! X3.5 解决小图标不能显示的方法 - Discuz! X 教程 - Powered by Discuz! (dismall.com)Nginx 在域名.conf 内部加上(补充:服务器如果安装宝塔,直接点击站点设置-配置文件,搜索'#SSL-START SSL相关配置&...

Discuz!售价贴未购买前展示分类信息栏

找到模版目录的viewthread_pay.htm在其头部添加以下代码:<div class="typeoption"> <!--{if $threadsortshow['optionlist'] == ...

Discuz!批量替换帖子中的内容

Discuz!批量替换帖子中的内容使用sql语句的方法来处理:论坛全部帖子内容中的“A内容”替换成“B内容”的sql语句UPDATE pre_forum_post SET message=REPLACE(message,’要替换的字符串’,’替换后的字符串’);说明:p...

SSH常用命令

SSH常用命令

ssh软件Xshell4.rar下载文件:wget https://allhp.fun/name.tar.gz/*下载远程服务器上的文件 */wget -c https://allhp.fun/name.tar.gz/* 继续下载上次未下载完的文件 */解压缩文件:tar xvf...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。