在论坛帖子中,备注性提示信息(如“本帖最后由 xx 于 xx 编辑”)通常显示在顶部,这可能会占用较大位置并影响用户体验。为了优化这一布局,可以将该提示信息移动到帖子正文的底部。以下是实现这一功能的具体步骤: 首先,需要修改文件 `/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));
    
接下来,打开文件 `/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} 编辑

', 'post_edithtml_regexp' => '/^\\[i=s\\] 本帖最后由 .*? 于 .*? 编辑 \\[\\/i\\]

/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} 编辑

', 'post_edithtml_regexp' => '/\\[i=s\\] 本帖最后由 .*? 于 .*? 编辑 \\[\\/i\\]

/s', 'post_editnobbcode' => '[ 本帖最后由 {editor} 于 {edittime} 编辑 ]\\n\\n', 'post_editnobbcode_regexp' => '/\\[ 本帖最后由 .*? 于 .*? 编辑 \\]\\n\\n/s',
完成以上修改后,备注性提示信息将会被移动到帖子正文的底部,从而优化了页面布局,提升了用户体验。 通过上述方法,您可以轻松调整论坛帖子中的编辑提示位置,使页面更加整洁美观。如果您对代码修改有任何疑问,请随时查阅相关文档或咨询技术支持团队。希望这些改动能为您的论坛带来更好的用户体验!