歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 29, 2024, 07:37:37 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
頁: 1 ... 5 6 [7] 8 9 10

 61 
 於: 十二月 20, 2008, 12:01:17 上午 
發表者 u882061 - 最新文章 由 heartbuy
hi, 這個外掛很好用啊, 但是測試過後, 好像一定要我登入了lifetype admin, 投票才會顯示出來, 如果我登出了lifetype admin, 投票就不見了, 能告訴解決方法嗎, 謝謝!

 62 
 於: 十二月 04, 2008, 01:08:09 下午 
發表者 hsuzy - 最新文章 由 hsuzy
nigix 沒用過,不過,簡潔網址需要 web server 支援 pathinfo ,給你參考。
lss
謝謝 lss, 我後來找了 pathinfo 和  nginx 的資料, 可惜沒辦法搞定

後來直接修改 class/net/prettyrequestparser.class.php
不過 rss 會有問題 -----> 放棄

最好只好手工刻 nginx 的 rewrite 來符何蕳潔網址的規定
而這樣 error page 就不用指到 error.php


程式碼:
        location  /blog {

                # Permalink to the blog entry (i.e. /1_userfoo/archive/3_title-foo-bar.html)
                rewrite ^/blog/post/([0-9]+)/([0-9]+)$ /blog/index.php?op=ViewArticle&blogId=$1&articleId=$2 last;
                # -- same as above but with paging included
                rewrite ^/blog/post/([0-9]+)/([0-9]+)/page/([1-9]+)$ /blog/index.php?op=ViewArticle&blogId=$1&articleId=$2&page=$3 last;

                # Monthly archive (i.e. /1_userfoo/archive/200401.html)
                rewrite "^/blog/archives/([0-9]+)/([0-9]{6})$" /blog/index.php?blogId=$1&Date=$2 last;
                # -- same as above but with paging included
                rewrite "^/blog/archives/([0-9]+)/([0-9]{6})/page/([1-9]+)$" /blog/index.php?blogId=$1&Date=$2&page=$3 last;

                # Daily archive (i.e. /1_blogfoo/archive/20040101.html)
                rewrite "^/blog/archives/([0-9]+)/([0-9]{8})$" /blog/index.php?blogId=$1&Date=$2 last;
                 # -- same as above but with paging included
                rewrite "^/blog/archives/([0-9]+)/([0-9]{8})/page/([1-9]+)$" /blog/index.php?blogId=$1&Date=$2&page=$3 last;

                #user
                rewrite ^/blog/user/([0-9]+)/([0-9]+)$ /blog/index.php?blogId=$1&userId=$2 last;

                # Album (i.e. /88_userfoo/albums/34_title-foo-bar.html)
                rewrite ^/blog/album/([0-9]+)/([0-9]+)$ /blog/index.php?op=ViewAlbum&blogId=$1&albumId=$2 last;
                # -- same as above but with paging included
                rewrite ^/blog/album/([0-9]+)/([0-9]+)/page/([1-9]+)$ /blog/index.php?op=ViewAlbum&blogId=$1&albumId=$2&page=$3 last;

                # Albums (i.e. /88_userfoo/albums/)
                rewrite ^/blog/album/([0-9]+)$ /blog/index.php?op=ViewAlbum&blogId=$1&albumId=0 last;

                # Category view (i.e. /88_userfoo/categories/4_cat-foobar.html)
                rewrite ^/blog/category/([0-9]+)/([0-9]+)$ /blog/index.php?blogId=$1&postCategoryId=$2 last;
                # -- same as above but with paging included
                rewrite ^/blog/category/([0-9]+)/([0-9]+)/page/([1-9]+)$ /blog/index.php?blogId=$1&postCategoryId=$2&page=$3 last;

                # Category-Feeds (i.e. /3_userfoo/feeds/categories/2_category/atom)
                rewrite ^/blog/rss/([0-9]+)/([0-9]+)/(.*)$ /blog/rss.php?blogId=$1&categoryId=$2&profile=$3 last;

                # Feeds (i.e. /3_userfoo/feeds/atom)
                rewrite ^/blog/rss/(.*)/([0-9]+)$ /blog/rss.php?blogId=$2&profile=$1 last;

                # Trackbacks (i.e. /3_userfoo/trackbacks/34_title-foo-bar.html)
                rewrite ^/blog/trackbacks/([0-9]+)/([0-9]+)$ /blog/index.php?op=Trackbacks&blogId=$1&articleId=$2 last;

                # Comment form (i.e. /88_userfoo/comment/34_title-foo-bar.html)
                rewrite ^/blog/comment/([0-9]+)/([0-9]+)$ /blog/index.php?op=Comment&blogId=$1&articleId=$2 last;

                # Resources (i.e. /88_userfoo/resources/this-is-a-resource-name.pdf.html)
                rewrite ^/blog/resource/([0-9]+)/([0-9]+)$ /blog/index.php?op=ViewResource&blogId=$1&resId=$2 last;

                # Download a resource (i.e. /88_userfoo/get/this-is-a-resource-name.pdf)
                rewrite ^/blog/get/([0-9]+)/(.+)$ /blog/resserver.php?blogId=$1&resource=$2 last;

                # A non-default blog (i.e. /88_userfoo)
                rewrite ^/(blog/)+([0-9]+)$ /blog/index.php?blogId=$1 last;
                # -- same as above but with paging included
                rewrite ^/blog/([0-9]+)/page/([1-9]+)$ /blog/index.php?blogId=$1&page=$2 last;
                rewrite ^/blog/$ /blog/index.php?blogId=1 last;

                # Static Pages (i.e /3_userfoo/demosites)
                rewrite ^/blog/static/([0-9]+)/(.+)$ /blog/index.php?op=Template&blogId=$1&show=$2 last;
        }

 63 
 於: 十二月 03, 2008, 11:58:41 上午 
發表者 reic - 最新文章 由 u882061
這個模板看起來很有質感,
謝謝分享!!

 64 
 於: 十二月 03, 2008, 11:56:18 上午 
發表者 blueway757 - 最新文章 由 u882061
好漂亮的模板,
而且竟有11個之多,
謝謝大大分享!!

 65 
 於: 十二月 03, 2008, 08:39:48 上午 
發表者 hsuzy - 最新文章 由 lss
我在 nginx + fastcgi 上安裝 lifetype

嗯, 用一般網址沒問題

不過改成簡潔網址就出問題
我有把  error的page 指到 lifetype 的 error.php

不過首頁上可以看到文章, 但是點進去單篇的時候
會出現找不到指定文章的訊息

不知道有沒有人成功在 nginx 上跑的 ...
nigix 沒用過,不過,簡潔網址需要 web server 支援 pathinfo ,給你參考。

lss

 66 
 於: 十二月 03, 2008, 02:41:25 上午 
發表者 hsuzy - 最新文章 由 hsuzy
我在 nginx + fastcgi 上安裝 lifetype

嗯, 用一般網址沒問題

不過改成簡潔網址就出問題
我有把  error的page 指到 lifetype 的 error.php

不過首頁上可以看到文章, 但是點進去單篇的時候
會出現找不到指定文章的訊息

不知道有沒有人成功在 nginx 上跑的 ...

--

話說我原本租虛擬主機的時候, lifetype 跑的好好的
不巧某天因為資源佔過多被鎖了
於是換 256ram 的 VPS, 搬家後跑 lifetype, loading 都 2以上
不知道哪邊可以改善 (跑 apache2, 有三個blog)


 67 
 於: 十一月 29, 2008, 09:18:11 下午 
發表者 u882061 - 最新文章 由 u882061
外掛:secretblog
功能:秘密部落格
適用:LifeType 1.2 系列
來源地:
LifeType英文網站
http://wiki.lifetype.net/index.php/Plugin_secretblog

檔案:放在附件,請下載

心得:這個外掛還不錯,可惜只有英文版本,於是把它中文化,翻得不順暢,請包涵...
         

啟用步驟:
(一)把檔案解壓縮放置 /plugin 下面
(二)安裝完畢

 68 
 於: 十一月 29, 2008, 09:12:46 下午 
發表者 u882061 - 最新文章 由 u882061
外掛:crystalpoll
功能:簡易型投票
適用:LifeType 1.2 系列
來源地:
LifeType英文網站
http://wiki.lifetype.net/index.php/Plugin_crystalpoll

檔案:放在附件,請下載

心得:這個外掛還不錯,可惜只有英文版本,於是把它中文化,翻得不順暢,請包涵...
          此外,它一次只能表決一個議題,真的是有夠簡易,只好將就用...

啟用步驟:
(一)把檔案解壓縮放置 /plugin 下面
(二)讓投票區出現在左邊或右邊的欄位中,
修改 links.template 或 footer.template,把下列語法加入


<!-------投票區------->

{if $crystalpoll}
<div id="crystalPoll">投票區</div>
<script>pollBaseUrl = "{$url->getBaseUrl()}";</script>
<script type="text/javascript" src={$url->getUrl("/plugins/crystalpoll/js/crystalPollAjax.js")}></script>
<script>readPollAjax();</script>
{/if}

(三)安裝完畢

 69 
 於: 十一月 29, 2008, 08:55:57 下午 
發表者 u882061 - 最新文章 由 u882061
外掛:stickyposts
功能:文章置頂及公告
適用:LifeType 1.2 系列
來源地:
阿杰老師的部落格實驗室
http://www.tiec.tp.edu.tw/lifetype/category/102/4720

檔案:放在附件,請下載

心得:這個外掛很好用,尤其是用在組織性質的部落格,如:班級部落格、處室部落格,可惜不支援1.2以上的版本,尋尋覓覓多日,終於在 阿杰老師的部落格 挖到寶,自己再做了點小改版,讓它的字更大。

啟用步驟:
(一) 把檔案解壓縮放置 /plugin 下面
(二)修改 main.template,在 <DIV class=blog>的下方, <!-- Loop Start -->的上方,中間有個空白處,插入下列語法


{if !$showAll}
{if $stickyposts->isEnabled()}

<DIV class=sidetitle>置頂文章</DIV>
<DIV class=side>

{assign var=stickys value=$stickyposts->getArticles('sticky')}
{foreach from=$stickys item=post}
<DIV class=sidebody><a title="{$post->getText()|truncate:150:"..."|strip_tags|escape}" href="{$url->postPermalink($post)}">{$post->getTopic()}</a></br></DIV>
{/foreach}
</br>

{assign var=stickyCategory value=$stickyposts->getCategory('sticky')}
<div style="text-align: right;">
<a class=aside href="{$url->categoryLink($stickyCategory)}">更多置頂文章...</a>
</div>
</DIV>

{/if}
{/if}


(三)讓公告出現在左邊或右邊的欄位中,
修改 links.template或footer.template ,找前面一點的地方貼入下面語法


<<!--- 公告 --->

{if $stickyposts->isEnabled()}

<DIV class=sidetitle>公 告 </DIV>
<DIV class=side>
{assign var=stickys value=$stickyposts->getArticles('announce')}
{foreach from=$stickys item=post}
<DIV class=sidebody><li><a title="{$post->getText()|truncate:150:"..."|strip_tags|escape}" href="{$url-

>postPermalink($post)}">{$post->getTopic()}</a></li></br></DIV>
{/foreach}
</br>
{assign var=announceCategory value=$stickyposts->getCategory('announce')}
<div style="text-align: right;">
<a href="{$url->categoryLink($announceCategory)}">更多公告...</a>
</div>
</DIV>

{/if}


(四)安裝完畢

 70 
 於: 十一月 29, 2008, 08:26:41 下午 
發表者 lonely1128 - 最新文章 由 u882061
Secret blog 這個外掛只能鎖部落格文章,
鎖文章要用Secret post,
但這外掛不支援 1.2 系列

頁: 1 ... 5 6 [7] 8 9 10