歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 20, 2024, 11:28:27 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1] 2
1  測試 / LifeType 1.1 測試 / Re: 发一篇无关的,愿台湾地区 LifeType 开发组成员一切顺利! 於: 十二月 28, 2006, 07:57:39 下午
我也来祝愿一下!!祝大家身体健康,新年快乐!
听说海底光缆断了,前二天访问不来,现在可以访问了,好高兴!!
2  開發 / 核心補強 / Re: 显示用户相片出错? 於: 十一月 30, 2006, 07:03:21 上午
已经有解决的方法了:
请见:
http://forums.lifetype.net/viewtopic.php?p=31056#31056

感谢:
phunkphorce
jeanytu
3  開發 / 核心補強 / 显示用户相片出错? 於: 十一月 29, 2006, 03:11:46 下午
HELP!
I add those code in "post.template:",then in summary page can show bloger's picture,it works well, I am very happy. Please see http://blog.jscsedu.com

{assign var=blogOwner value=$blog->getOwnerInfo()}
{if $blogOwner->hasPicture()}
{assign var=picture value=$blogOwner->getPicture()}
<img src="{$url->resourcePreviewLink($picture)}" border="1" width="50"  />
{/if}

BUT,when you view "summary.php?op=PostList", It can not show bloger's picture, only an "X".It show this error:

http://blog.jscsedu.com/
Exception message:
This function must be implemented  by child classes.
Error code: 0-- Backtrace --/home/zlf/blog/class/net/baserequestgenerator.class.php(493): 
throw /home/zlf/blog/tmp/summary/%%39^392^3922B7DE%%post.template.php(29):
summaryrequestgenerator.resourcepreviewlink
/home/zlf/blog/class/template/smarty/Smarty.class.php(1871):
include /home/zlf/blog/tmp/summary/%%95^95E^95E2B2EA%%postslist.template.php(69): 
cachedtemplate._smarty_include
/home/zlf/blog/class/template/smarty/Smarty.class.php(1265): 
include /home/zlf/blog/class/template/cachedtemplate.class.php(48):
smarty.fetch
/home/zlf/blog/class/summary/view/summarycachedview.class.php(100): 
cachedtemplate.fetch
/home/zlf/blog/class/summary/view/summarycachedview.class.php(148): 
summarypostlistview.senduncachedoutput
/home/zlf/blog/class/summary/view/summarypostlistview.class.php(95): 
summarycachedview.render
/home/zlf/blog/class/controller/controller.class.php(330): 
summarypostlistview.render
/home/zlf/blog/summary.php(40): 
summarycontroller.process

Can everyone help me!
Thanks a lot!!
4  開發 / 外掛程式 / Re: secret 文章密码保护外挂的问题 於: 十一月 22, 2006, 12:25:37 下午
我也同意你的观点。
而且,当启用后,发现数据库记录不正常,就是,凡是没有密码的文章,也在数据表 : plog_custom_fields_values 中占用一条记录,这样应该是不太合理的。
5  開發 / 核心補強精華區 / Re: 請問如何在 summary.php實做最新迴響? 於: 十一月 20, 2006, 08:18:34 下午
大哥帮帮忙啊!
6  開發 / 核心補強精華區 / Re: 請問如何在 summary.php實做最新迴響? 於: 十一月 18, 2006, 11:25:42 上午
真是好大哥,非常感谢!!
7  開發 / 核心補強精華區 / Re: 請問如何在 summary.php實做最新迴響? 於: 十一月 17, 2006, 07:40:31 下午
for 1.1的版本:

class/summary/dao/summarystats.class.php裡的
function getRecentComments( $maxComments = 20) 裡面的所有程式碼換成
換成
引用
include_once( PLOG_CLASS_PATH.'class/dao/articlecomments.class.php' );
            include_once( PLOG_CLASS_PATH.'class/dao/usercomment.class.php' );   
            include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
             $articleComments = new ArticleComments();
              $articles = new Articles();
               $prefix = $this->getPrefix();
               $query = "SELECT * FROM {$prefix}articles_comments WHERE status = 0 ORDER BY date DESC LIMIT 0,".$maxComments;
                $result = $this->Execute($query);
               if(!$result)
                 return false;
               $recentComments = Array();
               while( $row = $result->FetchRow()){
                 $comment = $articleComments->getComment($row['id']);
                  $comment->setArticle($articles->getArticle[$row['article_id']]);
                  array_push($recentComments,$comment);
              }
              $result->Close();
              return $recentComments;



這次簡潔多了阿!!! 1.1真不賴 :D
帮帮我啊!我照这个做了(我现在的版本是1.1.2),并在summarydefaultaction.class.php中加入了:$this->_view->setValue("recentComments",$recentComments);
另外几句,照你原来的,找不到了。现在这样子,在index.template中却不能显示出最新评论,麻烦看看是怎么回事?哪位大哥帮帮我?
谢谢了。
8  支援 / 安裝與設定 / 求助:如何在summary首页中显示统计? 於: 十一月 10, 2006, 09:20:55 下午
求助:如何在summary首页中显示统计?
谢了先!
各位大侠,小弟想在summary首页中,显示如下信息:
本站共有博客:234个,共有用户236个,共有文章2345篇,共有评论5432篇。
请教该如何修改呢?
谢谢!!
9  開發 / 外掛程式 / Re: LT1.1中如何修改topreadposts 插件 於: 十一月 09, 2006, 08:29:12 上午
不好意思了,这可能是大陆这边习惯性语言,造成了误解。
“不会”,我并不是说MARK不会(unable),我本意是说可能没来看。
都是我的错。SORRY。
10  開發 / 外掛程式 / Re: LT1.1中如何修改topreadposts 插件 於: 十一月 08, 2006, 06:22:43 下午
啊?这么可爱的语气竟然会造成误解?汉字确实太难理解了。
SORRY。
11  支援 / 安裝與設定 / Re: [Help] LifeType 升級後降級問題:部份中文字變問號 於: 十一月 08, 2006, 06:03:29 下午
这是因为博客设置的字符集不对了,比如都有UTF-8,那应该就行了。
12  開發 / 外掛程式 / Re: LT1.1中如何修改topreadposts 插件 於: 十一月 04, 2006, 09:26:56 下午
MARK大哥不会看看哟?
13  開發 / 模版設計 / Re: 在模板中加入網誌統計發生問題 於: 十一月 04, 2006, 09:19:16 下午
是的!基本上這個 function 在 1.1 之後就 phase out 了。以後也不會再加上去了。如果需要,其實可以自己implement 啦!

Mark

这个功能其实不错的,为何要取消?如何加得?请教。
14  支援 / 使用與操作 / Re: 求助:tinymce在點選insert resourse內的圖片卻無法將圖片放入文章中 於: 十一月 02, 2006, 08:54:16 下午
我开始也碰到过的,但后来不知怎样却又行了。
先是不行的时候,我只能将图片拖进文字输入区,后来好的时候,倒是可以点选了。
15  開發 / 外掛程式 / Re: LT1.1中如何修改topreadposts 插件 於: 十一月 02, 2006, 12:22:52 下午
我也碰到这个问题,看了原来的程式,把原来的语句复制过来,却没有用,
于blog.class.php:
程式碼:
			/**新增加统计阅读数的
         * Retrieves the total number of reads of all articles in that blog
         *
         * @param blogId The identifier of the blog from which we'd like to fetch the settings
         * @return Returns an Timestamp with the last article date
         */
        function getBlogViewedTotal( $blogId )
        {
            $query  = "SELECT SUM(num_reads) as total FROM ".$this->getPrefix()."articles WHERE blog_id = ".$blogId;

            $result = $this->_db->Execute( $query );

            if (!$result)
                return false;

            $row = $result->FetchRow();

            if (!isset($row["total"]))
                return false;

            return $row["total"];
頁: [1] 2