SimplePortal
Development => Feature Requests => Topic started by: wille on November 28, 2011, 03:25:24 PM
-
The built-in rss reader doesn't seem to hande dc:date tag (or other namespace date tags). I think it's pretty important info that should be shown.
-
Can provide a feed that we can test this on?
-
For example here: http://www.iconograms.org/rss.php
<item>
<title>Andrew the First- Called Apostle</title>
<link>http://www.iconograms.org/sig.php?eid=411</link>
<description>This Saint....</description>
<dc:creator>Iconograms.org</dc:creator>
<dc:date>2011-11-30</dc:date>
</item>
-
I wasn't aware of that tag. I'll consider that in the next version. You could do this for now:
Sources/PortalBlocks.php
preg_match_all('~<([A-Za-z]+)>(.+?)</\\1>~', $item, $match);
preg_match_all('~<([A-Za-z:]+)>(.+?)</\\1>~', $item, $match);
'date' => !empty($item['pubdate']) ? timeformat(strtotime($item['pubdate']), '%d %B') : '',
'date' => !empty($item['pubdate']) ? timeformat(strtotime($item['pubdate']), '%d %B') : (!empty($item['dc:date']) ? timeformat(strtotime($item['dc:date']), '%d %B') : ''),