預約系統 版本更新
預約系統phpscheduleit (Booked schedular) 版本更新
先將舊版下載然後備份、資料庫也要備份
1. 要"先"將舊版的檔案 /config/config.php 下載備份再貼入新版的 /config 中。
2. 將語言檔 /lang/zh_tw & /lang/zh_cn 和檔案夾 /lang/zh_tw & /lang/zh_cn 貼入新版中
3. 將 /tpl/support-and-credits.tpl & /tpl/globalfooter.tpl 檔案貼入新版中
4. 要"先"將/Web/uploads/images & /Web/uploads/reservation 檔案下載備份再貼入新版中。
5. 將商標 /Web/img/booked.png 檔案貼入新版中
6. 將信首和信尾 /tpl/Email/emailheader.tpl & /tpl/Email/emailfooter.tpl 檔案貼入新版中
7. 將 /Web/css/reservation.css 和 Web/css/style.css 檔案貼入新版中
8. 隱藏Reservation page中的 更多的預約標的(more resource)、預約名稱(Title of reservation)、預約說明(Description of reservation):
路徑 /tpl/Reservation/create.tpl
9. 修改註冊電話為必填
路徑 /tpl/register
註解 Line 107-111
<!--<p>
<label class="reg">{translate key="Phone"}<br/>
{textbox name="PHONE" class="input" value="Phone" size="20"}
</label>
</p> !-->
> 管理 > 自訂 > 屬性
類別:用戶 增添一個電話必填屬性
10. 將/Jobs/sendreminders.php 的 permission 設定為 755
11. 執行 http://www.yourdomanname/sub-directory/Web/install/configure.php
12. 修改 footer
路徑:/tpl/globalfooter.tpl
(資料更新 Try to flush cached files)
13. 同是2.5版本升級 (/database_schema/upgrades/),不需要修改database
14. 檔案夾 /lang/zh_tw & /lang/zh_cn 中之檔案內容上下若是各加入
{include file='..\..\tpl\Email\emailheader.tpl'}
{include file='..\..\tpl\Email\emailfooter.tpl'}
新版郵件修正 (若無問題則不需修改;若是出現自定的 footer & header 重疊,可以做下列修改)
/lib/Email/EmailMessage.php
刪除 line 51-55
# $header = $this->email->fetch('Email\emailheader.tpl');
# $body = $this->email->FetchLocalized($templateName);
# $footer = $this->email->fetch('Email\emailfooter.tpl');
# return $header . $body . $footer;
加入
return $this->email->FetchLocalized($templateName);