diff options
author | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-20 22:59:23 -0500 |
---|---|---|
committer | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-20 22:59:23 -0500 |
commit | 5569f020cee0eaacddcdb2442447fde52644c465 (patch) | |
tree | b29bcb49e0884f3369423addffb5e243144c814c | |
parent | bbb612eabf761ca4ad7dc45f4057aeef0b92506d (diff) | |
download | bayonetcms-5569f020cee0eaacddcdb2442447fde52644c465.tar.gz |
Not entirely sure what changed.
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@384 c5b2fb0a-d05d-0410-98c8-828840a80ff6
-rw-r--r-- | blocks/rss_agw/index.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/blocks/rss_agw/index.php b/blocks/rss_agw/index.php index 0c90e7c..e59414a 100644 --- a/blocks/rss_agw/index.php +++ b/blocks/rss_agw/index.php @@ -1,12 +1,11 @@ <link rel="stylesheet" type="text/css" href="blocks/rss_agw/style.css" media="screen"/> <?php -/* + function stripBBCode($text_to_search) { $pattern = '|[[\/\!]*?[^\[\]]*?]|si'; $replace = ''; return preg_replace($pattern, $replace, $text_to_search); -} */ - +} include 'rssreader.php'; $rss = new rss_php; @@ -57,9 +56,11 @@ function stripBBCode($text_to_search) { foreach($items as $story){ if($story['category']=="Tournament Announcements"){ $numFeeds++; - // $text = $story['description']; - // $text = stripBBCode($text); - // $text = preg_replace("(\[font(.+?)...)","",$text); + //$text = $story['description']; + //$text = strip_tags($text); + //$text = preg_replace("(\[font(.+?)...)","", $text); + //$text = stripBBCode($text); + echo "<a href=\"{$story['link']}\" target=\"_blank\"><span class=\"title\">{$story['title']}</span></a><br /> <span class=\"date\">{$story['pubDate']}</span><br />"; //echo "{$text}<br /><br />"; |