客户需要的功能,因为时间原因暂时未整理成现成配置,这里记录一下以后再整理。 组件名称:帖子 code 分类字段回复查看 件变量:viewthread_code_all_output@yz_sortreply 手机嵌入:否 组件类型:代码(code) 模板内容: global $threadsortshow; static $isreply; $typetemplate = $threadsortshow['typetemplate']; if ($threadsortshow['typetemplate']){ if(strpos($typetemplate, '[hide]') !== FALSE && strpos($typetemplate, '[/hide]') !== FALSE) { if($isreply === null) { if(!$_G['forum']['ismoderator']) { if($_G['uid']) { $isreply = C::t('forum_post')->fetch_pid_by_tid_authorid($_G['tid'], $_G['uid']); } } else { $isreply = TRUE; } } if($isreply) { $typetemplate = preg_replace("/\[hide\]\s*(.*?)\s*\[\/hide\]/is", "\\1", $typetemplate); } else { $typetemplate = preg_replace("/\[hide\](.*?)\[\/hide\]/is", '回复可见', $typetemplate); } } $threadsortshow['typetemplate'] = $typetemplate; } |
插件介绍:雨哲超强嵌入点 插件是一款平台插件,通过后台添加在前台显示(基于模板的hook位置)指定内容的功能。
GMT+8, 2024-5-20 17:59 , Processed in 0.087109 second(s), 11 queries , Xcache On.
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.