【原创】修改DZ帖子发布页面主题标签为第一个位置且自动展开-Discuz教程下载

【原创】修改DZ帖子发布页面主题标签为第一个位置且自动展开

开通本站Svip会员,全站资源免费下
修改前
1.png
修改后
2.png

1、进入网站根目录——template——default——forum——post_editor_attribute 文件搜索extra_TAG_chk将代码
  1.         <div id="post_extra_tb" class="cl" onselectstart="return false">
  2.                         <!--{if $_G['group']['allowposttag']}-->
  3.                                 <label id="extra_tag_b" onclick="showExtra('extra_tag')"><span id="extra_tag_chk">{lang posttag}</span></label>
  4.                         <!--{/if}-->
  5.                 <label id="extra_additional_b" onclick="showExtra('extra_additional')"><span id="extra_additional_chk">{lang post_additional_options}</span></label>
  6.                 <!--{if $_GET[action] == 'newthread' || $_GET[action] == 'edit' && $isfirstpost}-->
  7.                         <!--{if $_G['group']['allowsetreadperm']}-->
  8.                                 <label id="extra_readperm_b" onclick="showExtra('extra_readperm')"><span id="extra_readperm_chk">{lang readperm}</span></label>
  9.                         <!--{/if}-->
  10.                         <!--{if $_G['group']['allowreplycredit'] && !in_array($special, array(2, 3))}-->
  11.                                 <!--{if $_GET[action] == 'newthread'}-->
  12.                                         <!--{eval $extcreditstype = $_G['setting']['creditstransextra'][10];}-->
  13.                                 <!--{else}-->
  14.                                         <!--{eval $extcreditstype = $replycredit_rule['extcreditstype'] ? $replycredit_rule['extcreditstype'] : $_G['setting']['creditstransextra'][10];}-->
  15.                                 <!--{/if}-->
  16.                                 <!--{eval $userextcredit = getuserprofile('extcredits'.$extcreditstype);}-->
  17.                                 <!--{if ($_GET[action] == 'newthread' && $userextcredit > 0) || ($_GET[action] == 'edit' && $isorigauthor && isfirstpost)}-->
  18.                                         <label id="extra_replycredit_b" onclick="showExtra('extra_replycredit')"><span id="extra_replycredit_chk">{lang replycredit}</span></label>
  19.                                 <!--{/if}-->
  20.                         <!--{/if}-->
  21.                         <!--{if ($_GET[action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET[action] == 'edit' && getstatus($thread['status'], 3))}-->
  22.                                 <label id="extra_rushreplyset_b" onclick="showExtra('extra_rushreplyset')"><span id="extra_rushreplyset_chk">{lang rushreply_thread}</span></label>
  23.                         <!--{/if}-->
  24.                         <!--{if $_G['group']['maxprice'] && !$special}-->
  25.                                 <label id="extra_price_b" onclick="showExtra('extra_price')"><span id="extra_price_chk">{lang thread_pricepay}</span></label>
  26.                         <!--{/if}-->

  27.                         <!--{if $_G['group']['allowsetpublishdate'] && ($_GET[action] == 'newthread' || ($_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))}-->
  28.                                 <label id="extra_pubdate_b" onclick="showExtra('extra_pubdate')"><span id="extra_pubdate_chk">{lang post_timer}</span></label>
  29.                         <!--{/if}-->
  30.                 <!--{/if}-->
  31.                 <!--{hook/post_attribute_extra}-->
  32.         </div>
复制代码
修改为
亲爱的游客您好,请 登录 后进行 回复
后台更新缓存即可!

特别代码说明(如无需以下部分功能,则可自行删除即可)
  1.                         <!--{if $_G['group']['allowposttag']}-->
  2.                                 <label id="extra_tag_b" onclick="showExtra('extra_tag')" ><span id="extra_tag_chk"exfm cl>{lang posttag}</span></label>
  3.                         <!--{/if}-->
  4. 主题标签 代码部分
复制代码
  1.                         <!--{if $_G['group']['allowsetreadperm']}-->
  2.                                 <label id="extra_readperm_b" onclick="showExtra('extra_readperm')"><span id="extra_readperm_chk">{lang readperm}</span></label>
  3.                         <!--{/if}-->
  4. 阅读权限 代码部分
复制代码
  1.                                 <!--{if ($_GET[action] == 'newthread' && $userextcredit > 0) || ($_GET[action] == 'edit' && $isorigauthor && isfirstpost)}-->
  2.                                         <label id="extra_replycredit_b" onclick="showExtra('extra_replycredit')"><span id="extra_replycredit_chk">{lang replycredit}</span></label>
  3.                                 <!--{/if}-->
  4. 回帖奖励 代码部分
复制代码
  1.                         <!--{if ($_GET[action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET[action] == 'edit' && getstatus($thread['status'], 3))}-->
  2.                                 <label id="extra_rushreplyset_b" onclick="showExtra('extra_rushreplyset')"><span id="extra_rushreplyset_chk">{lang rushreply_thread}</span></label>
  3.                         <!--{/if}-->
  4. 抢楼主题 代码部分
复制代码
  1.                         <!--{if $_G['group']['maxprice'] && !$special}-->
  2.                                 <label id="extra_price_b" onclick="showExtra('extra_price')"><span id="extra_price_chk">{lang thread_pricepay}</span></label>
  3.                         <!--{/if}-->
  4. 主题售价 代码部分
复制代码
  1.                         <!--{if $_G['group']['allowsetpublishdate'] && ($_GET[action] == 'newthread' || ($_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))}-->
  2.                                 <label id="extra_pubdate_b" onclick="showExtra('extra_pubdate')"><span id="extra_pubdate_chk">{lang post_timer}</span></label>
  3.                         <!--{/if}-->
  4. 定时发布 代码部分
复制代码

全部评论 1

开通本站Svip会员,全站资源免费下
很好的教程,学习了!
您需要登录后才可以回帖 立即登录
登录
0
1
0
返回顶部