免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 發帖
回復 1# IndianaJones

您好,您指的是這個吧?可用不同積分購買帖子~
screen-00.37.05[23.07.2015].png
2015-7-23 00:37


此功能可能無法在SCLUB實現,因為不管是修改PHP、裝插件都需由官方處理~

我從 模版(post.htm)
  1. <form method="post" id="postform"
  2.                 {if $action == 'newthread'}action="post.php?action={if $special != 2}newthread{else}newtrade{/if}&fid=$fid&extra=$extra&topicsubmit=yes"
  3.                 {elseif $action == 'reply'}action="post.php?action=reply&fid=$fid&tid=$tid&extra=$extra&replysubmit=yes"
  4.                 {elseif $action == 'edit'}action="post.php?action=edit&extra=$extra&editsubmit=yes&mod=$mod" $enctype
  5.                 {/if}
  6.                 onsubmit="return validate(this)">
複製代碼
看到
  1. </form>
複製代碼
找不到設置出售變數的值,猜測應該是表單送出後由PHP去SQL抓設定值執行~
1

評分人數

TOP

回復 8# IndianaJones



screen-10.12.54[23.07.2015].png
2015-7-23 10:14

X3跟7.2一樣只能用同一種積分購買,這是靠插件實現的~

TOP

回復 10# IndianaJones


你可以試試看~(以下我沒測試過,因為我沒改過7.2的横排显示

在横排显示的最後發表前面加
<!--{if $thread[folder] == 'lock'}-->
  1. <img src="{IMGDIR}/folder_lock.gif" /></a>
  2.                                                         <!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
  3.                                                                 <img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$threadsticky[3-$thread[displayorder]]" /></a>
  4.                                                         <!--{else}-->
  5.                                                                 <img src="{IMGDIR}/folder_$thread[folder].gif" /></a>
  6.                                                         <!--{/if}-->
複製代碼
後面加
  1. <!--{if $thread['attachment'] == 2}-->
  2.                                                                 <img src="images/attachicons/image_s.gif" alt="{lang attach_img}" class="attach" />
  3.                                                         <!--{elseif $thread['attachment'] == 1}-->
  4.                                                                 <img src="images/attachicons/common.gif" alt="{lang attachment}" class="attach" />
  5.                                                         <!--{/if}-->
  6.                                                         <!--{if $thread['displayorder'] == 0}-->
  7.                                                                 <!--{if $thread[recommendicon]}-->
  8.                                                                         <img src="{IMGDIR}/recommend_$thread[recommendicon].gif" class="attach" alt="{lang thread_recommend}" title="{lang thread_recommend}" />
  9.                                                                 <!--{/if}-->
  10.                                                                 <!--{if $thread[heatlevel]}-->
  11.                                                                         <img src="{IMGDIR}/hot_$thread[heatlevel].gif" class="attach" alt="$thread[heatlevel] {lang heats}" title="$thread[heatlevel] {lang heats}" />
  12.                                                                 <!--{/if}-->
  13.                                                                 <!--{if $thread['digest'] > 0}-->
  14.                                                                         <img src="{IMGDIR}/digest_$thread[digest].gif" class="attach" alt="{lang thread_digest} $thread[digest]" title="{lang thread_digest} $thread[digest]" />
  15.                                                                 <!--{/if}-->
  16.                                                                 <!--{if $thread['rate'] > 0}-->
  17.                                                                         <img src="{IMGDIR}/agree.gif" class="attach" alt="{lang rate_credit_add}" title="{lang rate_credit_add}" />
  18.                                                                 <!--{/if}-->
  19.                                                         <!--{/if}-->
複製代碼

TOP

返回列表