From d994127b4ef5bb441fa7a603a34a4a9a4230b0a3 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Sun, 16 Jan 2011 23:19:50 +0000 Subject: [PATCH] More RSS cleanup --- e107_plugins/rss_menu/rss.php | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/e107_plugins/rss_menu/rss.php b/e107_plugins/rss_menu/rss.php index 9af721b11..095318fcd 100644 --- a/e107_plugins/rss_menu/rss.php +++ b/e107_plugins/rss_menu/rss.php @@ -222,11 +222,13 @@ class rssCreate } else { - $this -> rssItems[$loop]['description'] = $value['news_body']; + $this -> rssItems[$loop]['description'] = ($value['news_body']."
".$value['news_extended']); } $this -> rssItems[$loop]['author'] = $value['user_name']; $this -> rssItems[$loop]['author_email'] = $value['user_email']; - $this -> rssItems[$loop]['category'] = "".$value['category_name'].""; + // $this -> rssItems[$loop]['category'] = "".$value['category_name'].""; + $this -> rssItems[$loop]['category_name'] = $tp->toHTML($value['category_name'],TRUE,'defs'); + $this -> rssItems[$loop]['category_link'] = $e107->base_path."news.php?cat.".$value['news_category']; if($value['news_allow_comments'] && $pref['comments_disabled'] != 1) { @@ -438,7 +440,12 @@ class rssCreate echo " - + ".$this->e107->tp->toRss($rss_title)." ".$pref['siteurl']." @@ -454,7 +461,11 @@ class rssCreate ".date("r",($time + $this -> offset))." http://backend.userland.com/rss e107 (http://e107.org) - 60"; + hourly + 1 + 60\n"; + + echo "topicid."\" rel=\"self\" type=\"application/rss+xml\" />\n"; if (trim(SITEBUTTON)) { @@ -466,7 +477,7 @@ class rssCreate 88 31 ".$this->e107->tp->toRss($pref['sitedescription'])." - "; + \n"; } // Generally Ignored by 99% of readers. @@ -495,13 +506,18 @@ class rssCreate } echo "".$this->e107->tp->toRss($value['description'],TRUE); - if($pref['rss_shownewsimage'] == 1 && strlen(trim($value['news_thumbnail'])) > 0) + if($pref['rss_shownewsimage'] == 1 && strlen(trim($value['news_thumbnail'])) > 0) //FIXME - Fixed path and height? { $news_thumbnail = SITEURLBASE.e_IMAGE_ABS."newspost_images/".$this->e107->tp->toRss($value['news_thumbnail']); echo "<a href="".$link.""><img src="".$news_thumbnail."" height="50" border="0" hspace="10" vspace="10" align="right"></a>"; unset($news_thumbail); } echo "\n"; + + if($value['content_encoded']) + { + echo "".$tp->toRss($value['content_encoded'],TRUE)."\n"; + } if($value['category_name'] && $catlink) { @@ -515,7 +531,7 @@ class rssCreate if($value['author']) { - echo "".$this->nospam($value['author_email'])." (".$value['author'].")\n"; + echo "".$value['author']."\n"; // correct tag for author without email. } // Enclosure support for podcasting etc. @@ -539,7 +555,7 @@ class rssCreate } } - echo ""; + echo "\n\n"; } // echo " contentType).".4.".$this -> topicId ."\" rel=\"self\" type=\"application/rss+xml\" />"; echo "