歡迎光臨, 訪客. 請先 登入註冊一個帳號.
三月 29, 2024, 10:38:10 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  開發 / 核心補強 / Re: 请教在summary模板中添加单独的博客排名页面... 於: 七月 14, 2006, 06:24:17 上午
hi mark
不知道為身麼我的服務器不允許我自己手動刪除...... ~~~

只是那個/tmp 而已... 我使用linux - directadmin 的.

hi lss,
謝謝你給的tips!不過要如何修改的更好我不是很會~
我只是迷迷糊糊的嘗試而已... 微笑 希望你可以提供更多的tips

謝謝
jikey
2  開發 / 核心補強 / Re: 请教在summary模板中添加单独的博客排名页面... 於: 七月 13, 2006, 12:02:56 上午
可是上傳了服務器就會面對cache的問題.....o...

不知道如何刪除掉/tmp 里的files?
3  支援 / 使用與操作 / Re: 新的頁面問題 於: 七月 12, 2006, 10:15:06 下午
解決了!
http://forum.lifetype.org.tw/index.php?topic=2051.0
4  開發 / 核心補強 / Re: 请教在summary模板中添加单独的博客排名页面... 於: 七月 12, 2006, 10:13:47 下午
我做到....!
打開 /class/summary/action/summarycustompageaction.class.php

in /class/summary/action/summarycustompageaction.class.php

find
程式碼:
include_once( PLOG_CLASS_PATH."class/summary/data/validator/customsummarypagevalidator.class.php" );

after paste
 
程式碼:
  include_once( PLOG_CLASS_PATH."class/summary/action/summaryaction.class.php" );
    include_once( PLOG_CLASS_PATH."class/summary/dao/summarystats.class.php" );
    include_once( PLOG_CLASS_PATH."class/data/timestamp.class.php" );
    include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
    include_once( PLOG_CLASS_PATH."class/logger/LogUtil.php" );
find
程式碼:
$this->_view = new SummaryCachedView( $this->_page, Array( "page" => $this->_page, "locale" => $this->_locale->getLocaleCode()));
 

after paste

程式碼:
if( $this->_view->isCached()) {
// if the view is already cached... move along! nothing to see here
return true;
}
            $blogs       = new Blogs();
            $stats       = new SummaryStats();

            // load the posts, filtering out all those registration messages...
$registerTopic = $this->_locale->tr( "register_default_article_topic" );
$registerText = $this->_locale->tr( "register_default_article_text" );
            $recentPosts = $stats->getRecentArticles( $this->_numPosts, $registerTopic, $registerText );
            // get all the blogs
            $siteBlogs   = $blogs->getAllBlogs( true );
            $recentBlogs = $stats->getRecentBlogs( $this->_numPosts );

            $activeBlogs    = $stats->getMostActiveBlogs( $this->_numPosts);
            $commentedPosts = $stats->getMostCommentedArticles( $this->_numPosts, $registerTopic, $registerText );
            $readestBlogs   = $stats->getMostReadArticles( $this->_numPosts, $registerTopic, $registerText );


// export all these things to the view
$this->_view->setValue( "posts", $recentPosts );
$this->_view->setValue( "recentBlogs", $recentBlogs );
$this->_view->setValue( "activeBlogs", $activeBlogs );
$this->_view->setValue( "commentedPosts", $commentedPosts );
$this->_view->setValue( "readestBlogs", $readestBlogs );
$this->_view->setValue( "blogs", $siteBlogs );


//
// :KLUDGE:
// we just need a random blog so... we'll get one :)
//
$randomBlog = array_pop($siteBlogs);
$url = $randomBlog->getBlogRequestGenerator();
$this->_view->setValue( "url", $url );
5  支援 / 使用與操作 / 新的頁面問題 於: 七月 12, 2006, 02:54:57 下午
我自己增加了新的頁面不過於到了問題..就如如果由 http://www.mypetslog.com/summary.php 看的話.
"Newest Blogs ","'Most Active Blogs","Most Read articles " 就可以顯示資料.

不過呢...我在自己增加新的頁面"Newest Blogs ","'Most Active Blogs","Most Read articles " 的資料就不會顯示出來..
http://www.mypetslog.com/?op=display&page=about

請問有那位高手可以幫我解難.

謝謝!
6  開發 / 外掛程式 / 如何在templateeditor不讓user打包下載template? 於: 五月 25, 2006, 12:06:14 下午
如何在templateeditor不讓user打包下載template?
或者不顯示不可以edit 的 file?

其實我是想給user edit css file 而已......
頁: [1]