所以我在sql中的phpbb_posts加入了一筆post_point欄位,預設值為0
viewtopic.php部份
在955行左右
找到
代碼: 選擇全部
'foe' => $row['foe'],
代碼: 選擇全部
'post_point' => $row['post_point'],
找到
代碼: 選擇全部
$message = censor_text($row['post_text']);
代碼: 選擇全部
if ($user->data['user_posts'] >= $row['post_point'])
{
$message = censor_text($row['post_text']);
}else{
$message = 'no enough point';
}
然後問題來了
我想讓使用者在po文,編輯,以及回文時
填寫標題的下方多一個input寫入"使用者的文章數達到多少才能瀏覽"
於是我在posting_editor.html
找到
代碼: 選擇全部
<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
代碼: 選擇全部
<dt><label for="subject">set point:</label></dt>
<dd><input type="text" name="point" id="point" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="" class="inputbox autowidth" /></dd>
接著我就不知道從何下手了Orz...
我完全找不到寫入SQL的地方?
是在posting.php還是includes/functions_posting.php呢?
不知道有沒有高人可以指點一下~謝謝
