TT: 讓RSS聯播顯示站名

摘錄自 http://yaue.net/blog/index.php?pl=181
貼在這是純粹個人紀錄.

在 RSS Paper 那裡顯示站名會比作者名稱更為合宜. 所以yaue做了以下的修改….

修改方法..

1. 打開 inc_function.php ,找到約 1100行

修改前:
if ((time() – 86400) > $b_regdate) break;
put_query(“update t3_”.$dbid.”_rss_item set title = ‘”.$row[title].”‘, description = ‘”.$row[description].”‘, subject = ‘”.$row[subject].”‘, creator = ‘”.$row[creator].”‘ where no = ‘$b_no’”);

修改後:
if ((time() – 86400) > $b_regdate) break;
put_query(“update t3_”.$dbid.”_rss_item set title = ‘”.$row[title].”‘, description = ‘”.$row[description].”‘, subject = ‘”.$row[subject].”‘, creator = ‘$stitle’ where no = ‘$b_no’”);

2. 同一個檔案,找到約 1112行

修改前:
put_query(“insert into t3_”.$dbid.”_rss_item (rno, title, link, description, subject, creator, date, regdate) values ($num, ‘”.$row[title].”‘, ‘”.$row[link].”‘, ‘”.$row[description].”‘, ‘”.$row[subject].”‘, ‘”.$row[creator].”‘, ‘”.$row[date].”‘, ‘$rowdate’)”);

修改後:
put_query(“insert into t3_”.$dbid.”_rss_item (rno, title, link, description, subject, creator, date, regdate) values ($num, ‘”.$row[title].”‘, ‘”.$row[link].”‘, ‘”.$row[description].”‘, ‘”.$row[subject].”‘, ‘$stitle’, ‘”.$row[date].”‘, ‘$rowdate’)”);

_M#]

  1. No comments yet.

  1. No trackbacks yet.