Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/www/lifetype/class/data/Date.class.php on line 240
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/www/lifetype/class/locale/locale.class.php on line 505
六月
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/www/lifetype/class/data/Date.class.php on line 240
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/www/lifetype/class/locale/locale.class.php on line 505
22
TinyMCE 搭配 PHP GZIP Compressor 1.0.9 的問題
Deprecated: Function set_magic_quotes_runtime() is deprecated in /usr/local/www/lifetype/class/cache/Cache_Lite/Lite.php on line 717
Deprecated: Function set_magic_quotes_runtime() is deprecated in /usr/local/www/lifetype/class/cache/Cache_Lite/Lite.php on line 727
安裝blog心得 引用 (0)
editpost.template 以及 newpost.template 中
+ <script type="text/javascript" src="js/tinymce/tiny_mce.js"></script>
<script type="text/javascript" src="js/tinymce/tiny_mce_gzip.js"></script>
<script type="text/javascript" src="js/tinymce/tiny_mce-plog.js"></script>
也就是事先呼叫原本的 tiny_mce.js
這問題就解決了..
修改方式:
啟用所見即所得(WYSIWYG)文章編輯。
今天早上, 發現在設定 link 的 popup 視窗不會出來, 把載入的 tiny_mce_gzip.php 改成 tiny_mce.js 就可以使用. 就試著使用新的設定方式, 改成載入 tiny_mce_gzip.js, 然後再先呼叫 tinyMCE_GZ.init(), 然後才是原本的 tinyMCE.init(), 結果, 情形一樣. 後來想在 LifeType 的 template 中, 加上 tinyMCE_GZ.init() 的參數, 不過, 所使用的 {} 方式, 與 smarty 的設定有衝突, 所以就直接修改 tiny_mce_gzip.js 的內容. 不過, 結果仍然一樣.
後來試了很久, 終於發現, 如果有使用到那個 plugin, 就必須在 tiny_mce-plog.js 中的 plugins 設定, 與 tiny_mce_gzip.js 中的 plugins 設定都有才能正常使用.
目前就把 LifeType 的 newpost.template, editpost.template 中的 tiny_mce.js (或 tiny_mce_gzip.php) 改成 tiny_mce_gzip.js, 然後在 tiny_mce_gzip.js 的最後, 加上:
tinyMCE_GZ.init({}); 然後把 tiny_mce_gzip.js 中的 plugins 設定, 改成與 tiny_mce-plog.js 中的設定一樣 (languages, themes 也是). 另外, 如果想把這個 gzip 檔案給 cache 起來, 就把 disk_cache 設為 true, 這樣子在 tinymce 的目錄下, 會產生一個 tiny_mce_xxxxxxx.gz 的檔案 (所以, 你的 web 執行者必須有權限可以寫入), 如果那些 js 檔案沒有異動, 會重複使用這個檔案.
這樣子處理之後, 目前看起來運作似乎是正常的了.
ps:記得要啟用 ->個人網誌設定-> 網誌設定->啟用所見即所得(WYSIWYG)文章編輯。