discuz x3.2 删除本主题最后由xx于xx编辑 移到正文下面
帖子里的最后由xx于xx编辑这种备注性的提示信息显示在帖子顶部占用很大位置,非常别扭。
可以把它移到帖子正文底部。
1.打开/source/class/model/model_forum_post.php,找到约459行:
$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'];
复制代码
把最后的. $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));
复制代码
复制代码
去掉其中的^,即
可以把它移到帖子正文底部。
1.打开/source/class/model/model_forum_post.php,找到约459行:
$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'];
复制代码
把最后的. $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));
复制代码
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\]<br \/><br \/>/s', 'post_editnobbcode' => '[ 本帖最后由 {editor} 于 {edittime} 编辑 ]\n\n', 'post_editnobbcode_regexp' => '/^\[ 本帖最后由 .*? 于 .*? 编辑 \]\n\n/s', |
复制代码
去掉其中的^,即
'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', |
免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。
热门教程
discuz电脑版、手机版去除标题title中的PoweredbyDisc2018-12-27
Discuz 触屏手机版支持视频播放的方法2018-12-27
discuz手机版支持视频播放的修改方法2018-12-27
Discuz! 程序 X3.2、X3.3升级3.4教程2018-12-27
discuz X3以及X3.4论坛搬家完美详细教程2019-01-02
怎么开启手机版2018-12-25
去掉Discuz论坛底部的Powered 等版权信息2018-12-27
discuz! x3.4插件位置DZ论坛X3版本插件在哪个文件夹?2018-12-26
Mysql修改端口号后织梦dedecms的修改方法2018-12-27
Discuz!X3.2论坛实现全站HTTPS终极方法教程2018-12-28