歡迎光臨, 訪客. 請先 登入註冊一個帳號.
三月 29, 2024, 12:44:15 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  支援 / 使用與操作 / 【詢問】如何在summary 首頁中,秀出網誌作家的列表!! 於: 六月 27, 2007, 02:14:39 下午
站上的學長(姊)們~~
小弟想要在summary的頁面中,直接秀出網誌作家的列表!!
想請問一下站上的學長(姊)們是否有做過這樣子的summary 首頁編排!!

我直接將 template中的UserList檔案裡面的碼貼過去,但是會出錯!!
2  開發 / 外掛程式 / 【求助】如何在summary 列出 10筆最新回覆文章?! 於: 四月 13, 2007, 01:11:27 下午
站上的先進們您們好~~~

小弟想在 summary 摘要頁,新增一個區塊 ,列出10筆最新回覆的文章!!

小弟是使用 lifetype 1.1.1 ,在作家後台,登進去的管理面版中,它會顯示五筆最新發表的迴響!

每個作家都有,但小弟要的效果是在summary 摘要頁中顯示十筆,包括全部的作家!!!

不曉得站上的先進們是否有做過這樣子的效果?!或是可否告訴小弟一個修改的方向!!!

感激不盡丫~~~

3  支援 / 使用與操作 / 【求助】如何修改讓summary 首頁,只出現特定作者的文章!! 於: 二月 27, 2007, 01:06:47 下午
求助~~如標題所示!!!

小弟想請問該如何讓summary 首頁,新增一個區塊,然後只出現特定作者的文章!!



4  測試 / LifeType 1.1 測試 / Re: 【疑問】lifetype 1.1.1 如何取消md5 編密碼跟修改密碼? 於: 十二月 14, 2006, 09:13:32 下午
MM~~謝謝 lss 大`~~

小弟已經將md5 的編碼取消掉了`~~

要改的地方還蠻多的!!!

晚點再整理出來~~
5  測試 / LifeType 1.1 測試 / 【疑問】lifetype 1.1.1 如何取消md5 編密碼跟修改密碼? 於: 十二月 13, 2006, 09:37:29 下午
如題:
小弟想問站上的先進們,該如何在使用者新增及使用者修改密碼、以及使用者在登入時,密碼不經過 md5 的過程,而直接存取、寫入資料庫?!

謝謝各位!!!
6  支援 / 使用與操作 / Re: [求助]如何summary頁面顯示的文章數量? 於: 十二月 13, 2006, 10:31:33 上午
Dear mark ~~
小弟試了貴站所提供的方法,並無法顯示出15篇文章
而且,在/class/summary/dao/summarystats.class.php中的語法,function 宣告的地方也不一樣!!
小弟不曉得該從何處修改!!

以下為小弟的程式碼:

        function getRecentArticles( $maxPosts, $ignoreTopic = "", $ignoreText = "" )
   
        {
            include_once( PLOG_CLASS_PATH . "class/data/timestamp.class.php" );
            include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );

            $t      = new Timestamp();
            $date   = $t->getTimestamp();
         $prefix = $this->getPrefix();

         $query = "SELECT a.id as id, a.id,a.date,
                             a.user_id,a.blog_id, a.status, a.properties,
                             a.num_reads, a.slug
                 FROM {$prefix}articles a,
                      {$prefix}blogs b
                 WHERE a.date >= ".$this->_sevenDaysAgo." AND a.date <= ".$this->_now."
                       AND a.blog_id = b.id
                       AND b.status = ".BLOG_STATUS_ACTIVE."
                       AND a.status = ".POST_STATUS_PUBLISHED;

         $query .= " ORDER BY a.date DESC LIMIT 0, $maxPosts";

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

            if( !$result )
                return Array();

            $blogs = Array();
            $posts = Array();
            $i     = 0;

            while( ($row = $result->FetchRow()) && ($i < $maxPosts) ) {
                if (!in_array($row["blog_id"], $blogs))
                {
                    $blogs[] = $row["blog_id"];
                    array_push( $posts, $this->articles->_fillArticleInformation($row) );
                    $i++;
                }
            }
           
            $result->Close();           

            return $posts;
        }

7  開發 / 核心補強 / Re: 【疑問】如何設定系統不使用md5編碼 於: 十二月 12, 2006, 02:02:00 下午
謝謝 bibicall 大~~~給的方向!!!

補充一下,剛少說了一個檔案  userinfo.class.php 這一個檔案!!!

function setPassword( $newPassword )
      {
         $this->_password = md5($newPassword);
      }
   
將紅色字 md5 的部份拿掉後,使用者修改密碼的話,就不會經過 md5 編碼了,而直接存到資料庫!!!



8  開發 / 核心補強 / Re: 【疑問】如何設定系統不使用md5編碼 於: 十二月 12, 2006, 01:23:44 下午
Dear lss~~
在1.06 版的 class/dao/  中並沒有userdata 這個程式!!
不過有  users.class.php  這一隻!!!

經小弟測試,只需把 md5 相關的字眼去除就行了!!

修改完後,需到資料庫,把「lt_users」這個資料表的「password」欄位中,已經md5編碼過的密碼改掉!!!

不然已註冊的使用者會登不進後台哦!!!

另外,問一下lss 大!!!

該怎麼將summary 首頁中,最新發表文章區塊,把它顯示的時間拉…長!!!

變成一個星期或者更長的時間?! 該修改那邊呢?!

9  開發 / 核心補強 / 【疑問】如何設定系統不使用md5編碼 於: 十二月 12, 2006, 09:26:23 上午
各位站上的大大,小弟想請問該如何設定系統,讓它在新增、修改、及登入時的驗證不經過md5 的編碼!

而直接儲存的是使用者所 keyin 的密碥?

小弟的版本是1.06版的!!!

謝謝大家!!
10  開發 / 模版設計 / Re: 【疑問】關於預設模版 grey 中,上、下篇顯示的方式!! 於: 十二月 05, 2006, 09:33:12 上午
很大一條 ~"~

找到跟我同「症頭」的~~哈哈

謝謝阿駕大~~~問題解決囉!!!! 眨眼睛
11  開發 / 模版設計 / Re: 【疑問】關於預設模版 grey 中,上、下篇顯示的方式!! 於: 十二月 04, 2006, 05:22:23 下午
阿駕大~~~
我有找模版去改~~可是~~我找不到~~ 嚎啕大哭

看post.template沒找到~~找其他的模版,也沒發現~~= ="

有人能告訴我是修改那一個檔案嗎?!
12  開發 / 模版設計 / 【疑問】關於預設模版 grey 中,上、下篇顯示的方式!! 於: 十二月 04, 2006, 03:12:11 下午
請問一下站上的大哥大姊們!!
小弟想請問一下,如下圖所示!!



此部份的 << | >>   這裡,該如何改成 上一篇  |  下一篇

爬文找了好久~~
13  開發 / 模版設計 / Re: 【疑問】後台使用者設定中的自我介紹,可否套用 htmlarea 或tinymce?? 於: 十二月 01, 2006, 08:54:53 上午
 傷心

to 阿駕~~小弟試了lss 大,在迴響加入tinymce 的方法,可是沒成功~~~

不曉得是那裡有問題~~~
我把commentform.template 跟tiny_mce-commentform.js 的程式碼po 出來 ,可以幫我看一下那邊沒設定好嗎?

----------commentform.template 的內容----------------\\

<script language="javascript" type="text/javascript" xsrc="{$url->getBaseUrl()}/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
  <form action="{$url->getIndexUrl()}" method="post" id="NewComment" name="NewComment">
  <p>
   {$locale->pr("comment_topic")}<br/><input type="text" name="commentTopic" value=""/><br/>
   {$locale->pr("comment_text")} <br/><textarea rows="10" cols="37" name="commentText"></textarea><br/>
   {$locale->pr("comment_username")}<br/> <input type="text" name="userName" value=""/><br/>
   {$locale->pr("comment_email")}<br/> <input type="text" name="userEmail" value=""/><br/>
   {$locale->pr("comment_url")}<br/> <input type="text" name="userUrl" value=""/><br/>
   <input type="submit" value="{$locale->pr("comment_send")}" name="Add"/><br/><br/>
   <input type="hidden" name="op" value="AddComment"/>
   <input type="hidden" name="articleId" value="{$post->getId()}"/>
   <input type="hidden" name="blogId" value="{$blog->getId()}"/>
   <input type="hidden" name="parentId" value="{$parentId}"/>
  </p>
  </form>



--------------tiny_mce-comentform.js   的內容-----------\\

<script language="javascript" type="text/javascript" xsrc="{$url->getTemplateFile("tiny_mce-commentform.js")}"></script>

tinyMCE.init({
mode : "textareas",
relative_urls : false,       
plugins : " emotions",   
theme_advanced_buttons1 : ""       
    +"bold,italic,underline,strikethrough,outdent,indent,link,unlink,emotions",
theme_advanced_buttons2 : "",       
theme_advanced_buttons3 : "",         
theme_advanced_toolbar_location : "top",     
theme_advanced_toolbar_align : "left",         
force_p_newlines : false                     
})



14  開發 / 模版設計 / 【疑問】後台使用者設定中的自我介紹,可否套用 htmlarea 或tinymce?? 於: 十一月 29, 2006, 05:22:00 下午
如題,小弟想問站上的各位先進們,在後台使用者設定中,使用者自我介紹的區塊中,可以套用htmlarea 或tinymce嗎?是否站上的大大們有這類的修改經驗可供小弟參考一下!!!
頁: [1]