歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 20, 2024, 12:14:51 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  建議 / 網誌文化與業界動態 / Re: Plog改名了阿 於: 十一月 02, 2005, 03:03:56 下午
http://www.lifetype.net/blog.php/plog_development_journal/page/blog
可以從這下載 (?)
但是還是 1.0.2beta o_o
2  站務 / 站務公告 / [公告] pLog 線上聊天室 於: 六月 13, 2005, 11:49:37 下午
我試了我家的cable (中壢的cable)
跟學校的server (www.cyu.edu.tw)
都會timeout掉!!

用另一台Hinet的server就正常執行了..O_o
我是用 FreeBSD 5 + ports/irc/irssi 執行
程式碼:
irssi -c irc.freenode.net -n [你的暱稱] 

來做連線..連線好時可以用
程式碼:
/SET term_type UTF-8
/join #pLog-Chinese

來做好連至頻道還有設定好 utf-8 的功能 微笑

另輸出需要使用 screen 來跑 .. (真麻煩orz)
先執行 screen 在執行 irssi 喔!
程式碼:
(Ctrl + a)
:utf-8 on
:encoding big5 utf-8
3  開發 / 模版設計 / 我改過的 MARs spirit 於: 六月 13, 2005, 11:03:52 下午
用預設的 mars spirit 有幾個小缺點
1 沒有最新文章
2 沒有最新迴響
3 迴響的template我覺得設計不好 都擠在一起耶。

1 最新文章 (加在panel.template)
程式碼:

    <li id="wordpress">{$locale->tr("recently")}
    <ul>
                {foreach from=$recentposts item=post}
        <li><a title="{$post->getTopic()}" href="{$url->postLink($post)}">{$post->getTopic()|truncate:15}</a></li>
                {/foreach}
    </ul>
    </li>


2 最新迴響 (加在panel.template)
要先把plugin裡的最近迴響設定打開顯示數目開心就好 吐舌頭
程式碼:

{if $recentcomments->isEnabled()}
    <li id="wordpress">{$locale->tr("最新回應")}
{assign var=comments value=$recentcomments->getRecentComments()}
<ul>
{foreach from=$comments item=comment}
{assign var=commentpostid value=$comment->getArticleId()}
{assign var=commentpost value=$recentcomments->getArticle($commentpostid)}
<li><a title="Des is : {$comment->getText()|strip_tags}" href="{$url->postPermalink($commentpost)}#{$comment->getId()}"><b>{$comment->getUsername()} : </b>{$comment->getText()|truncate:30:"..."|strip_tags}</a></li>
{/foreach}
</ul>
</li>
{/if}

*BTW我有改成移至連結上面就會出現完整迴響的內文。

3 迴響的template
程式碼:

{include file="$blogtemplate/header.template"}

<div id="content">
    {assign var="postDate" value=$post->getDateObject()}
    {assign var="postOwner" value=$post->getUserInfo()}
    <h2>{$locale->formatDate($postDate,"%d %B, %Y")}</h2>

    <div class="post">
        {include file="$blogtemplate/post.template"}

</div>
        <h2 id="comments">{$locale->tr("comments")}</h2>
         <ol id="commentlist">
        {foreach from=$comments item=comment}
        {assign var=commentText value=$comment->getText()}
            <li id="comment-{$comment->getId()}">
                <p>{$commentText}</p>

                <p><cite>{$locale->tr("posted_by")}
                   {if $comment->getUserUrl() != ""}
                    <a href="{$comment->getUserUrl()}"}>{$comment->getUsername()}</a>
                   {else}
                    {$comment->getUsername()}
                   {/if} —
                   {assign var=commentDate value=$comment->getDateObject()}
                   {$locale->formatDate($commentDate, "%d %B %Y, %H:%M")}
                </cite></p>
            </li>
        {/foreach}
        </ol>

        {if $blogsettings->getValue("comments_enabled") && $post->getCommentsEnabled()==1}
            <br style="clear: both;" />
           <h2>{$locale->tr("add_comment")}</h2>
          {include file="$blogtemplate/commentform.template"}
        {/if}
    </div>

{include file="$blogtemplate/panel.template"}
{include file="$blogtemplate/footer.template"}

*主要是把下面的 </div> 移到上面去 (其實我不知道會不會破壞語法,但是這樣有我要的效果)

這是我大概改的地方 (還是有些小地方沒說出來啦 哈哈)
然後我也有在 footer.template 加上  Modified by Thieftwo .at* gmail dot*** com ... (滿足自己虛榮心..-_-)
分享一下自己弄的東西,希望有拋磚引玉的效果 XD
4  站務 / 站務公告 / [公告] pLog 線上聊天室 於: 六月 13, 2005, 10:31:21 下午
我這邊連都timeout耶 XD
(工作站 & 本機都一樣 ..orz)
程式碼:

23:26 -!- Irssi: Looking up irc.freenode.net
23:26 -!- Irssi: Connecting to irc.freenode.net [216.165.191.52] port 6667
23:27 -!- Irssi: Unable to connect server irc.freenode.net port 6667 [Operation timed out]
5  支援 / 安裝與設定 / pLog 1.0.1 版釋出了! 於: 五月 31, 2005, 06:41:05 上午
魔鬼
沒想到自己這麼快看到 plog 1.0.1 release 放出的消息,還以為過了很久了呢 XD
剛剛更新了一下,將 plog 1.0.1 的檔案copy至原先目錄,目前一切正常,也看到一些東西的更新了 微笑
ps 更新前還是要做好備份啊 orz
頁: [1]