歡迎光臨, 訪客. 請先 登入註冊一個帳號.
三月 29, 2024, 06:35:31 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: 1 [2]
16  支援 / 使用與操作 / Re: permission denied的問題及local資料夾locale_zh_TW.php檔案內容 於: 一月 11, 2008, 05:00:45 下午
bibicall兄,我改完,重新上傳後,主頁面都沒有變動,但進入文章後,改過的地方才會顯示出來,為什麼主頁面會沒有變呢?
我改了locale/locale_zh_TW.php這個檔的「$messages['categories'] 」變數,為什麼會這樣呢?

還有,我怎麼不能刪掉tmp這個資料夾裡的資料??我是用ftp連上去我的主機的,我看了一下裡面的資料的User是Nobody,但是其它資料夾裡的資料的User是我自已,那要怎麼解決?

還有tmp這個資料夾是在幹嘛的呢??裡面的資料都刪掉沒關系嗎?
17  支援 / 使用與操作 / permission denied的問題及local資料夾locale_zh_TW.php檔案內容 於: 一月 11, 2008, 02:24:02 下午
一.我的blog架在智邦的主機上了,現在想開始,修改板面,但是不太知道,要從那邊入手,還有我在智邦的主機上要用templateeditor,好像不能用耶!!

會有像下面這樣的錯誤:

Exception message: mkdir(./templates/blog_1/nonzero/backups) [function.mkdir]: Permission denied
Error code: 2
-- Backtrace --
/raid/vhost/musa.url.tw/www/class/file/file.class.php(318): mkdir
/raid/vhost/musa.url.tw/www/plugins/templateeditor/class/view/pluginblogedittemplatefileview.class.php(38): file.createdir
/raid/vhost/musa.url.tw/www/class/controller/controller.class.php(379): pluginblogedittemplatefileview.render
/raid/vhost/musa.url.tw/www/admin.php(43): admincontroller.process

經過bibicall的講解,是permission denied的問題,這時要把template底下的資料夾及檔案修改成「777」,就可以改善這個問題了。

二.下面這段程式,我想要改變tr("categories")這個變數,那現在 tr("categories")的意思是「文章分類」,我想改成「文章類別」,我要去那邊改,因為,我在模版裡,我沒有看到「categories」這個變數的設定,文件裡有很多資料,有很多變數的定義的說明,但就是沒看到,這些變數是怎麼來的??
<h4><span>{$locale->tr("categories")}</span></h4>
            <ul class="links">
               {foreach from=$articlecategories item=articleCategory}
                  <li><a href="{$url->categoryLink($articleCategory)}">{$articleCategory->getName()}</a>&nbsp;<a href="{$url->categoryRssLink($articleCategory)}"><img src="{$url->getUrl("/imgs/rss_logo_small.gif")}" style="border:0px;" alt="RSS 0.90" align="middle" /></a></li>
               {/foreach}
            </ul>

也是bibicall的講解,在local資料夾locale_zh_TW.php檔案,這邊修改就可以了,記得存檔要存成utf-8 no BOM。謝謝bibicall的幫忙。
頁: 1 [2]