source: trunk/www.guidonia.net/wp/wp-content/plugins/google-news/readme.txt@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 7.6 KB
Line 
1=== Google News ===
2Contributors: Olav Kolbu
3Donate link: http://www.kolbu.com/donations/
4Tags: widget, plugin, google, news, google news, rss, feed
5Requires at least: 2.3.3
6Tested up to: 2.8.1
7Stable tag: trunk
8
9Displays news items from selectable Google News RSS feeds,
10inline, as a widget or in a theme. Multiple feeds allowed.
11Query filters and caching.
12
13== Description ==
14
15Google aggregates news from over 4500 news sources, updated
16continously. The results can be retrieved as a number of
17RSS feeds, where you can create your own specific feed by
18specifying one of more than 40 regions/languages, and an
19optional topic ranging from Domestic to Most Popular to
20Entertainment. Currently there are nine topics, including,
21of course, All. In addition to this, any feed can be filtered
22through a search query so that only news items matching your
23query will be shown. Note that not all combinations of
24region/language and topic has been enabled by Google but
25it should degrade gracefully.
26
27This plugin works both as a widget, as inline content
28replacement and can be called from themes. Any number of
29inline replacements or theme calls allowed, but only one
30widget instance is supported in this release.
31
32For widget use, simply use the widget as any other after
33selecting which feed it should display. For inline content
34replacement, insert the one or more of the following strings in
35your content and they will be replaced by the relevant news feed.
36For theme use, add the do_action function call described below.
37
381. **`<!--google-news-->`** for the default feed
391. **`<!--google-news#feedname-->`**
40
41Shortcodes can be used if you have WordPress 2.5 or above,
42in which case these replacement methods are also available.
43
441. **`[google-news]`** for the default feed
451. **`[google-news name="feedname"]`**
46
47Calling the plugin from a theme is done with the WP do_action()
48system. This will degrade gracefully and not produce errors
49or output if plugin is disabled or removed.
50
511. **`<?php do_action('google_news'); ?>`** for the default feed
521. **`<?php do_action('google_news', 'feedname'); ?>`**
53
54Enable plugin, go to the Google News page under
55Dashboard->Settings and read the initial information. Then
56go to the Google News page under Dashboard->Manage and
57configure one or more feeds. Then use a widget or insert
58relevant strings in your content or theme.
59
60Additional information:
61
62The available options are as follows.
63
64**Name:** Optional feed name, that can be used in the
65widget or the inline replacement string to reference
66a specific feed. Any feed without a name is considered
67"default" and will be used if the replacement strings do
68not reference a specific feed. If there are more than
69one feed with the same name, a random of these is picked
70every time it is used. This also applies to the default
71feed(s).
72
73**Title:** Optional, which when set will be used in the
74widget title or as a header above the news items when
75inline. If the title is empty, then a default title
76of "Google News : &lt;region&gt; : &lt;feed type&gt;" is used. Note
77that as per Google Terms of Service it is a requirement
78to state that the news come from Google.
79
80**News region:** A dropdown list of 40 choices, determining
81the region/language of the feed.
82
83**News type:** Another dropdown list, determining what type of
84news you are after. Sci/Tech, Business, Health etc.
85
86**Output type:** Some Google feeds come with just text,
87some pictures or pictures on nearly every news item. Chose
88which one you want here.
89
90**News item length:** Short or long. The short version is really just
91the news item title as a one liner but probably the one most
92WP admins will use. The long version is a 3-4 line teaser that
93has been severely stripped of useless markup that Google insists
94on passing along, including tables, links, colour/font/style
95settings etc. I've tried to clean it up so it won't mess up your
96theme. For the short version, the long text without html tags is
97available as a mouse rollover/tooltip.
98
99**Max items to show:** As the title says, if the feed has
100sufficient entries to fulfil the request.
101
102**Optional query filter:** One of the most important parts of
103the Google News RSS Feed is the ability to filter the news
104with your very own search query. Get relevant, up to date
105news on the exact topic you want. Note that if you add a
106search query, then the short item length will include an
107"all N news articles" link curtesy Google. If you choose
108to add a query, then you most likely want to set a title
109as well. To explain to the viewer what kind of news you have
110selected for them to see. The News Query isn't like a standard
111Google Query, so you can't use || between words to search
112for one or the other. So IFF you start your query with
113the word **OR** then the rest of the words will be or'ed
114together. I.e. a query string of 'OR this that' will look
115for news containing either this or that. This is really
116just a test, so the actual query language used here may change in
117future versions.
118
119
120**Cache time:** The feeds are now fetched using WordPress
121builtin MagpieRSS system, which allows for caching of feeds
122a specific number of seconds. Cached feeds are stored in
123the backend database.
124
125Clicking on a news item will of course take you via Google to
126the news site with the relevant article, as per Google Terms of Use.
127
128If you want to change the look&feel, the inline table is
129wrapped in a div with the id "google-news-inline" and the
130widget is wrapped in an li with id "google-news". Let me
131know if you need more to properly skin it.
132
133**[Download now!](http://downloads.wordpress.org/plugin/google-news.zip)**
134
135[Support](http://www.kolbu.com/2008/04/07/google-news-plugin/)
136
137[Donate](http://www.kolbu.com/donations/)
138
139
140== Installation ==
141
142This section describes how to install the plugin and get it working.
143
144e.g.
145
1461. Unzip into the `/wp-content/plugins/` directory
1471. Activate the plugin through the Dashboard->Plugins admin menu.
1481. See configuation pages under Dashboard->Settings, Dashboard->Tools and on the widget page.
149
150Note if you're upgrading from a previous release, there may be
151some strangeness the first time you edit an old feed. Try again
152and it will work. Or delete the feed and create again, guaranteed
153fix. :-)
154
155== Screenshots ==
156
1571. Widget in action under the Prosumer theme. Note the mouseover showing additional text from the news item.
1582. Small part of the admin Manage page for the plugin.
1593. Inline example under the Prosumer theme, replacing &lt;!--google-news--&gt; in content.
160
161== Changelog ==
162
1631. 1.0 Initial release
1641. 1.1 Removed dependency on PHP 5.1++ functionality.
165 Fixed UTF8-related bugs.
166 - Not a public release.
1671. 2.0 Rewritten from scratch. Now uses a class to avoid polluting the
168 name space. Hopefully adhering to best practices plugin writing.
169 Can now be used both as a widget and as inline content replacement.
1701. 2.0.1 Minor bugfix. Options were reset in some circumstances.
1711. 2.1 Major rewrite, again.
172 Multiple feeds allowed.
173 Using WP builtin RSS fetching and caching system.
174 Shortcodes are supported.
175 Rewrote more PHP5-only code, should now work fine with PHP4
1761. 2.2 Queries starting with OR will use remaining words in query
177 as ORed search. I.e. 'OR this that' will search for this or that.
178 Ability to call plugin from a theme.
179 Bugfixes for admins with db table character sets not matching that
180 of their WordPress install.
1811. 2.3 Fixed problems when plugin was used in themes
1821. 2.4 Fixed WP 2.7 compat problems
1831. 2.4.1 Fixed minor markup glitch
1841. 2.5 Added 25 new languages/locations
185
186Known bugs:
187 - None at this time
188 - Unconfigured feeds are not wrapped in matching html containers. </li?>
Note: See TracBrowser for help on using the repository browser.