打开/include/inc_arcpart_view.php文件
找到
$query = "select id, tid, tidname, tid2, tid2name, title from dede_ask where $qtypeQuery limit $nums";
改成
$query = "select id, tid, tidname, tid2, tid2name, title,reward,dateline from dede_ask where $qtypeQuery limit $nums";
再找到
$rs['typeurl'] = $cfg_ask_url."/browser.php?tid={$rs['tid']}";
在它下面加入
$rs['reward'] = $rs['reward'];
$rs['dateline'] = $rs['dateline'];
在你首页调用最新问答列表合适地方插入
分数:[field:reward/]
发布时间:[field:dateline function=strftime('%Y-%m-%d',@me)/]
调用代码
{dede:ask row='8'}
<dd class="ot1"><span class="otclass">[<a href=https://www.91084.com/"[field:typeurl/]">[field:tidname/]</a>]</span><span class="otlink"><a href=https://www.91084.com/"[field:url/]">[field:title/]</a></span>( [field:reward/]) [field:dateline function=strftime('%Y-%m-%d',@me)/] </dd>