在 x2.5 新版本中有很多同学都问
为什么在刪除帖子的时侯多了个"违规登记"是干什么用的
那么今天就來一个菜鸟版的教程呗
首先,测试中我新增一个用戶名为 admin
先用 admin 发三个帖子,随后随意刪除二个帖子 (一定要勾上违规登记,如图)
再者,此时我可以到第三个帖子刪除帖子的时侯可以看到提示你该用戶已违规了多少次 (如图)
如果,你想確定为什么此用戶为何有那么多次的违规记录可以到他的个人空间==> 个人资料中查看 (如图)
那么就可以大大的增加管理员方面的快速管理多次违规的用戶將他永久刪除/禁止发言等工作了
在后台/前台禁止用戶时也可以看到相关的操作喔
文件相关代码显示
管理语言包调用文件:source/language/forum/lang_template.php
- 'topicadmin_crime_delpost_nums' => '用户 $crimeauthor 帖子已被违规删除 $crimenum 次',
管理模版调用文件:template/default/forum opicadmin.htm
- <!--{if $operation == 'delete'}-->
- <!--{if ($modpostsnum == 1 || $authorcount == 1) && $crimenum > 0}-->
- <div style="clear: both; text-align: right;">{lang topicadmin_crime_delpost_nums}</div>
- <!--{/if}-->
- <!--{/if}-->
管理模版调用文件 2:template/default/forum opicadmin_action.htm
- <!--{if ($modpostsnum == 1 || $authorcount == 1) && $crimenum > 0}-->
- <div style="clear: both; text-align: right;">{lang topicadmin_crime_delpost_nums}</div>
- <!--{/if}-->
家园语言包调用文件:source/language/home/lang_template.php
- 'crime_record' => '违规记录',
家园显示调用文件:template/default/home/space_profile_body.htm
- <!--{if $clist}-->
- <div >
- <h2 >{lang crime_record}</h2>
- <table id="pcr" >
- <tr>
- <th width="15%">{lang crime_action}</th>
- <th width="15%">{lang crime_dateline}</th>
- <th>{lang crime_reason}</th>
- <th width="15%">{lang crime_operator}</th>
- </tr>
- <!--{loop $clist $crime}-->
- <tr>
- <td>
- <!--{if $crime[action] == 'crime_delpost'}-->
- {lang crime_delpost}
- <!--{elseif $crime[action] == 'crime_warnpost'}-->
- {lang crime_warnpost}
- <!--{elseif $crime[action] == 'crime_banpost'}-->
- {lang crime_banpost}
- <!--{elseif $crime[action] == 'crime_banspeak'}-->
- {lang crime_banspeak}
- <!--{elseif $crime[action] == 'crime_banvisit'}-->
- &nb
sp; {lang crime_banvisit} - <!--{elseif $crime[action] == 'crime_banstatus'}-->
- {lang crime_banstatus}
- <!--{elseif $crime[action] == 'crime_avatar'}-->
- {lang crime_avatar}
- <!--{elseif $crime[action] == 'crime_sightml'}-->
- {lang crime_sightml}
- <!--{elseif $crime[action] == 'crime_customstatus'}-->
- {lang crime_customstatus}
- <!--{/if}-->
- </td>
- <td><!--{date($crime[dateline])}--></td>
- <td>$crime[reason]</td>
- <td><a href="home.php?mod=space&uid=$crime[operatorid]" target="_blank">$crime[operator]</a></td>
- </tr>
- <!--{/loop}-->
- </table>
- </div>
- <!--{/if}-->
前台管理中心调用文件:template/default/forummodcp_member.htm
- <!--{if $clist}-->
- <tr>
- <th>{lang crime_record}</th>
- <td style="padding-top: 0;">
- <table cellspacing="0" cellpadding="0" >
- <tr>
- <td width="15%">{lang crime_action}</td>
- <td width="15%">{lang crime_dateline}</td>
- <td>{lang crime_reason}</td>
- <td width="15%">{lang crime_operator}</td>
- </tr>
- <!--{loop $clist $crime}-->
- <tbody id="$crime[cid]">
- <tr>
- <td>
- <!--{if $crime[action] == 'crime_delpost'}-->
- {lang crime_delpost}
- &nb
sp; <!--{elseif $crime[action] == 'crime_warnpost'}--> - {lang crime_warnpost}
- <!--{elseif $crime[action] == 'crime_banpost'}-->
- {lang crime_banpost}
- <!--{elseif $crime[action] == 'crime_banspeak'}-->
- {lang crime_banspeak}
- <!--{elseif $crime[action] == 'crime_banvisit'}-->
- {lang crime_banvisit}
- <!--{elseif $crime[action] == 'crime_banstatus'}-->
- {lang crime_banstatus}
- <!--{elseif $crime[action] == 'crime_avatar'}-->
- {lang crime_avatar}
- <!--{elseif $crime[action] == 'crime_sightml'}-->
- {lang crime_sightml}
- <!--{elseif $crime[action] == 'crime_customstatus'}-->
- {lang crime_customstatus}
- <!--{/if}-->
- </td>
- <td>
- <!--{date($crime[dateline])}-->
- </td>
- <td>$crime[reason]</td>
- <td>
- <a href="home.php?mod=space&uid=$crime[operatorid]" >$crime[operator]</a>
- </td>
- </tr>
- </tbody>
- <!--{/loop}-->
- </table>
- </td>
- </tr>
- <!--{/if}-->