在其后添加:
'blockclass_thread_field_lastposter' => '最后回覆者',
二、source/class/block/forum/block_thread.php
1.查找:
'lastpost' => array('name' => lang('blockclass', 'blockclass_thread_field_lastpost'),
在其后添加:
'lastposter' => array('name' => lang('blockclass', 'blockclass_thread_field_author'), 'formtype' => 'text', 'datatype' => 'string'),
2.查找:
在其后添加:
------------------------------------------------------------------------------------------------------------------------------
下面说说如何挪用版块图标
一、source/language/lang_blockclass.php 文件
查找
'blockclass_thread_field_forumname' => '版块名称',在其后添加:
'blockclass_thread_field_forumicon' => '版块图标',二、source/class/block/forum/block_thread.php
1、查找
'forumname' => array('name' => lang('blockclass', 'blockclass_thread_field_forumname'), 'formtype' => 'text', 'datatype' => 'string'),在其后添加:
'forumicon' => array('name' => lang('blockclass', 'blockclass_thread_field_forumicon'), 'formtype' => 'text', 'datatype' => 'string'),2、查找 $listtids[] = $data['tid'];
在其后添加:
$foruminfo = C::t('forum_forum')->fetch_info_by_fid($data['fid']);//add by L 2012/11/13、查找 'forumname' => $_G['cache']['forums'][$data['fid']]['name'],
在其后添加:
'forumicon' => $foruminfo['icon'],------------------------------------------------------------------------------------------------------------------------------
修改后上传包围相应源文件,更新DIY缓存,即可收结果!(新手务必做好备份)