歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 25, 2024, 09:28:35 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  一台主機可以同時有兩個plog 系統存在嗎? « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 一台主機可以同時有兩個plog 系統存在嗎?  (閱讀 21436 次)
downtown
新手見習
*
文章: 8


檢視個人資料 個人網站
« 於: 二月 17, 2005, 01:51:48 上午 »

www.abc.com/plog
www.abc.com/xyz/plog

不同的路徑,不同的database table,有時兩個會錯亂ㄝ
特別是summary.php
就算刪掉其中一個(包括刪除database table)其資料還會殘留再summary.php上面,是cookie的關係嗎?
已記錄
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #1 於: 二月 17, 2005, 10:49:00 上午 »

在plog的根目錄下,有個.htaccess要改,您改了嗎?
以您舉的例子,www.abc.com/xyz/plog這個站的.htaccess要改。
請把下面這幾行
程式碼:

ErrorDocument 401 /plog/error.php
ErrorDocument 403 /plog/error.php
ErrorDocument 404 /plog/error.php

改成
程式碼:

ErrorDocument 401 /xyz/plog/error.php
ErrorDocument 403 /xyz/plog/error.php
ErrorDocument 404 /xyz/plog/error.php

應該就可以了。
這個我確定在0.32上沒問題。1.0應該也沒問題。
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
downtown
新手見習
*
文章: 8


檢視個人資料 個人網站
« 回覆文章 #2 於: 二月 17, 2005, 12:07:02 下午 »

刪除 www.abc.com/plog 下所有東西及 table
按照上述的方法改過後
www.abc.com/plog 的舊文章仍會出現在www.abc.com/xyz/plog/summary.php 上
而且點進去還可看到舊文章
這是什麼道理呢?


我是使用0.32版本
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #3 於: 二月 17, 2005, 03:54:19 下午 »

1. 如果是模版上的迴響、靜態網頁等網址,還是留著之前的 URL,mmm.... 你可以試著清掉 /tmp 裡面的 cache 在 refresh summary 看看嗎?看看是不是 cache 的原因。

2. 如果是文章內的網址,那當然是不會跟著改。

我假設你說的應該是 1. 可以請您試試看嗎?

Mark
已記錄

downtown
新手見習
*
文章: 8


檢視個人資料 個人網站
« 回覆文章 #4 於: 二月 19, 2005, 07:10:01 上午 »

當我清掉 /tmp 裡面的 cache 在 refresh summary後, 出現

Exception message: Smarty error: [in summary/index.template line 23]: syntax error: unrecognized tag: $blog->getBlog()|strip_tags" (Smarty_Compiler.class.php, line 403)
Error code: 256
-- Backtrace --
C:\Discuz\plog\class\template\smarty\Smarty.class.php(1102): trigger_error
C:\Discuz\plog\class\template\smarty\Smarty.class.php(1857): smarty_compiler.trigger_error
....
...
..
.

不知代表什麼?
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #5 於: 二月 21, 2005, 12:36:43 上午 »

這是說smarty 再解析你的 summary 中的 index.template 第 23 行發生錯誤。1. 你能把你的 index.template 貼上來嗎?
2. 或是先把 "|strip_tags" 拿掉試試。

Mark
已記錄

downtown
新手見習
*
文章: 8


檢視個人資料 個人網站
« 回覆文章 #6 於: 二月 21, 2005, 03:12:15 上午 »

這是我的 index.template

程式碼:
{include file="summary/header.template" selected="index"}

<div id="maincolumn">
    <br style="clear:both;" />
    <div id="intro">
        <h2>Welcome to pLog!</h2>
        <h4 class="question">What is this site?</h4>
        <p>You could use this area to give some information about this site.</p>
       
        <ul>
            <li>See the following links for more information: <br />
                <a href="summary.php?op=Faq">FAQ</a></li>
            <li><a href="register.php">Register a new blog here</a></li>
        </ul>
    </div>
    {include file="summary/recent.template"}
</div>

<div id="column-left">
    <h2>Most active blogs</h2>
    <ul>
    {foreach from=$activeBlogs item=blog}
        <li class="{cycle values="odd,even"}"><a href="{$url->blogLink($blog)}">{$blog->getBlog()|strip_tags"}</a></li>
    {/foreach}
    </ul>

    <h2>Newest blogs</h2>
    <ul>
    {foreach from=$recentBlogs item=blog}
        <li class="{cycle values="odd,even"}"><a href="{$url->blogLink($blog)}">{$blog->getBlog()|strip_tags"}</a></li>
    {/foreach}
    </ul>

    <h2>Most commented articles</h2>
    <ul>
    {foreach from=$commentedPosts item=post}
        <li class="{cycle values="odd,even"}">
            <a href="{$url->postPermalink($post)}">{$post->getTopic()|strip_tags"}</a> ({$post->getTotalComments()})<br />
        </li>
    {/foreach}
    </ul>

    <h2>Most read articles</h2>
    <ul>
    {foreach from=$readestBlogs item=post}
        <li class="{cycle values="odd,even"}">
            <a href="{$url->postPermalink($post)}">{$post->getTopic()|strip_tags"}</a> ({$post->getNumReads()})<br />
        </li>
    {/foreach}
    </ul>  
</div>

<div id="column-right">
    <h2>Log-in</h2>
    <form id="loginForm" method="post" action="admin.php">
    <fieldset>
        <div class="field">
            <label for="userName">{$locale->tr("username")}</label><br />
            <input type="text" tabindex="1" name="userName" id="userName" value="" size="12" maxlength="50" />
        </div>
        <div class="field">
            <label for="userPassword">{$locale->tr("password")}</label><br />
            <input type="password" tabindex="2" name="userPassword" id="userPassword" size="12" maxlength="50" />
        </div>
        <br />
        <input type="submit" name="Login" value="{$locale->tr("login")}" />
        <input type="hidden" name="op" value="Login" />
    </fieldset>
    </form>
       
    <h2>Other Stuff</h2>
    <h4 class="upper"></h4>
    <ul>
        <li><a href="http://www.plogworld.org" rel="external">add</a></li>
        <li><a href="http://www.plogworld.org" rel="external">for example</a></li>
        <li><a href="http://www.plogworld.org" rel="external">some</a></li>
        <li><a href="http://www.plogworld.org" rel="external">links</a></li>                        
        <li><a href="http://www.plogworld.org" rel="external">here</a></li>
    </ul>
    <h4 class="upper">How about a logo here?</h4>
    <a href="http://www.bitacoles.net" rel="external" class="noborder"><img src="imgs/plog-powered.png"  alt="pLog Powered" class="nodecoration" /></a>
    <br />
</div>

{include file="summary/footer.template"}


奇怪的是IE refresh後就沒有再出現這些錯誤碼
但summary.php的畫面卻有些字無法顯示
請看:
http://lin.homeip.net/scu/plog/summary.php
已記錄
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #7 於: 二月 21, 2005, 08:40:19 上午 »

引用自: downtown

Exception message: Smarty error: [in summary/index.template line 23]: syntax error: unrecognized tag: $blog->getBlog()|strip_tags"
....
...
..
.

不知代表什麼?

多了strip_tags後面的雙引號,拿掉應該就沒事了。
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
downtown
新手見習
*
文章: 8


檢視個人資料 個人網站
« 回覆文章 #8 於: 二月 21, 2005, 10:11:51 上午 »

沒錯,拿掉就沒事了,謝謝 lss
但這是什麼原因呢?
每個人都有這個問題嗎?還是這只是個案呢?
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #9 於: 二月 21, 2005, 10:43:34 上午 »

這是 summary 的 bug ... 一直沒修復 傷心

如果你有參考我寫的投影片,你就知道這是由來已久的 bug ...

真是抱歉,趕著1.0,這個一直沒改。

Mark
已記錄

頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  一台主機可以同時有兩個plog 系統存在嗎? « 上篇主題 下篇主題 »
    前往: