歡迎光臨, 訪客. 請先 登入註冊一個帳號.
三月 29, 2024, 09:06:23 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  開發  |  外掛程式  |  LifeType 1.2.9 無法使用 templateeditor 更新模版的解法 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: LifeType 1.2.9 無法使用 templateeditor 更新模版的解法  (閱讀 16466 次)
hlps9999
LifeType 中文發展團隊
資深會員
*****
文章: 288



檢視個人資料 個人網站
« 於: 十月 30, 2009, 03:28:27 下午 »

若是升級到 LifeType 1.2.9,發生無法更新模版的問題


參考 [pLog-svn] r6739 您可以自己修改一下

一般使用者更新個人模版

 /plugins/templateeditor/class/action/pluginblogupdatetemplatefileaction.class.php  第43行,加上如下的 true

     $this->registerFieldValidator( "fileContent", new StringValidator(true)); 

管理員修改全域模版

/plugins/templateeditor/class/action/pluginsiteupdatetemplatefileaction.class.php 第 44行  ,加上如下的 true

$this->registerFieldValidator( "fileContent", new StringValidator(true));

若是 editcomments 這個外掛,則要修改
/plugins/editcomments/class/action/adminupdatecommentaction.class.php  第43行  ,加上如下的 true

$this->registerFieldValidator("commentText", new StringValidator(true));
已記錄
u882061
新手見習
*
文章: 31


檢視個人資料 個人網站
« 回覆文章 #1 於: 十一月 01, 2009, 07:43:52 上午 »

寫得很清楚,
謝謝分享!

已記錄

系統:Linux Fedora系列  Apache 2.2 + MySQL 5 + PHP 5.2
頁: [1]
LifeType 中文開發論壇  |  開發  |  外掛程式  |  LifeType 1.2.9 無法使用 templateeditor 更新模版的解法 « 上篇主題 下篇主題 »
    前往: