[外掛]發表草稿箱 (Save posts as drafts)

Officially Approved MODs
由 phpBB Group 官方發展小組認證的 MOD!

版主: 版主管理群

版面規則
請注意!只有發表在 [2.0.x] MOD Database Releases 的外掛,才算是官方認證的外掛。
主題已鎖定
jwxinst
竹貓忠實會員
竹貓忠實會員
文章: 945
註冊時間: 2006-03-31 10:07
來自: New York, USA     學業狀況: 當天才...       個人狀況: 臭蛋
聯繫:

[外掛]發表草稿箱 (Save posts as drafts)

文章 jwxinst »

前言:
(由於語系翻譯中可能存有差異,我會在一天內更新,並以 (更新)通告!!!)

這個是從phpBB官方網站裡找到的2.0.20外掛,個人翻譯中文化是因為覺得這個外掛蠻不錯。

比如說像我個人發表「phpBB新手通」,一直都得在自己的論壇裡先草擬好,再重新把代碼(編輯)貼到竹貓裡,這可是有點麻煩了。

這個外掛可以讓你固定在自己的論壇,像E-MAIL的草稿夾一樣,把你認為還不能公開 (incomplete)的新文章隱藏起來。

外掛名稱: 發表草稿箱
下載點:
http://www.phpbb.com/phpBB/viewtopic.php?t=223319

代碼: 選擇全部

##############################################################
## MOD Title:		Save posts as drafts
## MOD Author: asinshesq < N/A > (Alan) N/A
## MOD Description:	Allow users to save their posts or pms as drafts so they can begin a post or pm
##			and finish it later. Since it is a draft, others will not see it until it is done.
##
## MOD Version:		1.0.24
##
## Installation Level:	Easy
## Installation Time:	20 Minutes ( 1 minute with easymod)
##
## Files To Edit:	posting.php
##			viewforum.php
##			viewtopic.php
##			privmsg.php
##			search.php
##			admin/admin_forum_prune.php
##			admin/index.php
##			includes/constants.php
##			includes/topic_review.php
##			includes/functions_post.php
##			includes/functions_admin.php
##			includes/prune.php
##			includes/page_header.php
##			language/lang_english/lang_main.php
##			language/lang_english/lang_admin.php
##			templates/subSilver/admin/forum_prune_select_body.tpl
##			templates/subSilver/admin/index_body.tpl
##			templates/subSilver/index_body.tpl
##			templates/subSilver/posting_body.tpl
##			templates/subSilver/search_results_posts.tpl
##			templates/subSilver/search_results_topics.tpl
##
## Included Files:	N/A
##
## License:		http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:	If you have the attachments mod installed on your board, install this mod first and then afterwards
##			install the mod set forth in "mod_to_save_posts_as_drafts_to_allow_for_attachments.txt"
##
##			If you want to add links to drafts on non-standard pages (e.g. in the private message area or, 
##			for that matter, in viewforum or viewtopic), here is the code you would use (this gets assigned
##			in page_header so you can stick those links on pretty much any page you want):
##
##			To add a link called "View your topics and drafts", insert this in the 
##			template page on which you want the link to appear:
##			<a href="{U_SEARCH_SELF_BY_TOPIC}" class="gensmall">{L_SEARCH_SELF_BY_TOPIC}</a>
##
##			To add a link called "View your posts and drafts", insert this in the 
##			template page on which you want the link to appear:
##			<a href="{U_SEARCH_SELF_BY_POST}" class="gensmall">{L_SEARCH_SELF_BY_POST}</a>
##
##			You can add one or both or neither (I personally don't like the view your topics and drafts so
##			I got rid of that link everywhere but suit yourself)
##
##############################################################
## MOD History:
##
##   2006-04-09	- Version 1.0.24
##		  made changes needed if installing this mod on a phpbb 2.0.20 (no other changes made)
##
外掛安裝步驟:

1. 新增+執行SQL語法
#
#-----[ SQL ]-------------------------------------------------
#

代碼: 選擇全部

ALTER TABLE phpbb_posts ADD post_draft smallint(1) unsigned NOT NULL default '0';

CREATE TABLE phpbb_draft_prune (
prune_id tinyint(1) unsigned NOT NULL default '1',
prune_days smallint(5) unsigned NOT NULL default '0',
prune_freq smallint(5) unsigned NOT NULL default '0',
prune_next int(11) unsigned NOT NULL default '0',
prune_enable tinyint(1) unsigned NOT NULL default '0'
);

INSERT INTO phpbb_draft_prune (prune_id, prune_days, prune_freq) VALUES(1, 90, 10);

2. 修改檔案 [EDIT]

3. 此外掛沒有包括任何 included files (不用上傳檔案)

*4. 如果已經裝置了Files Attchment MOD, 請必需要執行 /contrib/mod_to_save_posts_as_drafts_to_allow_for_attachments.txt



正體中文語系化

1. language/lang_chinese_traditional_taiwan/lang_main.php

代碼: 選擇全部

#
#-----[ FIND ]------------------------------------------------
#
$lang['Critical_Error'] = '重大錯誤';

#
#-----[ AFTER, ADD ]-----------------------------------------
#
// start mod save draft posts
$lang['Search_your_drafts_and_topics'] = '檢視目前你發表的草稿主題';
$lang['Search_your_drafts_and_posts'] = '檢視目前你未發表的草稿';
$lang['Draft_posts'] = '草稿';
$lang['Topics_you_have_posted_to'] = '已發表的主題';
$lang['Your_posts'] = '你的文章';
$lang['Draft_post_time'] = '草稿儲存時間';
$lang['Draft_post_subject'] = '草稿文章';
$lang['Draft_post_topic'] = '草稿的主題';
$lang['Draft_post_forum'] = '位置';
$lang['Save_as_draft'] = '另存為草稿';
// end mod save draft posts

2. language/lang_chinese_traditional_taiwan/lang_admin.php

代碼: 選擇全部

#
#-----[ OPEN ]-------------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]-------------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]-------------------------------------------------
#
// start mod save posts as drafts ... added teh following variables for pruning and auto pruning of drafts
$lang['Drafts'] = '草稿';
$lang['Draft_prune'] = '編輯草稿';
$lang['Draft_topics_pruned'] = '主題編輯';
$lang['Draft_posts_pruned'] = '文章編輯';
$lang['Draft_pruning_successful'] = '編輯成功!';
$lang['Draft_auto-prune'] = '草稿自動整理模組 <br /> (必需要由系統控制台裡允許啟動)';
$lang['Auto_prune_settings_changed'] = '自動整理模組的設定更新成功!';
$lang['Remove_drafts_not_modified'] = '移除未被整理的草稿 &nbsp; ';
$lang['Check_draft_age'] = '以草稿的時間排列 &nbsp;';
$lang['Number_of_drafts'] = '草稿數量';
$lang['Drafts_per_user'] = '草稿上限';
// end mod save posts as drafts
目前狀態圖檔
GoKo Music進度: 10%

問個問題不要緊可是沒有發文格式、問題不夠詳細情況,難道要用猜嗎?
新手必讀
[教學] 基本認識、學習、隨我架設phpBB的新手通 -更新至2.0.22
問問題的技巧
http://www.phpbb-tw.net/phpbb/viewtopic.php?t=44340
MOD安裝教學及轉碼
http://www.phpbb-tw.net/phpbb/viewtopic.php?t=22832
主題已鎖定

回到「官方認證外掛」