[Scummvm-cvs-logs] SF.net SVN: scummvm: [24982] web/trunk

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Wed Jan 3 22:35:21 CET 2007


Revision: 24982
          http://scummvm.svn.sourceforge.net/scummvm/?rev=24982&view=rev
Author:   fingolfin
Date:     2007-01-03 13:35:18 -0800 (Wed, 03 Jan 2007)

Log Message:
-----------
Some tweaks to our news feeds:
* Removed the 'Posted by' text from the <author> field
* Drop fake email adress in the ATOM feeds (the same is not possible for the RSS feeds, though)
* Only add an author field if an author was specified in the first place
* Drop the CDATA encoding for the <title> field

Modified Paths:
--------------
    web/trunk/feed-atom.php
    web/trunk/feed-rss20.php
    web/trunk/include/news.php
    web/trunk/index.php

Modified: web/trunk/feed-atom.php
===================================================================
--- web/trunk/feed-atom.php	2007-01-03 21:32:16 UTC (rev 24981)
+++ web/trunk/feed-atom.php	2007-01-03 21:35:18 UTC (rev 24982)
@@ -39,10 +39,11 @@
   echo "\t\t<link rel=\"alternate\" href=\"".$news_url."\" />";
   echo "\t\t<updated>".$news_date."</updated>\n";
   echo "\t\t<published>".$news_date."</published>\n";
-  echo "\t\t<title type=\"html\"><![CDATA[".$item["title"]."]]></title>\n";
+  echo "\t\t<title type=\"html\">".$item["title"]."</title>\n";
 
   echo "\t\t<content type=\"html\" xml:base=\"".$news_url."\"><![CDATA[\n\t\t".$item["body"]."\n\t\t]]></content>\n";
-  echo "\t\t<author>\n\t\t\t<name>".$item["author"]."</name>\n\t\t\t<email>nospam at scummvm.org</email>\n\t\t</author>\n";
+  if ($item["author"] != "")
+    echo "\t\t<author>\n\t\t\t<name>".$item["author"]."</name>\n\t\t</author>\n";
   echo "\t</entry>\n";
 } // end of news loop
 ?>

Modified: web/trunk/feed-rss20.php
===================================================================
--- web/trunk/feed-rss20.php	2007-01-03 21:32:16 UTC (rev 24981)
+++ web/trunk/feed-rss20.php	2007-01-03 21:35:18 UTC (rev 24982)
@@ -24,10 +24,11 @@
 while (list($key,$item) = each($news)) {
   $news_url = "http://www.scummvm.org/?shownews=archive#".date("Y-m-d",$item["date"]);
   echo "\t\t<item>\n";
-  echo "\t\t\t<title><![CDATA[".$item["title"]."]]></title>\n";
+  echo "\t\t\t<title>".$item["title"]."</title>\n";
   echo "\t\t\t<description><![CDATA[\n".$item["body"]."\n\t\t\t]]></description>\n";
   echo "\t\t\t<pubDate>".date("r",$item["date"])."</pubDate>\n";
-  echo "\t\t\t<author>nospam at scummvm.org (".$item["author"].")</author>\n";
+  if ($item["author"] != "")
+    echo "\t\t\t<author>nospam at scummvm.org (".$item["author"].")</author>\n";
   echo "\t\t\t<guid isPermaLink=\"true\">".$news_url."</guid>\n";
   echo "\t\t\t<link>".$news_url."</link>\n";
   echo "\t\t</item>\n";

Modified: web/trunk/include/news.php
===================================================================
--- web/trunk/include/news.php	2007-01-03 21:32:16 UTC (rev 24981)
+++ web/trunk/include/news.php	2007-01-03 21:35:18 UTC (rev 24982)
@@ -38,7 +38,7 @@
 
 	$news[$c]["author"] = "";
 	if (eregi("<AUTHOR>(.*)</AUTHOR>", $data, $out)) {
-	  $news[$c]["author"] = "Posted by ".$out[1];
+	  $news[$c]["author"] = $out[1];
 	}
 
 	$news[$c]["title"] = "";

Modified: web/trunk/index.php
===================================================================
--- web/trunk/index.php	2007-01-03 21:32:16 UTC (rev 24981)
+++ web/trunk/index.php	2007-01-03 21:35:18 UTC (rev 24982)
@@ -191,7 +191,7 @@
 </p>
 <p>
 Our forum and IRC channel, <a href="irc://irc.freenode.net/scummvm">#scummvm on
-irc.freenode.net</a>, are open for comments and suggestions. Please read our <a href="faq.php">FAQ</a>
+irc.freenode.net</a>, are open for comments and suggestions. Please read our <a href="http://www.scummvm.org/faq.php">FAQ</a>
 before posting.
 </p>
 <p><B>Fundraiser Progress:</B></p><center><img src="http://wiki.scummvm.org/donations/progress.png" border=0 alt="Progress Bar"></center> 
@@ -228,7 +228,7 @@
            $item["title"].
 	 '</div>'.
          '<div class="par-content">'.
-		 	 '<div class="news-author">'.$item["author"]."</div> ".
+		 	 '<div class="news-author">Posted by '.$item["author"]."</div> ".
   		$item["img"].
 		$item["body"].
 	 '</div>'.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list