让回帖倒序排列代码修改办法
今日想把论坛的回帖倒序排列,这样最新的回帖会在最上面显示,可是后台没有这样的设置,确实有点烦,需要在发帖的时候进行选择,可是谁会想到勾选呢,所以修改代码的思路就是让它默认选择。需要修改的文件是:\template\default\forum\post_editor_attribute.htm
源代码:大概在177行左右
<!--{if $_G['uid'] && ($_GET == 'newthread' || $_GET == 'edit' && $isfirstpost) && $special != 3}-->
<label for="ordertype"><input type="checkbox" name="ordertype" id="ordertype" class="pc" value="1" $ordertypecheck />{lang post_descviewdefault}</label>
<!--{/if}-->修改后的代码为:红色为新增部分 {if $allownoticeauthor} checked="checked" {/if}
<!--{if $_G['uid'] && ($_GET == 'newthread' || $_GET == 'edit' && $isfirstpost) && $special != 3}-->
<label for="ordertype"><input type="checkbox" name="ordertype" id="ordertype" class="pc" value="1" $ordertypecheck {if $allownoticeauthor} checked="checked" {/if} />{lang post_descviewdefault}</label>
<!--{/if}-->修改之后在后台“工具”-“更新缓存” 更新一下缓存,这样再发帖时,“回帖倒序排列”就会被默认勾选,自然回帖也会倒序排列了!
页:
[1]