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

 找回密码
 立即注册
搜索
12
返回列表 发新帖

[求助] 【已成功】请问如何让发帖的时候默认显示出售价框?

[复制链接]
 楼主| hcyaya1 发表于 2014-3-14 21:16:41 | 显示全部楼层
兲楽 发表于 2014-3-14 18:09
style="display: block; 加这个上面那句中要有这个

请问  <div id="extra_price_c" class="exfm cl" style="display: block; ">
这个是加在哪里?
回复

使用道具 举报

 楼主| hcyaya1 发表于 2014-3-14 21:23:01 | 显示全部楼层

请问是加在哪里呢,谢谢

  1. <div id="post_extra" class="ptm cl">
  2. <div id="post_extra_tb" class="cl" onselectstart="return false">
  3. <!--{if $_G['group']['allowreplycredit'] && !in_array($special, array(2, 3))}-->
  4. <!--{if $_G[gp_action] == 'newthread'}-->
  5. <!--{eval $extcreditstype = $_G['setting']['creditstransextra'][10];}-->
  6. <!--{else}-->
  7. <!--{eval $extcreditstype = $replycredit_rule['extcreditstype'] ? $replycredit_rule['extcreditstype'] : $_G['setting']['creditstransextra'][10];}-->
  8. <!--{/if}-->
  9. <!--{eval $userextcredit = getuserprofile('extcredits'.$extcreditstype);}-->
  10. <!--{if ($_G[gp_action] == 'newthread' && $userextcredit > 0) || ($_G[gp_action] == 'edit' && $isorigauthor && isfirstpost)}-->
  11. <label id="extra_replycredit_b" onclick="showExtra('extra_replycredit')"><span id="extra_replycredit_chk">{lang replycredit}</span></label>
  12. <!--{/if}-->
  13. <!--{/if}-->
  14. <!--{if $_G['group']['allowsetreadperm']}-->
  15. <label id="extra_readperm_b" onclick="showExtra('extra_readperm')"><span id="extra_readperm_chk">{lang readperm}</span></label>
  16. <!--{/if}-->
  17. <!--{if $_G['group']['maxprice'] && !$special}-->
  18. <label id="extra_price_b" onclick="showExtra('extra_price')"><span id="extra_price_chk">{lang price}</span></label>
  19. <!--{/if}-->
  20. <!--{if ($_G[gp_action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_G[gp_action] == 'edit' && getstatus($thread['status'], 3))}-->
  21. <label id="extra_rushreplyset_b" onclick="showExtra('extra_rushreplyset')"><span id="extra_rushreplyset_chk">{lang rushreply}</span></label>
  22. <!--{/if}-->
  23. <!--{if $_G['group']['allowposttag']}-->
  24. <label id="extra_tag_b" onclick="showExtra('extra_tag')"><span id="extra_tag_chk">{lang posttag}</span></label>
  25. <!--{/if}-->
  26. </div>

  27. <div id="post_extra_c">
  28. <!--{if !empty($userextcredit)}-->
  29. <div id="extra_replycredit_c" class="exfm cl" style="display: none;">
  30. <div><label>{lang replycredit_once} <input type="text" name="replycredit_extcredits" id="replycredit_extcredits" class="px pxs vm" value="{if $replycredit_rule['extcredits'] && $thread['replycredit'] > 0}{$replycredit_rule['extcredits']}{else}0{/if}" onkeyup="javascript:getreplycredit();" onblur="extraCheck(0)" /> {$_G['setting']['extcredits'][$extcreditstype][unit]}{$_G['setting']['extcredits'][$extcreditstype][title]}</label><span class="xg1">{lang replycredit_empty}</span> , <label>{lang replycredit_reward} <input type="text" name="replycredit_times" id="replycredit_times" class="px pxs vm" value="{if $replycredit_rule['lasttimes']}{$replycredit_rule['lasttimes']}{else}1{/if}" onkeyup="javascript:getreplycredit();" onblur="extraCheck(0)" /> {lang replycredit_time}</label>, <label>{lang replycredit_member} <select id="replycredit_membertimes" name="replycredit_membertimes" class="ps vm">
  31. <!--{eval for($i=1;$i<11;$i++) {;}-->
  32. <option value="$i"{if $replycredit_rule['membertimes'] == $i} selected="selected"{/if}>$i</option>
  33. <!--{eval };}-->
  34. </select> {lang replycredit_time}</label>, <label>{lang replycredit_rate} <select id="replycredit_random" name="replycredit_random" class="ps vm">
  35. <!--{eval for($i=100;$i>9;$i=$i-10) {;}-->
  36. <option value="$i"{if $replycredit_rule['random'] == $i} selected="selected"{/if}>$i</option>
  37. <!--{eval };}-->
  38. </select> %</label></div>
  39. <div class="xg1">{lang replycredit_total} <span id="replycredit_sum"><!--{if $thread['replycredit']}-->{$thread['replycredit']}<!--{else}-->0<!--{/if}--></span> {$_G['setting']['extcredits'][$extcreditstype][unit]}{$_G['setting']['extcredits'][$extcreditstype][title]}<!--{if $thread['replycredit']}--><span class="xg1">({lang replycredit_however} {$thread['replycredit']} {$_G['setting']['extcredits'][$extcreditstype][unit]}{$_G['setting']['extcredits'][$extcreditstype][title]})</span><!--{/if}-->, <span id="replycredit">{lang replycredit_revenue} {$_G['setting']['extcredits'][$extcreditstype][title]} 0</span> {$_G['setting']['extcredits'][$extcreditstype][unit]}, {lang you_have} {$_G['setting']['extcredits'][$extcreditstype][title]} $userextcredit {$_G['setting']['extcredits'][$extcreditstype][unit]}</div>
  40. </div>
  41. <!--{/if}-->

  42. <!--{if $_G['group']['allowsetreadperm']}-->
  43. <div id="extra_readperm_c" class="exfm cl" style="display:none">
  44. <table cellspacing="0" cellpadding="0">
  45. <tr>
  46. <td class="xw1">{lang readperm}</td>
  47. <td>
  48. <select name="readperm" id="readperm" class="ps" style="width:90px" onchange="extraCheck(1)">
  49. <option value="">{lang unlimited}</option>
  50. <!--{loop $_G['cache']['groupreadaccess'] $val}-->
  51. <option value="$val[readaccess]" title="{lang readperm}: $val[readaccess]"{if $thread['readperm'] == $val[readaccess]} selected="selected"{/if}>$val[grouptitle]</option>
  52. <!--{/loop}-->
  53. <option value="255"{if $thread['readperm'] == 255} selected="selected"{/if}>{lang highest_right}</option>
  54. </select>
  55. <span class="xg1">{lang post_select_usergroup_readacces}</span>
  56. </td>
  57. </tr>
  58. </table>
  59. </div>
  60. <!--{/if}-->

  61. <!--{if $_G['group']['maxprice'] && !$special}-->
  62. <div id="extra_price_c" class="exfm cl" style="display:none">
  63. {lang price}:
  64. <input type="text" id="price" name="price" class="px pxs" value="$thread[pricedisplay]" onblur="extraCheck(2)" /> {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}
  65. <span class="xg1">({lang post_price_comment})</span>
  66. <!--{if $_G['group']['maxprice'] && ($_G[gp_action] == 'newthread' || $_G[gp_action] == 'edit' && $isfirstpost)}-->
  67. <!--{if $_G['setting']['maxincperthread']}--><p class="xg1">{lang post_price_income_comment}</p><!--{/if}-->
  68. <!--{if $_G['setting']['maxchargespan']}--><p class="xg1">{lang post_price_charge_comment}<!--{if $_G[gp_action] == 'edit' && $freechargehours}-->{lang post_price_free_chargehours}<!--{/if}--></p><!--{/if}-->
  69. <!--{/if}-->
  70. </div>
  71. <!--{/if}-->

  72. <!--{if $_G['group']['allowposttag']}-->
  73. <div id="extra_tag_c" class="exfm cl" style="display: none;">
  74. <table cellspacing="0" cellpadding="0">
  75. <tr>
  76. <td class="xw1">{lang post_tag} </td>
  77. <td>
  78. <input type="text" class="px vm" size="60" id="tags" name="tags" value="$postinfo[tag]" onblur="extraCheck(4)" />
  79. <a href="javascript:;" id="clickbutton[]" class="xi2" onclick="relatekw('-1','-1');doane();">{lang auto_keyword}</a><span class="pipe">|</span><a href="javascript:;" id="choosetag" class="xi2" onclick="showWindow(this.id, 'forum.php?mod=tag', 'get', 0)">{lang choosetag}</a>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td></td>
  84. <td>
  85. <p class="xg1">{lang posttag_comment}</p>
  86. <!--{eval $recent_use_tag = recent_use_tag();}-->
  87. <!--{if $recent_use_tag}-->
  88. <p class="mtn">{lang recent_use_tag}
  89. <!--{eval $tagi = 0;}-->
  90. <!--{loop $recent_use_tag $var}-->
  91. <!--{if $tagi}-->, <!--{/if}--><a href="javascript:;" class="xi2" onclick="$('tags').value == '' ? $('tags').value += '$var' : $('tags').value += ',$var';extraCheck(4);doane();">$var</a>
  92. <!--{eval $tagi++;}-->
  93. <!--{/loop}-->
  94. </p>
  95. <!--{/if}-->
  96. </td>
  97. </tr>
  98. </table>
  99. </div>
  100. <!--{/if}-->

  101. <!--{if ($_G[gp_action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_G[gp_action] == 'edit' && getstatus($thread['status'], 3))}-->
  102. <div class="exfm cl" id="extra_rushreplyset_c" style="display: none;">
  103. <div class="sinf sppoll z">
  104. <dl>
  105. <dt><span style="width: 4em"> </span></dt>
  106. <dd><label for="rushreply"><input type="checkbox" name="rushreply" id="rushreply" class="pc vm" value="1" {if $_G[gp_action] == 'edit' && getstatus($thread['status'], 3)}disabled="disabled" checked="checked"{/if} onclick="extraCheck(3)" /> {lang rushreply_change}</label></dd>
  107. <dt><label>{lang rushreply_time}</label></dt>
  108. <dd>
  109. <div>
  110. <input type="text" name="rushreplyfrom" id="rushreplyfrom" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="$postinfo[rush][starttimefrom]" onkeyup="$('rushreply').checked = true;" /><span> ~ </span><input type="text" onclick="showcalendar(event, this, true)" autocomplete="off" id="rushreplyto" name="rushreplyto" class="px" value="$postinfo[rush][starttimeto]" onkeyup="$('rushreply').checked = true;" />
  111. </div>
  112. </dd>
  113. <dt><label>{lang rushreply_rewardfloor}</label></dt>
  114. <dd>
  115. <input type="text" name="rewardfloor" id="rewardfloor" class="px oinf" value="$postinfo[rush][rewardfloor]" onkeyup="$('rushreply').checked = true;" />
  116. <p class="xg1">{lang rushreply_rewardfloor_comment}</p>
  117. </dd>
  118. </dl>
  119. </div>
  120. <div class="sadd z">
  121. <dl>
  122. <dt><label>{lang rushreply_end}</label></dt>
  123. <dd class="hasd cl">
  124. <input type="text" name="stopfloor" id="stopfloor" class="px" autocomplete="off" value="$postinfo[rush][stopfloor]" onkeyup="$('rushreply').checked = true;" />
  125. </dd>
  126. </dl>
  127. </div>
  128. </div>
  129. <!--{/if}-->
  130. </div>
  131. </div>
复制代码
回复

使用道具 举报

兲楽 发表于 2014-3-15 01:23:51 | 显示全部楼层
<div id="extra_price_c" class="exfm cl" style="display:none">改成,这个<div id="extra_price_c" class="exfm cl" style="display: block; ">
回复

使用道具 举报

 楼主| hcyaya1 发表于 2014-3-15 09:13:23 | 显示全部楼层

可以啦  

O(∩_∩)O谢谢  


回复

使用道具 举报

兲楽 发表于 2014-3-15 11:34:04 | 显示全部楼层
hcyaya1 发表于 2014-3-15 09:13
可以啦  

O(∩_∩)O谢谢

不用客气
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-11-25 11:47 , Processed in 0.087532 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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