為 Tatter Tools 加入分類 RSS

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


category_rss.zip (2.0 KB)

首先下載這個檔案 \’category_rss.zip\’ 然後上載到 Tattor Tools 的 Directory 中。

首先打開 /inc_function.php

搜尋 (大概在 1177 行)

<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>

搜尋 (大概在 1192 行)

<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

搜尋 (大概在 16 行)

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”));

搜尋 (大概在 18 行)

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”,));

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*