歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 29, 2024, 10:07:09 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: 1 2 [3] 4 5
31  開發 / 手冊文件 / Re: LifeType 基本操作影片 於: 九月 15, 2006, 05:00:45 下午
啊~Sorry!是我沒找全
後來看到較新的影片已改為
http://www.lifetype.org.tw

感謝大家的分享 微笑
32  開發 / 手冊文件 / Re: LifeType 基本操作影片 於: 九月 15, 2006, 04:17:38 下午
LifeType 的相關教學影片是以 Creative Commons 的方式授權,
在歷經改名、軟體更新等過程後,教學影片仍具參考價值,
但原影片中的網址似已不適用,不知該改連何處較佳,
例如:http://wiki.lifetype.org.tw or http://blog.markplace.net or 其他呢?
在此想徵求一下原作者的意見。

還望 Mark 抽空回答,謝謝!
33  開發 / 外掛程式 / Re: 請問 site-wide 的作用? 於: 九月 08, 2006, 04:41:29 下午
那是在 0.32 的時候,因為 summary 頁面太爛了!

所以通常是用第一個 blog 來當作 summary 頁面,所以設計了這樣的 plugin 來用。 ....

現在應該移除才對!

呵呵!這是有歷史的。 :P

Mark

我倒覺得,如果不礙事,還是可以保留,
畢竟對不會寫程式或不想改核心程式的人,還是有點用的呀!

例如:以 site-wide 的功能,在單一部落格產生全站最新迴響RSS,
再利用 newsgator 的服務,產生 script 語法,之後嵌入 summary 模板中,
這樣應可在 summary 產生全站最新迴響的效果吧?

雖然有點迂迴,但沒動到程式,升級時應比較簡單,
但我之前已依 CrazyLion 的分享修改程式,
http://forum.lifetype.org.tw/index.php?topic=2116.0
所以自己還沒有實作過。

我有試圖應用在最新引用,但沒找到最新引用RSS的模板,
而自己模仿最新迴響RSS修改的模板也有問題,
還不確定可行啦!
34  開發 / 外掛程式 / Re: 請問 site-wide 的作用? 於: 九月 07, 2006, 08:01:03 下午
明白囉!感謝 James 的清楚說明 微笑
35  開發 / 外掛程式 / 請問 site-wide 的作用? 於: 九月 06, 2006, 06:37:34 下午
在 Plugin: Recent Trackbacks 的 readme.txt 中寫到

引用
You can use:
2. $recenttrackbacks->getRecentTrackbacks( $maxTrackbacks , $based ) to get the recent trackbacks.

Where:
2. $based is return the site-wide or blog-wide trackbacks. "BLOG" means blog-wide, and "SITE" means site-wide. Default is "BLOG".

$based 預設為 BLOG,可得單一部落格中,不分POST的最新引用;
如設為 SITE 呢?SITE 所指範圍為何?
是整個 LifeType 嗎?這樣似乎可用於 summary,
而 Plugin: Recent Comments 也有類似的說明,
但我記得 summary 不能用外掛啊!
這實在把我給搞糊塗了 疑惑

其實我覺得這比較像個人的英文問題 吐舌頭
但看在我勇於提問的份上,
還請知道的人不吝分享,謝謝!
36  開發 / 外掛程式 / Re: [教學]迴響recentcomments插件安裝(for pLog 1.0) 於: 九月 06, 2006, 06:02:31 下午
想請教.....

若是想要加上顯示文章的主題  要如何做修改呢?
或是從何處下手  謝謝

請試試
{$commentpost->getTopic()}
37  開發 / 模版設計 / Re: 請問錯誤訊息的模板修改 於: 九月 01, 2006, 09:54:01 下午
發現一篇舊文
http://forum.lifetype.org.tw/index.php?topic=58.0

根據 Mark 的留言,這部分曾有遺漏
引用
Bug .... Bug..... 又是 Bug......

Summary 這個模版竟然沒有 error.template。我會把他加上去的。謝謝!

基本上是 action 的錯誤,誤把 summaryerror.template 寫成了 error.templte,已經在 svn rev 1124 修復了。

我想會不會是版本不同,又漏掉呢?
我試著把 summaryerror.template 改名為 error.tempalte
但也沒用耶
38  開發 / 模版設計 / 請問錯誤訊息的模板修改 於: 九月 01, 2006, 09:22:50 下午
我發現當前端發生錯誤時,僅會出現錯誤訊息,
卻沒有套用任何模板,例如:

ERROR: The blog does not exist.
http://demo.lifetype.org.tw/index.php?blogId=999

我不求漂亮,但想至少套個頁首、頁尾,
看了一下summary的模板,比較相關的好像是 summaryerror.template,
可是裡面已經有設定,但似乎沒有生效耶!

請是我找錯模板嗎?那麼正確的應該是哪個呢?
歡迎指教,謝謝!
39  支援 / 使用與操作 / [社群]在管理介面顯示文章點閱數 於: 八月 30, 2006, 02:05:40 下午
不知道有沒有人分享過,如果重複或發錯版,請刪除;
內容有誤,也歡迎指正,謝謝!

不少 LifeTyper 都對點閱數頗關心,
現行方式多是透過模板設計,在前端顯示點閱數,
http://forum.lifetype.org.tw/index.php?topic=1414.0

但對社群管理者來說,修改全域模板會影響全部的人,
並不是所有人都想在前端顯示點閱數;
也不是想顯示點閱數的人,便願意學會修改模板,
因此我希望能如同 CM(comment)、TB(trackback) 的數量,
PV(pageview) 也能顯示在管理介面中,這樣比較折衷。

其實方法還是一樣(在模板加上{$post->getNumReads ()}),只是應用的地方不同。

1. 打開 *\templates\admin\editposts.template

2. 找到 CM、TB 的語法
引用
<th style="width:10px;"><input class="checkbox" type="checkbox" class="check" name="all" id="all" value="1" onclick="toggleAllChecks('postsList');" /></th>
<th style="width:345px;">{$locale->tr("topic")}</th>
<th style="width:115px;">{$locale->tr("date")}</th>
<th style="width:90px;">{$locale->tr("author")}</th>
<th style="width:60px;">{$locale->tr("status")}</th>
<th style="width:30px; text-align:center;">CM</th>
<th style="width:30px; text-align:center;">TB</th>

<th style="width:95px;">{$locale->tr("actions")}</th>

3. 插入 PV 的欄位
引用
<!-- 775 -->
<th style="width:10px;"><input class="checkbox" type="checkbox" class="check" name="all" id="all" value="1" onclick="toggleAllChecks('postsList');" /></th>
<th style="width:345px;">{$locale->tr("topic")}</th>
<th style="width:115px;">{$locale->tr("date")}</th>
<th style="width:90px;">{$locale->tr("author")}</th>
<th style="width:60px;">{$locale->tr("status")}</th>
<th style="width:30px; text-align:center;">CM</th>
<th style="width:30px; text-align:center;">TB</th>

<th style="width:30px; text-align:center;">PV</th>
<th style="width:95px;">{$locale->tr("actions")}</th>

4. 最上面一行註記的<!-- 775 -->, 是指這個表格的寬度,
    但因為多一個 PV 欄位,所以要從其他欄位偷點空間 吐舌頭
    這部分請自行視情況調整(例如:我覺得標題太寬、日期太擠),
    也可以最後再來微調,請記得 width 總和要為 775 唷!
    下面是我調整後的版本:
引用
<!-- 775 -->
<th style="width:10px;"><input class="checkbox" type="checkbox" class="check" name="all" id="all" value="1" onclick="toggleAllChecks('postsList');" /></th>
<th style="width:310px;">{$locale->tr("topic")}</th>
<th style="width:135px;">{$locale->tr("date")}</th>
<th style="width:75px; text-align:center;">{$locale->tr("author")}</th>
<th style="width:40px;">{$locale->tr("status")}</th>
<th style="width:40px; text-align:center;">CM</th>
<th style="width:40px; text-align:center;">TB</th>
<th style="width:50px; text-align:center;">PV</th>
<th style="width:75px;">{$locale->tr("actions")}</th>

5. 再往下拉,找到顯示 TB 數的語法
引用
<td style="text-align: center;">
{if $post->getTotalTrackbacks() > 0}
<a href="?op=editTrackbacks&articleId={$post->getId()}">({$post->getTotalTrackbacks()})</a>
{else}
0
{/if}
</td>
<td>
<div class="list_action_button">
<a href="?op=editPost&amp;postId={$post->getId()}"><img src="imgs/admin/icon_edit-16.png" alt="{$locale->tr("edit")}" /></a>
<a href="?op=deletePost&amp;postId={$post->getId()}"><img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" /></a>
<a href="?op=postStats&amp;postId={$post->getId()}"><img src="imgs/admin/icon_stats-16.png" alt="{$locale->tr("statistics")}" /></a>
</div>
</td>

6. 插入顯示 PV 數的語法
引用
<td style="text-align: center;">
{if $post->getTotalTrackbacks() > 0}
<a href="?op=editTrackbacks&articleId={$post->getId()}">({$post->getTotalTrackbacks()})</a>
{else}
0
{/if}
</td>
<td style="text-align: center;">{$post->getNumReads()}</td>
<td>
<div class="list_action_button">
<a href="?op=editPost&amp;postId={$post->getId()}"><img src="imgs/admin/icon_edit-16.png" alt="{$locale->tr("edit")}" /></a>
<a href="?op=deletePost&amp;postId={$post->getId()}"><img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" /></a>
<a href="?op=postStats&amp;postId={$post->getId()}"><img src="imgs/admin/icon_stats-16.png" alt="{$locale->tr("statistics")}" /></a>
</div>
</td>

7. 存檔後,即可由管理介面的 [文章列表] 中看到 PV 數囉!

補充說明
如果你想要提前讓 CM、TB、PV 顯示中文
http://forum.lifetype.org.tw/index.php?topic=1894.0

請自行在 *\locale\locale_zh_TW.php
新增對應的翻譯,例如:
$messages['CM'] = '迴響';
$messages['TB'] = '引用';
$messages['PV'] = '瀏覽';

然後將欄位名稱修改如下:
引用
<!-- 775 -->
<th style="width:10px;"><input class="checkbox" type="checkbox" class="check" name="all" id="all" value="1" onclick="toggleAllChecks('postsList');" /></th>
<th style="width:310px;">{$locale->tr("topic")}</th>
<th style="width:135px;">{$locale->tr("date")}</th>
<th style="width:75px; text-align:center;">{$locale->tr("author")}</th>
<th style="width:40px; text-align:center;">{$locale->tr("status")}</th>
<th style="width:40px; text-align:center;">{$locale->tr("CM")}</th>
<th style="width:40px; text-align:center;">{$locale->tr("TB")}</th>
<th style="width:50px; text-align:center;">{$locale->tr("PV")}</th>
<th style="width:75px;">{$locale->tr("actions")}</th>
40  支援 / 使用與操作 / Re: 请教下,英文字体发生凹陷是怎么一回事? 於: 八月 23, 2006, 12:25:55 下午
YA!這題我會 吐舌頭
不過僅在 1.0 的版本上試過,1.1 應該一樣吧?
如有誤,歡迎指正 微笑

最新發表文章的文章標題是由<h5>這個 tag 所控制

1. 請打開 */styles/summary.css
2. 找到 h5 的 CSS 語法
h5
{
    font-family      : trebuchet ms, tahoma, sans-serif;
    font-size        : 1.1em;
    font-weight      : bold;
    vertical-align   : bottom;
    padding          : 0px;
    text-align       : left;
    text-transform   : capitalize;
    margin-bottom: 5px;
    margin-top: 9px;
}

3. 隱藏或刪除 vertical-align 那一行即可(應會套預設值 baseline)
h5
{
    font-family      : trebuchet ms, tahoma, sans-serif;
    font-size        : 1.1em;
    font-weight      : bold;
    /*vertical-align   : bottom;*/
    padding          : 0px;
    text-align       : left;
    text-transform   : capitalize;
    margin-bottom: 5px;
    margin-top: 9px;
}

4. 另外,還可順便改一下 text-transform,如果你希望標題的英文大小寫,跟原文一樣的話。
h5
{
    font-family      : trebuchet ms, tahoma, sans-serif;
    font-size        : 1.1em;
    font-weight      : bold;
    /*vertical-align   : bottom;*/
    padding          : 0px;
    text-align       : left;
    /*text-transform   : capitalize;*/
    margin-bottom: 5px;
    margin-top: 9px;
}
41  開發 / 核心補強 / Re: 請問如何在Post中放動態資訊? 於: 八月 11, 2006, 12:45:11 上午
謝謝 darkhero 的說明

我只是希望能方便 user 瞭解書籍的狀況
不需要再查詢 or 點任何連結
因此訊息只會是簡單的內容,例如:可外借、借閱中......之類,
這樣應該不是太複雜吧?

我們曾想過也許要用 javascript 吧?
但因對 LifeType 不是很瞭解,很怕是兜圈子來達成需求,
所以便差我這菜鳥來詢問各位行家的建議。

目前我們還在研究中,歡迎大家繼續指教 微笑
42  開發 / 核心補強 / Re: 請問如何在Post中放動態資訊? 於: 八月 05, 2006, 03:46:55 下午
謝謝 lss 的回覆 微笑

看來這部分不是我能處理的,
還是留給會寫程式的人研究囉!
43  開發 / 核心補強 / Re: 請問如何在Post中放動態資訊? 於: 八月 02, 2006, 11:21:43 上午
嗚~不曉得是我問錯板,還是語意不清,
請問有沒有好心人可以指點一下方向呢?
44  支援 / 使用與操作 / Re: 中文的搜尋語法 於: 七月 31, 2006, 12:37:48 下午
謝謝 markwu 的回覆 微笑

不過,我不會寫程式,
想詢問的是前端現成可用的應用語法。

目前的替代方法是利用其他的 Search Engine(例如:Google),
以相同的中文關鍵字查詢,
複製搜尋結果頁網址中已編碼的查詢字串,
套用到已知的LifeType查詢語法,
這方法雖有點笨,但至少不用麻煩工程師做任何的修改呀!

我目前想到的應用方式是可當成 TAG or 熱門詞的連結,
或者當文章中提及某個部落格,而對方相關文章散見各分類時,
至少可利用 search 將想相關的文章集合列出,
一點想法分享,供大家參考囉!
45  開發 / 核心補強 / 請問如何在Post中放動態資訊? 於: 七月 26, 2006, 11:33:01 下午
因我們的部落格是以書為主要內容,
所以希望能顯示一些動態資訊〈例如:書是否外借〉,
不曉得是否有此可能?

目前我們安裝的是 LifeTpe 1.0.5,
如果可以在 Post 顯示動態資訊,
那麼在考量未來將升級 LifeType 1.1 的情況下,
該如何實現呢?

請大家指教,謝謝!
頁: 1 2 [3] 4 5