歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 18, 2024, 11:33:01 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: 1 2 [3]
31  開發 / 外掛程式 / Re: smileys 出错 於: 九月 11, 2006, 03:40:34 上午
我也發生同樣問題, 滿怪的

環境是 lifetype 1.1, smileys 也是抓 1.1 適用的
用法也是按照 readme.txt

-------------------------------------------

最後我去看一下
smileys 1.0 的, 其中有一行
程式碼:
$rg =& RequestGenerator::getRequestGenerator( $blogInfo );
取代
smileys 1.1 的
程式碼:
$rg = $blogInfo->getBlogRequestGenerator();

結果就可以囉..
32  支援 / 使用與操作 / Re: 中文的搜尋語法 於: 七月 26, 2006, 03:30:16 上午
你可以試試
http://demo.lifetype.org.tw/index.php?op=Search&blogId=57&searchTerms=%E5%96%AE%E6%9B%B2

--
之間的轉換
http://tw2.php.net/manual/tw/function.urlencode.php
33  站務 / 站務公告 / Re: LifeType 移機完畢,謝謝智邦生活館的贊助! 於: 三月 22, 2006, 05:58:07 下午
辛苦了,

很期待 1.1
可是我註冊 dev.lifetype.org.tw 想玩看看
審核信的連結有問題

Fatal error: Call to undefined function: getuserblogs() in /raid/apache2/htdocs/plog/dev.lifetype.org.tw/class/summary/action/activeaccountaction.class.php on line 48
34  開發 / 模版設計 / Re: [請益]smarty的技巧(關於文章彙整) 於: 二月 10, 2006, 01:14:01 上午
感謝 lss的說明, 看到沒辦法使用現成的變數, 小弟用粗淺的smarty功力硬幹了
程式碼:
                <ul>
                        {assign var="archivesYear" value=3000}
                        <li>
                {foreach from=$archives item=month}
                            {assign var="archivesYearTemp" value=$month->getName()|regex_replace:"/[ 一二三四五六七八九十月]/":""}
                            {if $archivesYear neq $archivesYearTemp}
                                {assign var="archivesYear" value=$archivesYearTemp}
                                </li>
                                <li>{$archivesYear}</li>
                                <li>
                            {else}
                                ,
                            {/if}
                    <a title="{$month->getUrl()}" href="{$month->getUrl()}">{$month->getName()|regex_replace:"/[ 1234567890]/":""} [{$month->getNumArticles()}]</a>
                {/foreach}
              </ul>
35  開發 / 模版設計 / [請益]smarty的技巧(關於文章彙整) 於: 二月 09, 2006, 07:48:35 下午
程式碼:
<ul>
{foreach from=$archives item=month}
    <li><a href="{$month->getUrl()}">{$month->getName()}</a> [{$month->getNumArticles()}]</li>
    {/foreach}
 </ul>
上面這段會產生
. 八月 2005 [9]
. 四月 2005 [1]
. 十一月 2004 [2]
. 八月 2004 [1]
. 四月 2004 [1]
--
因為如果月份太多, 會拉很長, 但是我又不喜歡下拉式的
我想做的是像
2005
36  開發 / 核心補強 / Re: TinyMCE的問題, 修改Insert Resource的HTML語法 於: 十一月 25, 2005, 12:18:29 上午
謝謝 mark , 解決了..

原來firefox關掉沒有用, 要
37  開發 / 核心補強 / TinyMCE的問題, 修改Insert Resource的HTML語法 於: 十一月 24, 2005, 11:27:16 下午
我已經將編輯器改成 TinyMCE, 使用也正常
用Insert Resource插入圖片 出現的html語法是像是
程式碼:
<a href="http://xxx.xxx/blog/resserver.php?blogId=2&resource=xxx.jpg"><img border="0" src="http://xxx.xxx/blog/resserver.php?blogId=2&resource=xxx.jpg&mode=preview" alt="xxxx" /></a>
因為我的習慣是將圖片向右對齊, 所以插入圖片後又用 edit image鍵, 改成 right, 而且<a title="xxxx"> 也會有描述
於是我想在 insert resource 就做這些處理..我研究一下原始碼
修改
js/tinymce/jscripts/tiny_mce/tiny_mce-plog-resourcelist.js
程式碼:
function _generateResourceLink( dest, blogId, type, resourceName, resourceDesc, preview, mimeType, resId )
{
    var htmlCode = '';
    if( type == 1 ) {
    // if the resource is an image, check the second parameter to see wether we'd like
    // to show the preview with a link to the real size image or the real image
    // inlined with the text
    if( preview == 1 ) {
    htmlCode = '<a id="res_' + resId+ '" href="'+plogBaseUrl+'/resserver.php?blogId='+blogId+'&amp;resource='+encodeURIComponent(resourceName)+'" type="'+mimeType+'">';
    htmlCode += '<img style="margin: 5px;" border="0" align="right" alt="'+resourceDesc+'" src="'+plogBaseUrl+'/resserver.php?blogId='+blogId+'&amp;resource='+encodeURIComponent(resourceName)+'&amp;mode=preview" />';
    htmlCode += '</a>';
    }
else if ( preview == 2 ) {
------------------------省略
}
我修改 htmlCode += 那幾行, 竟然沒有反應, 我最後乾脆把  tiny_mce-plog-resourcelist.js 改檔名
結果在編輯文章也沒發生錯誤, 我改錯地方了嗎??
38  建議 / 要求與建議 / Re: pLog 與 WordPress 的比較! 於: 十一月 13, 2005, 02:49:28 上午
謝謝大家的回答,我也覺得serendipity不錯,只不過,我僅是使用者,它的資源又少,看英文可以,要開發程式就難囉!

http://open.38.com/index.php/board,34.0.html
39  支援 / 使用與操作 / [請問]有重新縮圖的功能嗎?? 於: 十一月 13, 2005, 12:08:15 上午
請問有重新縮圖的功能嗎??

用了一段時間, 發現預設的 120x120 太小
改成240x240

不過上傳滿多張圖片了, 有重縮嗎
因為圖片都是有連結在blog的~ 微笑

--
另外我之前po那個 http://forum.lifetype.org.tw/index.php?topic=1367.0
是有做出來, 參考論壇的文章和樣板,
不過要加連結到文章的時候, 樣板的語法 $url->postLink($post) 不能用
不知道 $url 怎麼來的~

只好用
href="http://xxx.xxxt/blog/post/'. $article->getBlog() .'/'. $article->getId()
40  支援 / 使用與操作 / Re: [問題]在單純的網頁上 include lifetype某個blog最新幾篇文章 於: 十一月 05, 2005, 06:33:20 上午
sorry, 沒找仔細

http://forum.lifetype.org.tw/index.php?topic=920.0

http://forum.lifetype.org.tw/index.php?topic=719.0&highlight=%E5%82%99%E4%BB%BD

http://forum.lifetype.org.tw/index.php?topic=713.0
41  支援 / 使用與操作 / [問題]在單純的網頁上 include lifetype某個blog最新幾篇文章 於: 十一月 04, 2005, 04:54:48 下午
請問在自己寫的php網頁上 include lifetype某個blog的最新幾篇文章
有現成的方法可以參考嗎 謝謝
(在這邊發問對嗎@@)
頁: 1 2 [3]