需要修改两个文件:
source/language/lang_blockclass.php
source/class/block/forum/block_thread.php
注:是别人发布的,不过发布的是文件覆盖版;我分析了一下代码,找到了代码的修改方法
一、source/language/lang_blockclass.php
查找:
- 'blockclass_thread_field_lastpost' => '最后回复时间',
在其后添加:
- 'blockclass_thread_field_lastposter' => '最后回复者',
二、source/class/block/forum/block_thread.php
1.查找:
- 'formtype' => 'text', 'datatype' => 'int'),
- 'lastpost' => array('name' => lang('blockclass', 'blockclass_thread_field_lastpost'),
在其后添加:
- 'formtype' => 'date', 'datatype' => 'date'),
- 'lastposter' => array('name' => lang('blockclass', 'blockclass_thread_field_author'),
2.查找:
- 'lastpost' => $data['lastpost'],
在其后添加:
- 'lastposter' => $data['lastposter'],
修改后上传覆盖相应源文件,更新DIY缓存,即可见效果!(新手务必做好备份)
依据此规律,可见添加其他调用的原理相同!
感谢Discuz!官方站麻衣 提供!原帖:http://www.discuz.net/thread-2098008-1-2.html