discuz

推荐列表 站点导航

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

discuz x3.2 删除本主题最后由xx于xx编辑 移到正文下面

来源:网络整理  作者:网络  发布时间:2020-12-10 12:02
帖子里的最后由xx于xx编辑这种备注性的提示信息显示在帖子顶部占用很大位置,非常别扭。 可以把它移到帖子正文底...
'post_edit' => "本帖最后由 {editor} 于 {edittime} 编辑\n\n", 'post_edit_regexp' => '/\[i=s\] 本帖最后由 .*? 于 .*? 编辑 \[\/i\]\n\n/s', 'post_edithtml' => '本帖最后由 {editor} 于 {edittime} 编辑<br /><br />', 'post_edithtml_regexp' => '/\[i=s\] 本帖最后由 .*? 于 .*? 编辑 \[\/i\]<br \/><br \/>/s', 'post_editnobbcode' => '[ 本帖最后由 {editor} 于 {edittime} 编辑 ]\n\n', 'post_editnobbcode_regexp' => '/\[ 本帖最后由 .*? 于 .*? 编辑 \]\n\n/s',  

复制代码
复制代码
1.打开/source/class/model/model_forum_post.php,找到约459行:
把最后的. $this->param['message']移到前面,即
$this->param['message'] = $this->param['message']. lang('forum/misc', $this->param['htmlon'] ? 'post_edithtml' : (!$this->forum['allowbbcode'] || $this->param['bbcodeoff'] ? 'post_editnobbcode' : 'post_edit'), array('editor' => $editor, 'edittime' => $edittime));

帖子里的最后由xx于xx编辑这种备注性的提示信息显示在帖子顶部占用很大位置,非常别扭。
去掉其中的^,即
可以把它移到帖子正文底部。
复制代码
2.打开/source/language/forum/lang_misc.php,找到第32—37行: 'post_edit' => "本帖最后由 {editor} 于 {edittime} 编辑\n\n", 'post_edit_regexp' => '/^\[i=s\] 本帖最后由 .*? 于 .*? 编辑 \[\/i\]\n\n/s', 'post_edithtml' => '本帖最后由 {editor} 于 {edittime} 编辑<br /><br />', 'post_edithtml_regexp' => '/^\[i=s\] 本帖最后由 .*? 于 .*? 编辑 \[\/i\]&lt;br \/&gt;&lt;br \/&gt;/s', 'post_editnobbcode' => '[ 本帖最后由 {editor} 于 {edittime} 编辑 ]\n\n', 'post_editnobbcode_regexp' => '/^\[ 本帖最后由 .*? 于 .*? 编辑 \]\n\n/s',  
$this->param['message'] = lang('forum/misc', $this->param['htmlon'] ? 'post_edithtml' : (!$this->forum['allowbbcode'] || $this->param['bbcodeoff'] ? 'post_editnobbcode' : 'post_edit'), array('editor' => $editor, 'edittime' => $edittime)) . $this->param['message'];

相关热词: discuz

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

本文地址: https://www.juheyunku.com/jz/discuz/2162.shtml

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

discuz x3.2 删除本主题最后由xx于xx编辑 移到正文下面

2020-12-10 编辑:网络

'post_edit' => "本帖最后由 {editor} 于 {edittime} 编辑\n\n", 'post_edit_regexp' => '/\[i=s\] 本帖最后由 .*? 于 .*? 编辑 \[\/i\]\n\n/s', 'post_edithtml' => '本帖最后由 {editor} 于 {edittime} 编辑<br /><br />', 'post_edithtml_regexp' => '/\[i=s\] 本帖最后由 .*? 于 .*? 编辑 \[\/i\]<br \/><br \/>/s', 'post_editnobbcode' => '[ 本帖最后由 {editor} 于 {edittime} 编辑 ]\n\n', 'post_editnobbcode_regexp' => '/\[ 本帖最后由 .*? 于 .*? 编辑 \]\n\n/s',  

复制代码
复制代码
1.打开/source/class/model/model_forum_post.php,找到约459行:
把最后的. $this->param['message']移到前面,即
$this->param['message'] = $this->param['message']. lang('forum/misc', $this->param['htmlon'] ? 'post_edithtml' : (!$this->forum['allowbbcode'] || $this->param['bbcodeoff'] ? 'post_editnobbcode' : 'post_edit'), array('editor' => $editor, 'edittime' => $edittime));

帖子里的最后由xx于xx编辑这种备注性的提示信息显示在帖子顶部占用很大位置,非常别扭。
去掉其中的^,即
可以把它移到帖子正文底部。
复制代码
2.打开/source/language/forum/lang_misc.php,找到第32—37行: 'post_edit' => "本帖最后由 {editor} 于 {edittime} 编辑\n\n", 'post_edit_regexp' => '/^\[i=s\] 本帖最后由 .*? 于 .*? 编辑 \[\/i\]\n\n/s', 'post_edithtml' => '本帖最后由 {editor} 于 {edittime} 编辑<br /><br />', 'post_edithtml_regexp' => '/^\[i=s\] 本帖最后由 .*? 于 .*? 编辑 \[\/i\]&lt;br \/&gt;&lt;br \/&gt;/s', 'post_editnobbcode' => '[ 本帖最后由 {editor} 于 {edittime} 编辑 ]\n\n', 'post_editnobbcode_regexp' => '/^\[ 本帖最后由 .*? 于 .*? 编辑 \]\n\n/s',  
$this->param['message'] = lang('forum/misc', $this->param['htmlon'] ? 'post_edithtml' : (!$this->forum['allowbbcode'] || $this->param['bbcodeoff'] ? 'post_editnobbcode' : 'post_edit'), array('editor' => $editor, 'edittime' => $edittime)) . $this->param['message'];

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

相关文章

风云图片

推荐阅读

返回discuz频道首页