[推薦] Easy CP 個人資料控制台(ECP 0.20)
發表於 : 2003-12-24 03:15
代碼: 選擇全部
#############################################################
## 外掛名稱: [easy] UserCP
## 外掛作者: EGO2000 HE mad the original howto
## 外掛作者2: Philippt < philippt@hotmail.com > (N/A) N/A
## 功能簡介: 不更動到原本的個人資料程式,只要簡單的修改就可以做成個人控制入口\r
## 適用版本: 0.2.0c
##
## 難易度: 簡單\r
## 安裝時間: 3分鐘
## 需要修改檔案數: 5
## profile.php
## includes/usercp_avatar.php
## includes/usercp_register.php
## templates/subSilver/profile_avatar_gallery.tpl
##
## 附加檔案數: 29
## includes/ecp_avatar.php
## includes/usercp_topics.php
## includes/usercp_ecp_signature.php
## includes/ecp_cfg_admin.php
## includes/ecp_cfg_main.php
## includes/ecp_hover.js
##
## language/lang_english/lang_ecp.php
##
## templates/subSilver/ecp/ecp_main.tpl
##
## templates/subSilver/ecp/profile_edit_avatar.tpl
## templates/subSilver/ecp/profile_edit_profile.tpl
## templates/subSilver/ecp/profile_edit_reg.tpl
## templates/subSilver/ecp/profile_edit_settings.tpl
## templates/subSilver/ecp/profile_signature.tpl
## templates/subSilver/ecp/profile_topics.tpl
##
## templates/subSilver/ecp/1_reg.gif
## templates/subSilver/ecp/1_reg_f2.gif
## templates/subSilver/ecp/2_settings.gif
## templates/subSilver/ecp/2_settings_f2.gif
## templates/subSilver/ecp/3_profil.gif
## templates/subSilver/ecp/3_profil_f2.gif
## templates/subSilver/ecp/4_avatar.gif
## templates/subSilver/ecp/4_avatar_f2.gif
## templates/subSilver/ecp/5_signatur.gif
## templates/subSilver/ecp/5_signatur_f2.gif
## templates/subSilver/ecp/watch_topic.gif
## templates/subSilver/ecp/own_post.gif
## templates/subSilver/ecp/np_left.gif
## templates/subSilver/ecp/np_midd.gif
## templates/subSilver/ecp/np_right.gif
##
#################################################################
## 由於安全上的考量,請檢查:
## http://www.phpbb.com/mods/downloads/ 是否有此外掛的最新版本
## 從其他地方下載此檔可能會造成你在你的 phpBB 討論版上寫入有誤的程式碼
## 基於這個理由,phpBB 將不會為沒有收藏在我們的外掛資料庫的外掛提供支援
## 我們的外掛資料庫在 http://www.phpbb.com/mods/downloads/
#################################################################
## 版權聲明: 這一個外掛不可以刊登在或加入到非官方的 phpBB 網站
#################################################################
##
## 作者補充:
## 如果您要讓 ECP 當作附加功能.
## 參數在 ecp_cfg_admin.php 這個檔案檔頭部份
##
## 語系檔在 Add 目錄中\r
##
## 各種外掛的加入方法在 Add 目錄裡\r
##
##############################################################
## 外掛記錄:
##
## 2003-09-10 - Version 0.1.1
## - Release first near Bugfree v.
## 2003-09-11 - Version 0.1.2
## - Fixed a part in the ecp.txt and the ecp_cfg_admin.php
## 2003-09-14 - Version 0.1.4
## - Fixed a part in the ecp.txt & EasyMod 0.0.6 compliant and and fixed
## the profile_edit_avatar.tpl & usercp_ecp_signature.php
## 2003-09-19 - Version 0.1.5
## - Split the Lang part in a own file & some other gfx fix + some add
## 2003-09-20 - Version 0.1.5a
## - Fix the lang_ecp topics you replied => watched Topics
## 2003-09-20 - Version 0.1.6
## - Fix a big value replace bug
## 2003-10-26 - Version 0.2.0
## - Include Carpe Diems Fix for the value reset and redesign the main part of the ecp
## and add some new add-mods
##
##############################################################
## 在增加此外掛前, 請務必備份所有需要修改的檔案
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy includes/ecp_avatar.php to includes/ecp_avatar.php
copy includes/usercp_topics.php to includes/usercp_topics.php
copy includes/usercp_ecp_signature.php to includes/usercp_ecp_signature.php
copy includes/ecp_cfg_admin.php to includes/ecp_cfg_admin.php
copy includes/ecp_cfg_main.php to includes/ecp_cfg_main.php
copy includes/ecp_hover.js to includes/ecp_hover.js
copy language/lang_english/lang_ecp.php to language/lang_english/lang_ecp.php
copy templates/subSilver/ecp/ecp_main.tpl to templates/subSilver/ecp/ecp_main.tpl
copy templates/subSilver/ecp/profile_edit_avatar.tpl to templates/subSilver/ecp/profile_edit_avatar.tpl
copy templates/subSilver/ecp/profile_edit_profile.tpl to templates/subSilver/ecp/profile_edit_profile.tpl
copy templates/subSilver/ecp/profile_edit_reg.tpl to templates/subSilver/ecp/profile_edit_reg.tpl
copy templates/subSilver/ecp/profile_edit_settings.tpl to templates/subSilver/ecp/profile_edit_settings.tpl
copy templates/subSilver/ecp/profile_signature.tpl to templates/subSilver/ecp/profile_signature.tpl
copy templates/subSilver/ecp/profile_topics.tpl to templates/subSilver/ecp/profile_topics.tpl
copy templates/subSilver/ecp/1_reg.gif to templates/subSilver/ecp/1_reg.gif
copy templates/subSilver/ecp/1_reg_f2.gif to templates/subSilver/ecp/1_reg_f2.gif
copy templates/subSilver/ecp/2_settings.gif to templates/subSilver/ecp/2_settings.gif
copy templates/subSilver/ecp/2_settings_f2.gif to templates/subSilver/ecp/2_settings_f2.gif
copy templates/subSilver/ecp/3_profil.gif to templates/subSilver/ecp/3_profil.gif
copy templates/subSilver/ecp/3_profil_f2.gif to templates/subSilver/ecp/3_profil_f2.gif
copy templates/subSilver/ecp/4_avatar.gif to templates/subSilver/ecp/4_avatar.gif
copy templates/subSilver/ecp/4_avatar_f2.gif to templates/subSilver/ecp/4_avatar_f2.gif
copy templates/subSilver/ecp/5_signatur.gif to templates/subSilver/ecp/5_signatur.gif
copy templates/subSilver/ecp/5_signatur_f2.gif to templates/subSilver/ecp/5_signatur_f2.gif
copy templates/subSilver/ecp/watch_topic.gif to templates/subSilver/ecp/watch_topic.gif
copy templates/subSilver/ecp/own_post.gif to templates/subSilver/ecp/own_post.gif
copy templates/subSilver/ecp/np_left.gif to templates/subSilver/ecp/np_left.gif
copy templates/subSilver/ecp/np_midd.gif to templates/subSilver/ecp/np_midd.gif
copy templates/subSilver/ecp/np_right.gif to templates/subSilver/ecp/np_right.gif
#
#-----[ 打開 ]---------------------------------------------
#
profile.php
#
#-----[ 尋找 ]---------------------------------------------
#
else if ( $mode == 'editprofile' || $mode == 'register' )
#
#-----[ 在之前加入 ]--------------------------------------
#
// control panel
else if ( $mode == 'topics' )
{
if ( !$userdata['session_logged_in'] && $mode == 'topics' )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=topics", true));
exit;
}
include($phpbb_root_path . 'includes/usercp_topics.'.$phpEx);
exit;
}
else if ( $mode == 'ecpsignature' )
{
if ( !$userdata['session_logged_in'] && $mode == 'ecpsignature' )
{
redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=signature", true));
}
include($phpbb_root_path . 'includes/usercp_ecp_signature.'.$phpEx);
exit;
}
// end control panel
#
#-----[ 打開 ]---------------------------------------------
#
includes/usercp_register.php
#
#-----[ 尋找 ]---------------------------------------------
#
//
// Default pages
//
#
#-----[ 在這之前加入 ]--------------------------------------
#
// control panel
include($phpbb_root_path . 'includes/ecp_cfg_admin.'.$phpEx);
// end control panel
#
#-----[ 尋找 ]---------------------------------------------
#
$template->set_filenames(array(
'body' => 'profile_add_body.tpl')
);
#
#-----[ 替換成 ]---------------------------------------
#
// control panel
include($phpbb_root_path . 'includes/ecp_cfg_main.'.$phpEx);
// end control panel
#
#-----[ 打開 ]---------------------------------------------
#
includes/usercp_avatar.php
#
#-----[ 尋找 ]---------------------------------------------
#
* (at your option) any later version.
*
*
***************************************************************************/
#
#-----[ 在這之後加入 ]--------------------------------------
#
// control panel
include($phpbb_root_path . 'includes/ecp_avatar.'.$phpEx);
// end control panel
#
#-----[ 打開 ]---------------------------------------------
#
templates/subSilver/profile_avatar_gallery.tpl
#
#-----[ 尋找 ]---------------------------------------------
#
{S_PROFILE_ACTION}
#
#-----[ 在這之後加入 ]--------------------------------------
#
{ECP_AVATAR}
#
#-----[ 存檔後上傳 ]--------------------------------------
# 結束
資料來源: 下載點: 必須注意版本最新狀況,作者很細心隨時會補充mod加入辦法作者授權 寫:thanks for the translation, you can publish/use it anywhere you want but the ecp 0.2.0 thats published on phpbb.com/phpbb2.de is still a beta mod(some minor problems with the avatar)
the 0.2.1 thats inside Minerva dont have this but a backport of the 0.2.1 to use it in a normal phpbb 2.0.6 is not possible yet.
Mi top Priority for now is to help in the dev. from Minerva...
Philippt
主題討論及修正回報:
請注意這個版本有幾個小BUG,請至下面主題討論尋找修改法 安裝範本圖片
使用者資料修改入口\r
![圖檔](http://home.pchome.com.tw/art/recordgame/ecpdemo/demo1.gif)
註冊資訊
![圖檔](http://home.pchome.com.tw/art/recordgame/ecpdemo/demo2.gif)
偏好設定及個人資料設定
![圖檔](http://home.pchome.com.tw/art/recordgame/ecpdemo/demo3.gif)
個性簽名
![圖檔](http://home.pchome.com.tw/art/recordgame/ecpdemo/demo4.gif)
附記:
這個外掛和PCP比起來算天壤之別,他只是把個人資料分類拆整幾個網頁所以不會耗費到主機資源.擴充性強,怎麼修改搭配就看各人巧思了! 裝PCP大怪物的人大概會後悔吧
![哈 哈 哈 :lol:](./images/smilies/icon_lol.gif)
如果你有裝其他的MOD有動到欄位,別擔心,檔案的ADD目錄有作者細心補充的各式外掛加入方法~
請慢用
![眨眼 ;-)](./images/smilies/icon_wink.gif)