[外掛] Birthday 1.5.8 (生日)

MODs Released by Other phpbb Sites
非官方認證通過之 MOD ,或許有安全性之疑慮,所有問題由原發表者回覆!

版主: 版主管理群

主題已鎖定
阿維
竹貓忠實會員
竹貓忠實會員
文章: 868
註冊時間: 2003-02-23 13:36
來自: 台南市

[外掛] Birthday 1.5.8 (生日)

文章 阿維 »

檔頭:

代碼: 選擇全部

############################################################## 
## MOD Title:          Birthday 
## MOD Author:         Niels < ncr@db9.dk > (Niels Chr. R鷣) http://mods.db9.dk 
## MOD Description:    This mod will add a birthday field into your
##                     user's profile and make users age viewable
##                     to others when viewing posts.
## MOD Version:        1.5.7
## Compatibility:      2.0.6
## 
## Installation Level: Advanced
## Installation Time:  30 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit:      18
##      index.php
##      viewtopic.php
##      admin/admin_board.php
##      admin/admin_users.php
##      includes/functions.php
##      includes/page_header.php
##      includes/usercp_avatar.php
##      includes/usercp_register.php
##      includes/usercp_viewprofile.php
##      language/lang_english/lang_admin.php
##      language/lang_english/lang_main.php
##      templates/subSilver/index_body.tpl
##      templates/subSilver/overall_header.tpl
##      templates/subSilver/profile_add_body.tpl
##      templates/subSilver/profile_view_body.tpl
##	templates/subSilver/viewtopic_body.tpl
##      templates/subSilver/admin/board_config_body.tpl
##      templates/subSilver/admin/user_edit_body.tpl
##      
## Included Files:     3
##      birthday_db_update.php
##	root/birthday_popup.php
##	root/templates/subSilver/greeting_popup.tpl
##
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
## 
## 1. Full MOD description
## -----------
## This mod will add a birthday field into your user's profile
## and make users age viewable to others when viewing posts.
## Users who not specify a birthday, the script will default
## to "None Specified." 
## At the day of the users birthday (next visit) the board can
## be configured to display a birthday greeting .
##
## 2. EasyMOD
## -----------
## This MOD is compatible and can be installed by EasyMOD
## of Nuttzy (but is not officially EasyMOD Compliant)!
## http://area51.phpbb.com/phpBB22/viewforum.php?sid=&f=15
##
## However, on alpha releases of EM and meanwhile beta or 
## final release some actions are NOT performed.
## You'll have to do them manually !
##
## 2.1 SQL commands are not performed
## -----------
## This MOD need a database update.
## Then, in any case if you install this MOD manually or using
## an alpha release of EM, please copying the *_db_update.php
## in your phpBB root directory, run it with your navigator,
## and then delete it from the phpBB root directory.
##
## Please, do it NOW! Before editing phpBB files by EM or manually!!!
## Otherwise, you may have an error message during your next
## connection.
##
## 2.2 Translation are not managed
## -----------
## Moreover, EM can not already manage actions for any other
## language than English (but language intructions are proceed
## to all installed languages in order to prevent errors).
## So the translations provided with this MOD must be installed
## manually if you need them.
##
## 3. Official last version link
## -----------
## Meanwhile the phpBB group validation and as the MOD is not yet
## in the phpBB MOD database, check this official link for updates...
## http://mods.db9.dk/viewtopic.php?t=6
##
############################################################## 
## MOD History: 
## 
##   2004/09/12 - Version 1.5.7
##      - timezone fix, to page_header.php - a typo, made popup happen without timezone applyed
##
##   2004/04/25 - Version 1.5.6 
##      - add or update the Dutch, French, Hungarian, Icelandic, 
##        Romanian, Slovak, polish & Spanish translation in the MOD archive 
##      - add the 2 zodiac optional features and their available 
##        translations in the MOD archive 
##
##   2004/04/22 - Version 1.5.5
##	- fixed a isue in index.php, witch couse a error if username have special chars
##
##   2003/12/10 - Version 1.5.4
##	- changed the sql into index.php, with a more standart sql
##
##   2003/12/07 - Version 1.5.3
##      - phpBB template & EasyMOD compliance enhancement
##      - Chinese Traditional Taiwan, Dutch, Estonian, French,
##        German & Thai translations now provide with the MOD
## 
##   2003/10/13 - Version 1.5.2
##      - corrected index.php, allowing  lookforward set to 0
## 
##   2003/08/27 - Version 1.5.1  
##      - Corrected the how-to for Subsilver -> subSilver,
##        making it work on *NIX OS
##      - corrected the how-to for usercp_viewprofile.php, to
##        make it work beter with the ADD-ON's
## 
##   2003/08/27 - Version 1.5.0  
##      - Now ready for 2.0.6. and EM
##      - merged part 1 and part 2, now only one larger "how-to",
##        part 3 and 4 will be renamed to "ADD-ON" 1 and 2
## 
##   2003/08/03 - Version 1.4.21
##      - fixed a language isue with the new code in functions.php
## 
##   2003/08/02 - Version 1.4.20
##      - corrected the how-to, regarding file functions.php
## 
##   ????/??/?? - Version 1.4.19
##      - corrected 1.4.18. update (index.php)
## 
##   ????/??/?? - Version 1.4.18
##      - corrected 1.4.17. update (functions.php/index.php)
## 
##   ????/??/?? - Version 1.4.17
##      - change some code, witch should respond faster
## 
##   ????/??/?? - Version 1.4.16
##      - confirmed for 2.0.5. by "kooky"
## 
##   ????/??/?? - Version 1.4.15
##      - corrected the find tag once again, SECURITY RISK
## 
##   ????/??/?? - Version 1.4.14
##      - changed a find tag, witch was giving some users truble
##        using, if other mods
## 
##   ????/??/?? - Version 1.4.13
##      - cosmetic changes
## 
##   ????/??/?? - Version 1.4.12
##      - corrected a misbehaiver, if user was registering and\r
##        a error occoured
## 
##   ????/??/?? - Version 1.4.11
##      - corrected a typo in the usercp_register, regarding
##        popup messages
## 
##   ????/??/?? - Version 1.4.10
##      - removed a free_result, since mySQL 4.x users did
##        have problem with this
## 
##   ????/??/?? - Version 1.4.9
##      - fixed a problem, if avartar is viewed in user edit,
##        and no birthday was selected
## 
##   ????/??/?? - Version 1.4.8
##      - changed a find tag in usercp_register.php
## 
##   ????/??/?? - Version 1.4.7
##      - improved page_header.php
## 
##   ????/??/?? - Version 1.4.6
##      - made it posible to specify user must submit birthday
## 
##   ????/??/?? - Version 1.4.5
##      - made 2 tags identicall
## 
##   ????/??/?? - Version 1.4.4
##      - still some typos in the how-to regarding $n / $i in
##        viewtopic.php
## 
##   ????/??/?? - Version 1.4.3
##      - corrected zodiac in viewtopic, so if no birthday,
##        no zodiac is showen
## 
##   ????/??/?? - Version 1.4.2
##      - corrected the viewtopic.php, zodiac should only be
##        inserted, if part 3 are installed
## 
##   ????/??/?? - Version 1.4.1
##      - cosmetic change in viewtopic_body.tpl
## 
##   ????/??/?? - Version 1.4.0
##      - confirmed for ver 2.0.4, change in usercp_register.php,
##        lang_main.php
## 
##   ????/??/?? - Version 1.3.16
##      - '//' is changed to '//W' in functions.php
## 
##   ????/??/?? - Version 1.3.15
##      - users birthday was "reset" if other errors occour
##        in usercp_register.php
## 
##   ????/??/?? - Version 1.3.14
##      - a $$ is changed to a $ in index.php
## 
##   ????/??/?? - Version 1.3.13
##      - fix, date of 1. was showen as last day in previous month
## 
##   ????/??/?? - Version 1.3.12
##      - if no users in list a "array" was showen,
##        this is now corrected
## 
##   ????/??/?? - Version 1.3.11
##      - usernames on index sepperated by commas
## 
##   ????/??/?? - Version 1.3.10
##      - missed some language updates for ver 1.3.9
## 
##   ????/??/?? - Version 1.3.9
##      - fix, age calculation around year shift 
## 
##   ????/??/?? - Version 1.3.8
##      - code in functions.php improved
## 
##   ????/??/?? - Version 1.3.7
##      - code in ver 1.3.6. improved
## 
##   ????/??/?? - Version 1.3.6
##      - improved drop down, thanks to "weaselweb"
## 
##   ????/??/?? - Version 1.3.5
##      - there was a typo in the how-to regarding page_header.php
## 
##   ????/??/?? - Version 1.3.4
##      - calculation of dates now correct on 31-12 if leap
##        year and date > 1970
## 
##   ????/??/?? - Version 1.3.3
##      - corrected some typo's related to user_register.php
##        introduced in ver 1.3.0
## 
##   ????/??/?? - Version 1.3.2
##      - included the file birthday_popup.php, now changes
##        to privmsg.php are not nessesary
## 
##   ????/??/?? - Version 1.3.1
##      - fix a bug in index.php
## 
##   ????/??/?? - Version 1.3.0
##      - Now support drop down box as input for birthday in
##        users profile
## 
##   ????/??/?? - Version 1.2.2
##      - $year changed to $birth_year, to avoid complications
##        together with other mods
## 
##   ????/??/?? - Version 1.2.1
##      - have missed to include some changes in the how-to,
##        regarding viewtopic.php
## 
##   ????/??/?? - Version 1.2.0
##      - now confirmed for phpBB2 version 2.0.2
## 
##   ????/??/?? - Version 1.1.14
##      - fixed a mistake in index.php, that causes no users
##        to have birthday
## 
##   ????/??/?? - Version 1.1.13
##      - fixed a wrong FIND after the speed improvements
## 
##   ????/??/?? - Version 1.1.12
##      - speed improvements, I have moved some of the code
##        from page_header.php to index.php, it turn out that
##        none was using the info on other pages, so no need
##        for them there
## 
##   ????/??/?? - Version 1.1.11
##      - the english language file, have now changed a few
##        places thanks to "mr Cru"
## 
##   ????/??/?? - Version 1.1.10
##      - minor change the lang_main.php, $lang['Birthday_explain']
##        to properly support different birthday formats
## 
##   ????/??/?? - Version 1.1.9
##      - fix a missing </span> tag in profile_add_body.tpl
## 
##   ????/??/?? - Version 1.1.8
##      - history started, improved page_header.php
## 
##   ????/??/?? - Version 1.1.0
##      - initial relese phpBB2 ver 2.0.0.
## 
##   ????/??/?? - Version 1.0.0
##      - initial release
## 
##   ????/??/?? - Version 0.9.0
##      - initial BETA release phpBB2 RC-2
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
外掛名稱:Birthday 1.5.7EM (生日)
檔案下載:http://www.phpbbhacks.com/viewhack.php?id=187
繁體中文支援:部分
http://phpbb-tw.net/phpbb/viewtopic.php?t=25999
http://phpbb-tw.net/phpbb/viewtopic.php?t=10004
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8535
註冊時間: 2004-04-30 01:54
來自: Taiwan

[建議]使用 1.5.8

文章 心靈捕手 »

檔頭說明(部份擷取):

代碼: 選擇全部

## MOD History: 
## 
##   2006-01-12 - Version 1.5.8
##      - phpBB template & EasyMOD compliance enhancement
##      - Modify 2 FIND instructions to be phpBB 2.0.18+ compliant
##      - Include the sql queries in the MOD and remove the
##        birthday_db_update.php file
##      - Add DIY instructions to install other languages than English
##      - Use the INCREMENT instruction to increment the
##        whosonline.gif rowspan
補充說明:
1. 增進相容 phpBB 風格以及 EasyMOD
2. 修改兩處 FIND 安裝說明, 相容 phpBB 2.0.18
3. 移除資料庫更新檔, 將 SQL 指令, 直接寫入安裝說明
4. 新增自行加入其他語言說明
5. 安裝說明, 使用 INCREMENT 指令於增加 whosonline.gif 欄位數
ps. 已經安裝 1.5.7 版者, 不必升級.

外掛下載:
1.原作者網站( 需註冊) 的版本, 已經是 1.5.8 版
http://mods.db9.dk/index.php

2. phpBBHacks.com 網站的版本, 目前仍是 1.5.7 版
http://www.phpbbhacks.com/viewhack.php?id=187

中文化參考:
由於原發文作者 谷雨 文章已經遺失,
SOURCE: http://phpbb-tw.net/phpbb/viewtopic.php?p=60021#60021
而此外掛升級至 1.5.8 版後的中文化 (作者: william91), 似乎是 utf-8 編碼,
於是, 整理自己修訂後的中文化 (big-5 編碼) 提供參考.

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

#
#-----[ FIND ]------------------------------------------------
#

代碼: 選擇全部

?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
// Start add - Birthday MOD
$lang['Birthday_required'] = '將強迫使用者一定要設定年齡';
$lang['Enable_birthday_greeting'] = '開啟生日歡迎訊息';
$lang['Birthday_greeting_expain'] = "凡有登記生日的使用者, 在其生日登入論壇時, 將會有生日賀詞.";
$lang['Next_birthday_greeting'] = "下一個生日訊息年份";
$lang['Next_birthday_greeting_expain'] = "這個設定, 可以設定某年當使用者生日到時, 會彈出生日祝賀視窗.";
$lang['Wrong_next_birthday_greeting'] = "下個生日訊息年份已經過了, 請您重新設定新的年份.";
$lang['Max_user_age'] = "最大使用者年齡";
$lang['Min_user_age'] = "最小使用者年齡";
$lang['Birthday_lookforward'] = "生日期待功能";
$lang['Birthday_lookforward_explain'] = "可設定多少天內將生日的會員, 列表在首頁上.";
// End add - Birthday MOD
#
#-----[ OPEN ]------------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_main.php

#
#-----[ FIND ]------------------------------------------------
#

代碼: 選擇全部

?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
// Start add - Birthday MOD
$lang['Birthday'] = "生日";
$lang['No_birthday_specify'] = "還沒有設定";
$lang['Age'] = "年齡";
$lang['Wrong_birthday_format'] = "您輸入的生日樣式是不正確的";
$lang['Birthday_to_high'] = '很抱歉! 系統不允許會員的年齡高於 %d 歲';
$lang['Birthday_require'] = '您的生日必須要填';
$lang['Birthday_to_low'] = '很抱歉! 系統不允許會員的年齡低於 %d 歲';
$lang['Submit_date_format'] = 'Y-m-d'; //php date() 格式- 附註: 只有 d, m and Y 可以使用而且全部都要用 (不同的排列組合是允許的)
$lang['Birthday_greeting_today'] ="我們非常高興能在這裡, 恭喜您今天 %s 歲生日!<br>祝您有個愉快的一天! 更別忘了在夜晚時分, 向天空許個願...<br>但願您在未來的一年裡, 一切順心如意!<br /><br /> 版面管理團隊 敬上";//%s is substituted with the users age
$lang['Birthday_greeting_prev'] ="我們在此奉上遲來的祝福, 祝您 %s 歲生日快樂 (%s)!<br>但願您在未來的一年裡, 一切順心如意!<br /><br /> 版面管理團隊 敬上";//%s is substituted with the users age, and birthday
$lang['Greeting_Messaging'] ="恭喜";
$lang ['Birthday_today'] = "今天生日的會員:";
$lang ['Birthday_week'] = "未來 %d 天內生日的會員:";
$lang ['Nobirthday_week'] = "未來 %d 天內沒有任何會員生日"; // %d is substitude with the number of days
$lang ['Nobirthday_today']="今天沒有任何會員生日";
$lang['Year'] = '年';
$lang['Month'] = '月';
$lang['Day'] = '日';

// NOTE: Please do not translate the folowing 4 lines !
// They are automatically translated into your language
// 附註: 請不要翻譯底下 4 行!
// 它們會自動轉換成您的語系\r
$lang['day_short'] = array ($lang['datetime']['Sun'],$lang['datetime']['Mon'],$lang['datetime']['Tue'],$lang['datetime']['Wed'],$lang['datetime']['Thu'],$lang['datetime']['Fri'],$lang['datetime']['Sat']);
$lang['day_long'] = array ($lang['datetime']['Sunday'],$lang['datetime']['Monday'],$lang['datetime']['Tuesday'],$lang['datetime']['Wednesday'],$lang['datetime']['Thursday'],$lang['datetime']['Friday'],$lang['datetime']['Saturday']);
$lang['month_short'] = array ($lang['datetime']['Jan'],$lang['datetime']['Feb'],$lang['datetime']['Mar'],$lang['datetime']['Apr'],$lang['datetime']['May'],$lang['datetime']['Jun'],$lang['datetime']['Jul'],$lang['datetime']['Aug'],$lang['datetime']['Sep'],$lang['datetime']['Oct'],$lang['datetime']['Nov'],$lang['datetime']['Dec']);
$lang['month_long'] = array ($lang['datetime']['January'],$lang['datetime']['February'],$lang['datetime']['March'],$lang['datetime']['April'],$lang['datetime']['May'],$lang['datetime']['June'],$lang['datetime']['July'],$lang['datetime']['August'],$lang['datetime']['September'],$lang['datetime']['October'],$lang['datetime']['November'],$lang['datetime']['December']);

// Birthday Zodiacs Mod
$lang['Zodiac'] = '星座';
$lang['Capricorn'] = '魔羯座';
$lang['Aquarius'] = '寶瓶座';
$lang['Pisces'] = '雙魚座';
$lang['Aries'] = '牡羊座';
\n$lang['Taurus'] = '金牛座';
$lang['Gemini'] = '雙子座';
$lang['Cancer'] = '巨蟹座';
$lang['Leo'] = '獅子座';
$lang['Virgo'] = '處女座';
$lang['Libra'] = '天秤座';
$lang['Scorpio'] = '天蠍座';
$lang['Sagittarius'] = '射手座';

// Chinese Zodiacs Mod
$lang['Chinese_zodiac']= '生肖';
$lang['Unknown'] = '不知道';
$lang['Rat'] = '鼠';
$lang['Buffalo'] = '牛';
$lang['Tiger'] = '虎';
$lang['Cat'] = '兔';
$lang['Dragon'] = '龍';
$lang['Snake'] = '蛇';
$lang['Horse'] = '馬';
$lang['Goat'] = '羊';
$lang['Monkey'] = '猴';
$lang['Cock'] = '雞';
$lang['Dog'] = '狗';
$lang['Pig'] = '豬';
// End add - Birthday Mod
#
#-----[ SAVE & CLOSE ]----------------------------------------
#
# EoM

ps.
此中文化包含生日 (附加) 外掛: 生肖, 星座.
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
主題已鎖定

回到「非官方認證外掛」