{"id":2811,"date":"2008-04-04T16:06:09","date_gmt":"2008-04-04T16:06:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/cnn-news\/"},"modified":"2011-01-10T23:04:17","modified_gmt":"2011-01-10T23:04:17","slug":"cnn-news","status":"closed","type":"plugin","link":"https:\/\/id.wordpress.org\/plugins\/cnn-news\/","author":415206,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.6","stable_tag":"trunk","tested":"3.1.4","requires":"2.3.3","requires_php":"","requires_plugins":"","header_name":"CNN News","header_author":"Olav Kolbu","header_description":"","assets_banners_color":"","last_updated":"2011-01-10 23:04:17","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.kolbu.com\/donations\/","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/cnn-news\/","header_author_uri":"http:\/\/www.kolbu.com\/","rating":3,"author_block_rating":0,"active_installs":20,"downloads":17271,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"2.6":"<p>Updated feeds list, now over 100 CNN feeds!<\/p>"},"ratings":{"1":0,"2":0,"3":"1","4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.2","2.3","2.4"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539011","resolution":"2","location":"plugin","width":499,"height":302},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1539011","resolution":"3","location":"plugin","width":498,"height":159},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539011","resolution":"1","location":"plugin","width":750,"height":308}},"screenshots":{"1":"Widget in action under the Prosumer theme. Note the mouseover showing additional text from the news item.","2":"Small part of the admin Manage page for the plugin.","3":"Inline example under the Prosumer theme, replacing <code>&lt;!--cnn-news--&gt;<\/code> in content."}},"plugin_section":[],"plugin_tags":[18541,18542,1248,162],"plugin_category":[43],"plugin_contributors":[81156],"plugin_business_model":[],"class_list":["post-2811","plugin","type-plugin","status-closed","hentry","plugin_tags-cnn","plugin_tags-cnn-news","plugin_tags-news","plugin_tags-widget","plugin_category-customization","plugin_contributors-olav-kolbu","plugin_committers-olav-kolbu"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/cnn-news.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/cnn-news\/trunk\/screenshot-1.png?rev=1539011","caption":"Widget in action under the Prosumer theme. Note the mouseover showing additional text from the news item."},{"src":"https:\/\/ps.w.org\/cnn-news\/trunk\/screenshot-2.png?rev=1539011","caption":"Small part of the admin Manage page for the plugin."},{"src":"https:\/\/ps.w.org\/cnn-news\/trunk\/screenshot-3.png?rev=1539011","caption":"Inline example under the Prosumer theme, replacing <code>&lt;!--cnn-news--&gt;<\/code> in content."}],"raw_content":"<!--section=description-->\n<p>CNN has a number of RSS feeds with current news available, on a \nnumber of topics. This widget allows the WP admin to select which\nfeed, how many items to show from that feed and optionally set a \nwidget title. If no title is selected, the name of the feed is \nused. The feed is fetched for every view, so users are guaranteed\nup to date information. No local storage of feed is done.\nClicking on a news item will of course take you straight to the\nrelevant article at CNN, as per CNN Terms of Use.<\/p>\n\n<p>This plugin works both as a widget, as inline content\nreplacement and can be called from themes. Any number of \ninline replacements or theme calls allowed, but only one \nwidget instance is supported in this release.<\/p>\n\n<p>For widget use, simply use the widget as any other after\nselecting which feed it should display. For inline content\nreplacement, insert the one or more of the following strings in \nyour content and they will be replaced by the relevant news feed.\nFor theme use, add the do_action function call described below.<\/p>\n\n<ol>\n<li><strong><code>&lt;!--cnn-news--&gt;<\/code><\/strong> for the default feed<\/li>\n<li><strong><code>&lt;!--cnn-news#feedname--&gt;<\/code><\/strong><\/li>\n<\/ol>\n\n<p>Shortcodes can be used if you have WordPress 2.5 or above,\nin which case these replacement methods are also available.<\/p>\n\n<ol>\n<li><strong><code>[cnn-news]<\/code><\/strong> for the default feed<\/li>\n<li><strong><code>[cnn-news name=\"feedname\"]<\/code><\/strong><\/li>\n<\/ol>\n\n<p>Calling the plugin from a theme is done with the WP do_action()\nsystem. This will degrade gracefully and not produce errors\nor output if plugin is disabled or removed.<\/p>\n\n<ol>\n<li><strong><code>&lt;?php do_action('cnn_news'); ?&gt;<\/code><\/strong> for the default feed<\/li>\n<li><strong><code>&lt;?php do_action('cnn_news', 'feedname'); ?&gt;<\/code><\/strong><\/li>\n<\/ol>\n\n<p>Enable plugin, go to the CNN News page under \nDashboard-&gt;Settings and read the initial information. Then \ngo to the CNN News page under Dashboard-&gt;Manage and \nconfigure one or more feeds. Then use a widget or insert\nrelevant strings in your content or theme.<\/p>\n\n<p>Additional information:<\/p>\n\n<p>The available options are as follows.<\/p>\n\n<p><strong>Name:<\/strong> Optional feed name, that can be used in the \nwidget or the inline replacement string to reference\na specific feed. Any feed without a name is considered\n\"default\" and will be used if the replacement strings do\nnot reference a specific feed. If there are more than\none feed with the same name, a random of these is picked\nevery time it is used. This also applies to the default\nfeed(s).<\/p>\n\n<p><strong>Title:<\/strong> Optional, which when set will be used in the\nwidget title or as a header above the news items when \ninline. If the title is empty, then a default title\nof \"CNN News : &lt;region&gt; : &lt;feed type&gt;\" is used. Note\nthat as per CNN Terms of Service it is a requirement\nto state that the news come from CNN.<\/p>\n\n<p><strong>Feed:<\/strong> A dropdown list of the current feeds provided\nby CNN. This list is hard coded into the plugin, presumably\nCNN does not change the list too often. The [INTL], [MONEY]\nand [SI] after the feed name indicate that the feed is from \nCNN International, CNN Money or Sports Illustrated respectively.<\/p>\n\n<p><strong>News item length:<\/strong> Short or long. The short version is really just \nthe news item title as a one liner but probably the one most \nWP admins will use. The long version is the title followed by\na 3-4 line teaser. For the short version, the long text is \navailable as a mouse rollover\/tooltip.<\/p>\n\n<p><strong>Max items to show:<\/strong> As the title says, if the feed has\nsufficient entries to fulfil the request.<\/p>\n\n<p><strong>Cache time:<\/strong> The feeds are now fetched using WordPress \nbuiltin MagpieRSS system, which allows for caching of feeds\na specific number of seconds. Cached feeds are stored in\nthe backend database.<\/p>\n\n<p>Clicking on a news item will of course take you to the \nrelevant article at CNN, as per CNN Terms of Use.<\/p>\n\n<p>If you want to change the look&amp;feel, the inline table is \nwrapped in a div with the id \"cnn-news-inline\" and the\nwidget is wrapped in an li with id \"cnn-news\". Let me \nknow if you need more to properly skin it.<\/p>\n\n<p>Note that if you get the message \"CNN News unavailable\" then\nthe WordPress internal RSS feed fetcher failed to get the\nfeed. Reasons for this are firewalls blocking outbound traffic,\nCNN RSS being down or feed missing\/wrong URL. Try again with\na different feed to see if that helps.<\/p>\n\n<p><strong><a href=\"http:\/\/downloads.wordpress.org\/plugin\/cnn-news.zip\">Download now!<\/a><\/strong><\/p>\n\n<p><a href=\"http:\/\/www.kolbu.com\/2008\/04\/03\/cnn-news-plugin\/\">Support<\/a><\/p>\n\n<p><a href=\"http:\/\/www.kolbu.com\/donations\/\">Donate<\/a><\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<p>e.g.<\/p>\n\n<ol>\n<li>Unzip into the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the Dashboard-&gt;Plugins admin menu.<\/li>\n<li>See configuation pages under Dashboard-&gt;Settings, Dashboard-&gt;Tools and on the widget page.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Is this an irrelevant test question?<\/dt>\n<dd><p>Absolutely!<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.6<\/h4>\n\n<ul>\n<li>Fixed critical typos on settings page<\/li>\n<li>Feeds updated, now over 100 feeds in total!<\/li>\n<li>Some old feeds renamed to conform with new CNN names.<\/li>\n<\/ul>\n\n<h4>2.5.1<\/h4>\n\n<ul>\n<li>Converted to new ChangeLog syntax<\/li>\n<li>Synced version numbers with Google News plugin<\/li>\n<li>No other changes since 2.4.1<\/li>\n<\/ul>\n\n<h4>2.4.1<\/h4>\n\n<ul>\n<li>Fixed minor markup glitch<\/li>\n<\/ul>\n\n<h4>2.4<\/h4>\n\n<ul>\n<li>Fixed WP 2.7 compat problems<\/li>\n<\/ul>\n\n<h4>2.3<\/h4>\n\n<ul>\n<li>Fixed a bug when plugin used directly in a theme.<\/li>\n<\/ul>\n\n<h4>2.2<\/h4>\n\n<ul>\n<li>Copied all the new functionality from my Google News plugin, and synced the version numbers.<\/li>\n<li>Removed dependency on PHP 5 functionality.<\/li>\n<li>Fixed UTF8-related bugs. <\/li>\n<li>Uses a class to avoid name space pollution.<\/li>\n<li>Better best practice plugin writing.<\/li>\n<li>Widget, inline replacement and theme calls.<\/li>\n<li>Multiple feeds allowed. <\/li>\n<li>Using WP builtin RSS fetching and caching system. <\/li>\n<li>Shortcodes are supported. <\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Displays news items from selectable CNN News RSS feeds, inline, as a widget or in a theme. Multiple feeds allowed. Caching.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2811"}],"author":[{"embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/olav-kolbu"}],"wp:attachment":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2811"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2811"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2811"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2811"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2811"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}