過山雲 寫:如果我要設定,在發文七天後,會員就不能編輯文章。
請問要在哪裡設定?
請問有新的版本嗎?
謝謝~
經過剛剛測試( 我的 phpbb_2.0.15), 樓上
依夢兒 大大推薦的外掛
Limited Post Edit time
應該可以滿足您的需求!
以下是該外掛的檔頭:
代碼: 選擇全部
#################################################################
## MOD Title: Limited Post Edit time
## MOD Author: Shannado <sven@shannado.nl> (Sven) http://www.shannado.nl/forumorg
## MOD Description: With this MOD the admin is able to set through the board configuaration, the time (in minutes) a user has
## to edit his/her post. When the value is set to '0', the time is unlimited.
## The check occurs only when the user hits the 'edit'button in the post.
## NOT when the user hits the submit button.
## Moderators & Admins can always edit the post
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 10 - 20 Minutes
## Files To Edit: posting.php,
## lang_main.php,
## lang_admin.php,
## admin_board.php,
## board_config_body.tpl
## Included Files: N/A
##############################################################
ps.
1. 根據作者的描述, 此版恐怕是最後的版本;
2. 安裝過程中, 容易出錯的是 posting.php
以下是原安裝說明:
代碼: 選擇全部
#
#-----[ FIND ]------------------------------------------
#
$select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
$select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, p.post_time, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';
因為這個地方, 通常會因為安裝不同的外掛, 而修改過; 所以建議您, 不要用取代的方式.
以下的修改方式, 提供您參考:
代碼: 選擇全部
#
#-----[ FIND ]------------------------------------------
# ps. 後面還有很長的?#123;式碼...
$select_sql = ( !$submit ) ? ", t.topic_title,
#
#-----[ IN LINE FIND ]------------------------------------------
#
p.post_username,
#
#-----[ IN LINE AFTER, ADD ]------------------------------------------
#
p.post_time,
3. 後台-> " 編輯文章時限" 的單位是" 分鐘";
若要將時限設定為 7 天, 則必須要 7 * 24 *60 = 10080