Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

Discuz!7.x 发帖页面的发帖选项代码注释

[复制链接]
下砂 发表于 2010-2-27 23:34:10 | 显示全部楼层 |阅读模式
发现很多人在那块有些功能用不上 我把那块的代码注释了
大家看哪块不想要的 就删了就可以了。
修改前记得备份文件:)

文件:templates/default/post.htm

HTML代码
  1.                                                         <!--{if ($forum['allowhtml'] || ($action == 'edit' && ($org['htmlon'] & 1))) && $allowhtml}-->
  2.                                                                 <p><input type="checkbox" name="htmlon" id="htmlon" value="1" $htmloncheck /><label for="htmlon">{lang post_html}</label></p>
  3.                                                         <!--{else}-->
  4.                                                                 <p><input type="checkbox" name="htmlon" id="htmlon" value="0" $htmloncheck disabled="disabled" /><label for="htmlon">{lang post_html}</label></p>
  5.                                                         <!--{/if}-->
复制代码


img代码
  1.                                                         <p><input type="checkbox" id="allowimgcode" disabled{if $forum['allowimgcode']} checked="checked"{/if} /><label for="allowimgcode">{lang post_imgcode}</label></p>
复制代码


禁用URL识别
  1.                                                         <p><input type="checkbox" name="parseurloff" id="parseurloff" value="1" $urloffcheck tabindex="1" /><label for="parseurloff">{lang disable} {lang post_parseurl}</label></p>
复制代码


禁用表情
  1.                                                         <p><input type="checkbox" name="smileyoff" id="smileyoff" value="1" $smileyoffcheck tabindex="1" /><label for="smileyoff">{lang disable} {faq smilies}</label></p>
复制代码


禁用Discuz代码
  1.                                                         <p><input type="checkbox" name="bbcodeoff" id="bbcodeoff" value="1" $codeoffcheck tabindex="1" /><label for="bbcodeoff">{lang disable} {faq discuzcode}</label></p>
复制代码


标签解析
  1.                                                         <!--{if $tagstatus && ($action == 'newthread' || $action == 'edit' && $isfirstpost)}-->
  2.                                                                 <p><input type="checkbox" name="tagoff" id="tagoff" {if !empty($tagoffcheck)}checked="checked"{/if} tabindex="1" /><label for="tagoff">{lang disable} {lang tag_parse}</label></p>
  3.                                                         <!--{/if}-->
复制代码


倒序看帖
  1.                                                                 <!--{if $action == 'newthread' || $action == 'edit'}-->
  2.                                                                         <p><input type="checkbox" name="ordertype" id="ordertype" value="1" $ordertypecheck tabindex="1" /><label for="ordertype">{lang post_descview}</label></p>
  3.                                                                 <!--{/if}-->
复制代码


关注此主题的新回复/取消关注
  1.                                                                 <!--{if $action == 'newthread'}-->
  2.                                                                         <p><input type="checkbox" name="attention_add" id="attention_add" checked="checked" value="1" /><label for="attention_add">{lang attention_add}</label></p>
  3.                                                                 <!--{elseif $action == 'reply' || $action == 'edit'}-->
  4.                                                                         <!--{if $has_attention}-->
  5.                                                                                 <p><input type="checkbox" name="attention_remove" id="attention_remove" value="1" /><label for="attention_remove">{lang attention_remove}</label></p>
  6.                                                                         <!--{else}-->
  7.                                                                                 <p><input type="checkbox" name="attention_add" id="attention_add" value="1" /><label for="attention_add">{lang attention_add}</label></p>
  8.                                                                         <!--{/if}-->
  9.                                                                 <!--{/if}-->
复制代码


使用个人签名
  1.                                                         <p><input type="checkbox" name="usesig" id="usesig" value="1" {if !$maxsigsize}disabled {else}$usesigcheck {/if}tabindex="1" /><label for="usesig">{lang post_show_sig}</label></p>
复制代码


使用匿名发帖
  1.                                                         <!--{if $action != 'edit'}-->
  2.                                                                 <!--{if $allowanonymous}--><p><input type="checkbox" name="isanonymous" id="isanonymous" value="1" tabindex="1" /><label for="isanonymous">{lang post_anonymous}</label></p><!--{/if}-->
  3.                                                         <!--{else}-->
  4.                                                                 <!--{if $allowanonymous || (!$allowanonymous && $orig['anonymous'])}--><p><input type="checkbox" name="isanonymous" id="isanonymous" value="1" {if $orig['anonymous']}checked="checked"{/if} tabindex="1" /><label for="isanonymous">{lang post_anonymous}</label></p><!--{/if}-->
  5.                                                         <!--{/if}-->
复制代码


管理组状态下显示的:置顶主题,加入精华
  1.                                                         <!--{if $action == 'newthread' && $forum['ismoderator'] && ($allowdirectpost || !$forum['modnewposts'])}-->
  2.                                                                 <p><input type="checkbox" name="sticktopic" id="sticktopic" value="1" $stickcheck tabindex="1" /><label for="sticktopic">{lang post_stick_thread}</label></p>
  3.                                                                 <p><input type="checkbox" name="addtodigest" id="addtodigest" value="1" $digestcheck tabindex="1" /><label for="addtodigest">{lang post_digest_thread}</label></p>
  4.                                                         <!--{/if}-->
复制代码


通过审核
  1.                                                 <!--{elseif $action == 'edit' && $auditstatuson}-->
  2.                                                         <p><input type="checkbox" name="audit" id="audit" value="1"><label for="audit">{lang auditstatuson}</label></p>
复制代码


UCHome时间推送(加入事件)
  1.                                                 <!--{if $uchome['addfeed'] && $ucappopen['UCHOME'] && $forum['allowfeed']}-->
  2.                                                         <p><input type="checkbox" name="addfeed" id="addfeed" value="1" $addfeedcheck><label for="addfeed">{lang addfeed}</label></p>
  3.                                                 <!--{/if}-->
复制代码


回复仅作者可见
  1.                                                 <!--{if $action == 'newthread' || $action == 'edit'}-->
  2.                                                         <p><input type="checkbox" name="hiddenreplies" id="hiddenreplies"{if $hiddenreplies} checked="checked"{/if} value="1"><label for="hiddenreplies">{lang hiddenreplies}</label></p>
  3.                                                 <!--{/if}-->
复制代码


抢楼帖
  1.                                                 <!--{if $action == 'newthread' && $allowpostrushreply}-->
  2.                                                                 <p><input type="checkbox" name="rushreply" id="rushreply" value="1"><label for="rushreply">{lang rushreply}</label></p>
  3.                                                 <!--{/if}-->
  4.                                                 <!--{if $action == 'edit' && getstatus($thread['status'], 3)}-->
  5.                                                                 <p><input type="checkbox" disabled="disabled" checked="checked"><label for="rushreply">{lang rushreply}</label></p>
  6.                                                 <!--{/if}-->
复制代码


使用愉快!:)


原文:http://bbs.admin168.my/thread-33-1-1.html
qzshene 发表于 2010-3-3 12:56:24 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

popuppp 发表于 2010-3-4 17:22:05 | 显示全部楼层
很详细。
回复

使用道具 举报

mslxd 发表于 2010-3-4 18:51:54 | 显示全部楼层
一下子放了这么多,有点不习惯,呵呵
回复

使用道具 举报

la367 发表于 2010-3-12 15:00:14 | 显示全部楼层
进来看看.......
回复

使用道具 举报

无效楼层,该帖已经被删除
hzbjp 发表于 2010-3-13 16:08:21 | 显示全部楼层
这个要用到,收藏
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-29 07:53 , Processed in 0.111684 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表