discuz

推荐列表 站点导航

当前位置:首页 > 建站教程 > discuz >

discuz 主题关闭提示 单独查询调用

来源:网络整理  作者:网络  发布时间:2020-12-12 05:12
代码糙,最近脑子不行,用的fetch_all !--{if $_G[forum_thread][closed] == 1}--!--{eval $thread_mods = DB::fetch_all(select * from .DB::table...

代码糙,最近脑子不行,用的fetch_all
discuz 主题操作记录 之前自己一边测试一遍记录了一部分。
<!--{if $_G['forum_thread']['closed'] == 1}--> <!--{eval $thread_mods = DB::fetch_all("select * from ".DB::table("forum_threadmod")." where tid='$_G[tid]' and `action` in ('ECL','CLS') order by `dateline` desc limit 0,1")}--> <!--{if $thread_mods}--> <i class="fa fa-lock"></i> 该主题已被 {$thread_mods[0][username]} 锁定 (限时 {echo date("Y年m月d日 H:i",$thread_mods[0][dateline])} 至 {if $thread_mods[0]['action']=='ECL'}{echo date("Y年m月d日 H:i",$thread_mods[0][expiration])}{else}永久{/if}) <!--{/if}--> <!--{/if}-->  
重点是`action` in ('ECL','CLS'),这种ECL、CLS值的含义网上搜不到完整的解释。

相关热词: 调用 discuz

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/jz/discuz/2802.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

discuz 主题关闭提示 单独查询调用

2020-12-12 编辑:网络


代码糙,最近脑子不行,用的fetch_all
discuz 主题操作记录 之前自己一边测试一遍记录了一部分。
<!--{if $_G['forum_thread']['closed'] == 1}--> <!--{eval $thread_mods = DB::fetch_all("select * from ".DB::table("forum_threadmod")." where tid='$_G[tid]' and `action` in ('ECL','CLS') order by `dateline` desc limit 0,1")}--> <!--{if $thread_mods}--> <i class="fa fa-lock"></i> 该主题已被 {$thread_mods[0][username]} 锁定 (限时 {echo date("Y年m月d日 H:i",$thread_mods[0][dateline])} 至 {if $thread_mods[0]['action']=='ECL'}{echo date("Y年m月d日 H:i",$thread_mods[0][expiration])}{else}永久{/if}) <!--{/if}--> <!--{/if}-->  
重点是`action` in ('ECL','CLS'),这种ECL、CLS值的含义网上搜不到完整的解释。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/jz/discuz/2802.shtml

相关文章

风云图片

推荐阅读

返回discuz频道首页