From 7c395b8c166f1411b5478d41c8e29f70916892d6 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Mon, 29 Jun 2009 06:30:05 +0000 Subject: [PATCH] Added W3C recommendations for a more compatible feed. (May also be more compatible with twitterfeed) --- e107_plugins/rss_menu/rss.php | 39 +++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/e107_plugins/rss_menu/rss.php b/e107_plugins/rss_menu/rss.php index 893e74c6a..c8959becb 100644 --- a/e107_plugins/rss_menu/rss.php +++ b/e107_plugins/rss_menu/rss.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/rss_menu/rss.php,v $ -| $Revision: 1.11 $ -| $Date: 2009-05-04 09:24:36 $ -| $Author: e107steved $ +| $Revision: 1.12 $ +| $Date: 2009-06-29 06:30:05 $ +| $Author: e107coders $ +----------------------------------------------------------------------------+ */ @@ -460,32 +460,38 @@ class rssCreate { echo "".CORE_LC.(defined("CORE_LC2") ? "-".CORE_LC2 : "")." ".preg_replace("#\
|\n|\r#si", "", SITEDISCLAIMER)."
- ".$pref['siteadmin']." - ".$this->nospam($pref['siteadminemail'])." - ".$this->nospam($pref['siteadminemail'])." + ".$this->nospam($pref['siteadminemail'])." (".$pref['siteadmin'].") + ".$this->nospam($pref['siteadminemail'])." (".$pref['siteadmin'].") ".date("r",($time + $this -> offset))." ".date("r",($time + $this -> offset))." http://backend.userland.com/rss e107 (http://e107.org) 60"; + if (trim(SITEBUTTON)) { - echo " - - ".$tp->toRss($rss_title)." - ".(strstr(SITEBUTTON, "http:") ? SITEBUTTON : SITEURL.str_replace("../", "", e_IMAGE).SITEBUTTON)." - ".$pref['siteurl']." - 88 - 31 - ".$tp->toRss($pref['sitedescription'])." - "; + echo " + + ".$tp->toRss($rss_title)." + ".(strstr(SITEBUTTON, "http:") ? SITEBUTTON : SITEURL.str_replace("../", "", e_IMAGE).SITEBUTTON)." + ".$pref['siteurl']." + 88 + 31 + ".$tp->toRss($pref['sitedescription'])." + "; } - echo " + + // Generally Ignored by 99% of readers. + /* + echo " Search Search ".$tp->toRss($pref['sitename'])." query ".SITEURL.(substr(SITEURL, -1) == "/" ? "" : "/")."search.php "; + */ + foreach($this -> rssItems as $value) { // Multi-language rss links. @@ -512,7 +518,7 @@ class rssCreate { } if($value['author']){ - echo "".$value['author']."<".$this->nospam($value['author_email']).">\n"; + echo "".$this->nospam($value['author_email'])." (".$value['author'].")\n"; } // enclosure support for podcasting etc. @@ -528,6 +534,7 @@ class rssCreate { echo ""; } + // echo " contentType).".4.".$this -> topicId ."\" rel=\"self\" type=\"application/rss+xml\" />"; echo " ";