:: 設為首頁 :: 加到我的最愛 ::
2008 年 05 月 10 日 (星期六) 10:36
hkwebs.net
用戶名稱 >     密碼 >    
忘記密碼   會員注冊
 
公 司 列 表
網 頁 寄 存
主 機 租 用
主 機 托 管
電 郵 服 務
域 名 服 務
服 務 搜 尋
服 務 排 名
名 詞 解 釋
免 費 資 源
網 頁 教 學
下 載 區
討 論 區
Google
  Thunderbird
Mozilla
GameServer.hk 香港遊戲討論區。
電子咖啡室
香港傳遞訊息
LOVELAND
 
加入

hkwebs 網頁教學 Tatter Tools 分類 RSS 教學

 
主題: Tatter Tools 分類 RSS 教學
工具: Tatter Tools 、文字編輯工具

內容:

由於 Tatter Tools 本身沒有分類的 RSS,令讀者不能有效地閱讀所需的資料。為了這個問題,本人加設了這一細小的 plug-in 方便大家。
 

編碼:

修改檔案:

/inc_function.php
  搜尋
  <td class=branch3 onclick="<?=$row[link]?>"><?=str_cut($row[label],$limit,1)?> <? if ($p_show_tree_cnt) print "<span class=c_cnt>($row[cnt])</span>";?></td>
  改為
  <td class=branch3 onclick="<?=$row[link]?>"><?=str_cut($row[label],$limit,1)?> <? if ($p_show_tree_cnt) print "<span class=c_cnt>($row[cnt])</span>";?><a href='<?=$row[rsslink]?>'>RSS</a></td>
  搜尋
  <td class=branch3><?=str_cut($irow[label], $limit, 1)?> <? if ($p_show_tree_cnt) print "<span class=c_cnt>($irow[cnt])</span>";?></td>
  改為
  <td class=branch3><?=str_cut($irow[label], $limit, 1)?> <? if ($p_show_tree_cnt) print "<span class=c_cnt>($irow[cnt])</span>";?><a href='<?=$irow[rsslink]?>'>RSS</a></td>

/inc_presswork.php
  搜尋
  array_push($m_array, array("num"=>$no, "label"=>$label, "link"=>"location.href='index.php?ct1=$pno&ct2=$no';", "cnt"=>$cnt));
  改為
  array_push($m_array, array("num"=>$no, "label"=>$label, "link"=>"location.href='index.php?ct1=$pno&ct2=$no';", "cnt"=>$cnt, "rsslink"=>"rss.php?ct1=$pno&ct2=$no"));
  搜尋
  array_push($g_array , array("num"=>$pno, "label"=>$plabel, "link"=>"location.href='index.php?ct1=$pno';", "cnt"=>$pcnt, "items"=>$m_array));
  改為
  array_push($g_array , array("num"=>$pno, "label"=>$plabel, "link"=>"location.href='index.php?ct1=$pno';", "cnt"=>$pcnt, "items"=>$m_array, "rsslink"=>"rss.php?ct1=$pno",));



步驟:

  1. 上載 Tatter Tools 分類 RSS 檔案。
  2. 修改程式碼。

下載:

Tatter Tools 分類 RSS 檔案
 


注意:

  • 沒有

如有對以上教學有任何疑問,請到討論區發問。

 
Copyright © 2003-2004
hkwebs.net All Right Reserved.