帖内个人信息显示用户组有效期
演示图:打开source/module/forum/forum_viewthread.php文件,查找:
m.groupid, m.adminid,后面添加(注意 前面有个空格)
m.groupexpiry,
再查找:
$post['lastdate'] = dgmdate($post['lastactivity'], 'd');下面添加:
//用户组有效期
$post['groupexpiry'] = $post['groupexpiry'] && in_array($post['groupid'], array(17)) ? gmdate('Y-n-j', $post['groupexpiry'] + $timeoffset * 3600) : '';
里面的array(17),里面的17是用户组id,自己修改
保存覆盖回去
再打开templates/default/forum/viewthread_node.htm,找到
<p><em><a href="home.php?mod=spacecp&ac=usergroup&gid=$post" target="_blank">{$post}</a></em></p>
下面添加:
<!--{if $post['groupexpiry']}--><p>有效期至 $post['groupexpiry']</p><!--{/if}-->
页:
[1]