Version Description
- Yet another DISQUS note... sigh.
- Changed default markup to be make the output validate better.
- Reformatted the version log in readme.txt
- Added a Settings link to the plugins page
- Some initial WPML support:
- Tweaked a SQL query so that it was WPML compatible
- Added YARPP template to be used with WPML
- Added Hebrew localization
Download this release
Release Info
Developer | mitchoyoshitaka |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 3.0.12 |
Comparing to | |
See all releases |
Code changes from version 3.0.11 to 3.0.12
- includes.php +2 -2
- magic.php +1 -1
- readme.txt +165 -152
- yarpp-templates/yarpp-template-wpml.php +20 -0
- yarpp.php +5 -2
includes.php
CHANGED
@@ -21,8 +21,8 @@ $yarpp_value_options = array('threshold' => 5,
|
|
21 |
'after_title' => '</li>',
|
22 |
'before_post' => ' <small>',
|
23 |
'after_post' => '</small>',
|
24 |
-
'before_related' => '<p>'.__('Related posts:','yarpp').'
|
25 |
-
'after_related' => '</ol
|
26 |
'no_results' => '<p>'.__('No related posts.','yarpp').'</p>',
|
27 |
'order' => 'score DESC',
|
28 |
'rss_limit' => 3,
|
21 |
'after_title' => '</li>',
|
22 |
'before_post' => ' <small>',
|
23 |
'after_post' => '</small>',
|
24 |
+
'before_related' => '<p>'.__('Related posts:','yarpp').'</p><ol>',
|
25 |
+
'after_related' => '</ol>',
|
26 |
'no_results' => '<p>'.__('No related posts.','yarpp').'</p>',
|
27 |
'order' => 'score DESC',
|
28 |
'rss_limit' => 3,
|
magic.php
CHANGED
@@ -22,7 +22,7 @@ function yarpp_set_score_override_flag($q) {
|
|
22 |
function yarpp_join_filter($arg) {
|
23 |
global $wpdb, $yarpp_time;
|
24 |
if ($yarpp_time) {
|
25 |
-
$arg .= " join {$wpdb->prefix}yarpp_related_cache as yarpp
|
26 |
}
|
27 |
return $arg;
|
28 |
}
|
22 |
function yarpp_join_filter($arg) {
|
23 |
global $wpdb, $yarpp_time;
|
24 |
if ($yarpp_time) {
|
25 |
+
$arg .= " join {$wpdb->prefix}yarpp_related_cache as yarpp on {$wpdb->posts}.ID = yarpp.ID";
|
26 |
}
|
27 |
return $arg;
|
28 |
}
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4D
|
|
7 |
Tags: related, posts, post, pages, page, RSS, feed, feeds
|
8 |
Requires at least: 2.3
|
9 |
Tested up to: 2.8.4
|
10 |
-
Stable tag: 3.0.
|
11 |
|
12 |
Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature allows customization of the display.
|
13 |
|
@@ -56,7 +56,7 @@ For advanced users with knowledge of PHP, there is also an [advanced manual inst
|
|
56 |
|
57 |
== Frequently Asked Questions ==
|
58 |
|
59 |
-
If your question isn't here, ask your own question at [the Wordpress.org forums](http://wordpress.org/tags/yet-another-related-posts-plugin).
|
60 |
|
61 |
= Every page just says "no related posts"! What's up with that? =
|
62 |
|
@@ -86,6 +86,10 @@ If you are worried about your database load, do not manually build the cache—s
|
|
86 |
|
87 |
The DISQUS plugin loads some JavaScript voodoo which is interacting in weird ways with the AJAX in YARPP's options page. You can fix this by going to the DISQUS plugin advanced settings and turning on the "Check this if you have a problem with comment counts not showing on permalinks" option.
|
88 |
|
|
|
|
|
|
|
|
|
89 |
= I get a PHP error saying "Cannot redeclare `related_posts()`" =
|
90 |
|
91 |
You most likely have another related posts plugin activated at the same time. Please disactivate those other plugins first before using YARPP.
|
@@ -100,7 +104,7 @@ It is recommended that you tweak your match threshold whenever you make changes
|
|
100 |
|
101 |
Aside from the DISQUS plugin (see above), currently the only known incompatibility is [with the SEO_Pager plugin](http://wordpress.org/support/topic/267966). Users of SEO Pager are urged to turn off the automatic display option in SEO Pager and instead add the code manually.
|
102 |
|
103 |
-
Please submit similar bugs by starting a new thread on [the Wordpress.org forums](http://wordpress.org/tags/yet-another-related-posts-plugin). I check the forums regularly and will try to release a quick bugfix.
|
104 |
|
105 |
= Things are weird after I upgraded. =
|
106 |
|
@@ -117,6 +121,7 @@ YARPP is currently localized in the following languages:
|
|
117 |
* French (`fr_FR`) by Lionel Chollet (yarpp-fr at mitcho dot com)
|
118 |
* German (`de_DE`) by Michael Kalina (yarpp-de at mitcho dot com) of [3th.be](http://3th.be)
|
119 |
* Greek (`el_EL`) by Aristidis Tonikidis (yarpp-el at mitcho dot com) of [akouseto.gr](http://www.akouseto.gr)
|
|
|
120 |
* Italian (`it_IT`) by Gianni Diurno (yarpp-it at mitcho dot com) of [gidibao.net](http://gidibao.net)
|
121 |
* Japanese (`ja`) by myself (yarpp at mitcho dot com)
|
122 |
* Korean (`ko_KR`) by [Jong-In Kim](http://incommunity.codex.kr) (yarpp-ko at mitcho dot com)
|
@@ -126,7 +131,7 @@ YARPP is currently localized in the following languages:
|
|
126 |
* Russian (`ru_RU`) by Marat Latypov (yarpp-ru at mitcho.com) of [blogocms.ru](http://blogocms.ru)
|
127 |
* Swedish (`sv_SE`) by Max Elander (yarpp-sv at mitcho dot com)
|
128 |
* Vietnamese (`vi_VN`) by Vu Nguyen (yarpp-vi at mitcho dot com) of [Rubik Integration](http://rubikintegration.com/)
|
129 |
-
*
|
130 |
* Uzbek (`uz_UZ`) by Ali Safarov (yarpp-uz at mitcho dot com) of [comfi.com](http://www.comfi.com/)
|
131 |
|
132 |
We already have localizers lined up for the following languages:
|
@@ -137,155 +142,163 @@ We already have localizers lined up for the following languages:
|
|
137 |
* Indonesian
|
138 |
* Hungarian
|
139 |
* Romanian
|
140 |
-
* Hebrew
|
141 |
* Latvian
|
142 |
|
143 |
If you are a bilingual speaker of English and another language and an avid user of YARPP, I would love to talk to you about localizing YARPP! Localizing YARPP can be pretty easy using [the Codestyling Localization plugin](http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en). Please [contact me](mailto:yarpp@mitcho.com) *first* before translating to make sure noone else is working on your language. Thanks!
|
144 |
|
145 |
-
==
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
*
|
150 |
-
|
151 |
-
*
|
152 |
-
|
153 |
-
|
154 |
-
*
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
*
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
* 2.
|
173 |
-
|
174 |
-
|
175 |
-
*
|
176 |
-
|
177 |
-
*
|
178 |
-
|
179 |
-
*
|
180 |
-
|
181 |
-
|
182 |
-
* 2.
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
*
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
*
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
*
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
*
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
*
|
226 |
-
|
227 |
-
|
228 |
-
*
|
229 |
-
*
|
230 |
-
|
231 |
-
*
|
232 |
-
|
233 |
-
*
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
*
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
*
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
*
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
*
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
*
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
Tags: related, posts, post, pages, page, RSS, feed, feeds
|
8 |
Requires at least: 2.3
|
9 |
Tested up to: 2.8.4
|
10 |
+
Stable tag: 3.0.12
|
11 |
|
12 |
Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature allows customization of the display.
|
13 |
|
56 |
|
57 |
== Frequently Asked Questions ==
|
58 |
|
59 |
+
If your question isn't here, ask your own question at [the Wordpress.org forums](http://wordpress.org/tags/yet-another-related-posts-plugin?forum_id=10#postform).
|
60 |
|
61 |
= Every page just says "no related posts"! What's up with that? =
|
62 |
|
86 |
|
87 |
The DISQUS plugin loads some JavaScript voodoo which is interacting in weird ways with the AJAX in YARPP's options page. You can fix this by going to the DISQUS plugin advanced settings and turning on the "Check this if you have a problem with comment counts not showing on permalinks" option.
|
88 |
|
89 |
+
= I use DISQUS for comments. My RSS feed is now invalid and cannot be parsed by some clients! =
|
90 |
+
|
91 |
+
The DISQUS plugin loads some JavaScript voodoo when related posts are displayed, even in the RSS feed. You can fix this by going to the DISQUS plugin advanced settings and turning on the "Check this if you have a problem with comment counts not showing on permalinks" option.
|
92 |
+
|
93 |
= I get a PHP error saying "Cannot redeclare `related_posts()`" =
|
94 |
|
95 |
You most likely have another related posts plugin activated at the same time. Please disactivate those other plugins first before using YARPP.
|
104 |
|
105 |
Aside from the DISQUS plugin (see above), currently the only known incompatibility is [with the SEO_Pager plugin](http://wordpress.org/support/topic/267966). Users of SEO Pager are urged to turn off the automatic display option in SEO Pager and instead add the code manually.
|
106 |
|
107 |
+
Please submit similar bugs by starting a new thread on [the Wordpress.org forums](http://wordpress.org/tags/yet-another-related-posts-plugin?forum_id=10#postform). I check the forums regularly and will try to release a quick bugfix.
|
108 |
|
109 |
= Things are weird after I upgraded. =
|
110 |
|
121 |
* French (`fr_FR`) by Lionel Chollet (yarpp-fr at mitcho dot com)
|
122 |
* German (`de_DE`) by Michael Kalina (yarpp-de at mitcho dot com) of [3th.be](http://3th.be)
|
123 |
* Greek (`el_EL`) by Aristidis Tonikidis (yarpp-el at mitcho dot com) of [akouseto.gr](http://www.akouseto.gr)
|
124 |
+
* Hebrew (`he_IL`) by Mickey Zelansky (yarpp-he at mitcho dot com) of [simpleidea.us](http://simpleidea.us)
|
125 |
* Italian (`it_IT`) by Gianni Diurno (yarpp-it at mitcho dot com) of [gidibao.net](http://gidibao.net)
|
126 |
* Japanese (`ja`) by myself (yarpp at mitcho dot com)
|
127 |
* Korean (`ko_KR`) by [Jong-In Kim](http://incommunity.codex.kr) (yarpp-ko at mitcho dot com)
|
131 |
* Russian (`ru_RU`) by Marat Latypov (yarpp-ru at mitcho.com) of [blogocms.ru](http://blogocms.ru)
|
132 |
* Swedish (`sv_SE`) by Max Elander (yarpp-sv at mitcho dot com)
|
133 |
* Vietnamese (`vi_VN`) by Vu Nguyen (yarpp-vi at mitcho dot com) of [Rubik Integration](http://rubikintegration.com/)
|
134 |
+
* Ukrainian (`uk_UA`) by [Onore](http://Onore.kiev.ua) (Alexander Musevich) (yarpp-uk at mitcho dot com)
|
135 |
* Uzbek (`uz_UZ`) by Ali Safarov (yarpp-uz at mitcho dot com) of [comfi.com](http://www.comfi.com/)
|
136 |
|
137 |
We already have localizers lined up for the following languages:
|
142 |
* Indonesian
|
143 |
* Hungarian
|
144 |
* Romanian
|
|
|
145 |
* Latvian
|
146 |
|
147 |
If you are a bilingual speaker of English and another language and an avid user of YARPP, I would love to talk to you about localizing YARPP! Localizing YARPP can be pretty easy using [the Codestyling Localization plugin](http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en). Please [contact me](mailto:yarpp@mitcho.com) *first* before translating to make sure noone else is working on your language. Thanks!
|
148 |
|
149 |
+
== Changelog ==
|
150 |
+
|
151 |
+
= 3.0.12 =
|
152 |
+
* Yet another DISQUS note... sigh.
|
153 |
+
* Changed [default markup](http://wordpress.org/support/topic/307890) to be make the output validate better.
|
154 |
+
* Reformatted the version log in readme.txt
|
155 |
+
* Added a Settings link to the plugins page
|
156 |
+
* Some initial WPML support:
|
157 |
+
* Tweaked a SQL query so that it was WPML compatible
|
158 |
+
* Added YARPP template to be used with WPML
|
159 |
+
* Added Hebrew localization
|
160 |
+
= 3.0.11 =
|
161 |
+
* Quick fix for `compare_version` code.
|
162 |
+
= 3.0.10 =
|
163 |
+
* Added Ukrainian localization
|
164 |
+
* Incorporated a quick update for the widget display [thanks to doodlebee](http://wordpress.org/support/topic/281575).
|
165 |
+
* Now properly uses `compare_version` in lieu of old hacky versioning.
|
166 |
+
= 3.0.9 =
|
167 |
+
* Added Uzbek, Greek, Cypriot Greek, and Vietnamese localizations
|
168 |
+
* Further bugfixes for the [pagination issue](http://wordpress.org/support/topic/267350)
|
169 |
+
= 3.0.8 =
|
170 |
+
* Bugfix: [a pagination issue](http://wordpress.org/support/topic/267350) (may not be completely fixed yet)
|
171 |
+
* Bugfix: a quick bugfix for widgets, thanks to Chris Northwood
|
172 |
+
* Added Korean and Lithuanian localizations
|
173 |
+
* Bugfix: [when ad-hoc caching was off, the cached status would always say "0% cached" ](http://wordpress.org/support/topic/286395)
|
174 |
+
* Bugfix: enabled Polish and Italian stopwords and [fixed encoding of Italian stopwords](http://wordpress.org/support/topic/288808).
|
175 |
+
* Bugfix: `is_single` and other such flags are now set properly within the related posts Loop (as a result, now [compatible with WP Greet Box](http://wordpress.org/support/topic/288230))
|
176 |
+
* Confirmed compatibility with 2.8.2
|
177 |
+
* Bugfix: [the Related Posts metabox now respects the Screen Options](http://wordpress.org/support/topic/289290)
|
178 |
+
= 3.0.7 =
|
179 |
+
* Bugfix: additional bugfix for widgets.
|
180 |
+
* Reinstating excerpt length by number of words (was switched to letters in 3.0.6 without accompanying documentation)
|
181 |
+
* Localizations:
|
182 |
+
* Updated Italian
|
183 |
+
* Added Belarussian by [Fat Cow](http://www.fatcow.com)
|
184 |
+
* Confirmed compatibility with 2.8.1
|
185 |
+
= 3.0.6 =
|
186 |
+
* Bugfix: [updated excerpting to use `wp_html_excerpt`](http://wordpress.org/support/topic/268934) (for WP 2.5+)
|
187 |
+
* Bugfix: [fixed broken widget display](http://wordpress.org/support/topic/276031)
|
188 |
+
* Added Russian (`ru_RU`) localization by Marat Latypov
|
189 |
+
* Confirmed 2.8 compatibility
|
190 |
+
* Added note on [incompatibility with SEO Pager plugin](http://wordpress.org/support/topic/267966)
|
191 |
+
= 3.0.5 =
|
192 |
+
* Added link to manual SQL setup information [by request](http://wordpress.org/support/topic/266752)
|
193 |
+
* Added Portuguese localization
|
194 |
+
* Updated info on "on the fly" caching - it is *strongly recommended* for larger blogs.
|
195 |
+
* Updated "incomplete cache" warning message so it is only displayed when the "on the fly" option is off.
|
196 |
+
= 3.0.4 =
|
197 |
+
* A fix to the version checking in the options page - now uses Snoopy
|
198 |
+
* Adding Dutch localization
|
199 |
+
= 3.0.3 =
|
200 |
+
* Reinstated the 3.0.1 bugfix for includes
|
201 |
+
* Bugfix: Fixed encoding issue in keyword caching algorithm
|
202 |
+
* Bugfix: One SQL query assumed `wp_` prefix on tables
|
203 |
+
* Added Polish localization
|
204 |
+
* Added note on DISQUS in readme
|
205 |
+
* Making some extra strings localizable
|
206 |
+
* Bugfix: [a problem with the Italian localization](http://wordpress.org/support/topic/265952)
|
207 |
+
= 3.0.2 =
|
208 |
+
* Bugfix: [Templating wasn't working with child templates.](http://wordpress.org/support/topic/265515)
|
209 |
+
* Bugfix: In some situations, [SQL errors were printed in the AJAX preview displays](http://wordpress.org/support/topic/265728).
|
210 |
+
= 3.0.1 =
|
211 |
+
* Bugfix: In some situations before YARPP options were updated, an `include` PHP error was displayed.
|
212 |
+
= 3.0 =
|
213 |
+
* Major new release!
|
214 |
+
* Caching for better SQL performance
|
215 |
+
* A new [templating feature](http://mitcho.com/blog/projects/yarpp-3-templates/) for custom related posts displays
|
216 |
+
* Cleaned up options page
|
217 |
+
* New and updated localizations
|
218 |
+
= 2.1.6 =
|
219 |
+
* Versioning bugfix - same as 2.1.5
|
220 |
+
= 2.1.5 =
|
221 |
+
* Bugfix: In certain scenarios, [related posts would be displayed in RSS feeds even when that option was off](http://wordpress.org/support/topic/216145)
|
222 |
+
* Bugfix: The `related_*()` functions were missing the `echo` parameter
|
223 |
+
* Some localization bugfixes
|
224 |
+
* Localizations:
|
225 |
+
* Japanese (`ja`) by myself ([mitcho (Michael Yoshitaka Erlewine)](http://mitcho.com))
|
226 |
+
= 2.1.4 =
|
227 |
+
* Bugfix: [Settings' sumbmit button took you to PayPal](http://wordpress.org/support/topic/214090)
|
228 |
+
* Bugfix: Fixed [keyword algorithm for users without `mbstring`](http://wordpress.org/support/topic/216420)
|
229 |
+
* Bugfix: `title` attributes were not properly escaped
|
230 |
+
* Bugfix: [keywords did not filter tags](http://wordpress.org/support/topic/218211). (This bugfix may vastly improve "relatedness" on some blogs.)
|
231 |
+
* Localizations:
|
232 |
+
* Simplified Chinese (`zh_CN`) by Jor Wang (mail at jorwang dot com) of [jorwang.com](http://jorwang.com)
|
233 |
+
* German (`de_DE`) by Michael Kalina (yarpp-de at mitcho dot com) of [3th.be](http://3th.be)
|
234 |
+
* The "show excerpt" option now shows the first `n` words of the excerpt, rather than the content ([by request](http://wordpress.org/support/topic/212577))
|
235 |
+
* Added an `echo` parameter to the `related_*()` functions, with default value of `true`. If `false`, the function will simply return the output.
|
236 |
+
* Added support for the [AllWebMenus Pro](http://wordpress.org/extend/plugins/allwebmenus-wordpress-menu-plugin/) plugin
|
237 |
+
* Further internationalization:
|
238 |
+
* the donate button! ^^
|
239 |
+
* overused words lists ([by request](http://wordpress.org/support/topic/159359))), with a German word list.
|
240 |
+
= 2.1.3 =
|
241 |
+
* Bugfix: Turned off [the experimental caching](http://wordpress.org/support/topic/216194#post-894440) which shouldn't have been on in this release...
|
242 |
+
* Bugfix: an issue with the [keywords algorithm for non-ASCII characters](http://wordpress.org/support/topic/216078)
|
243 |
+
= 2.1.2 =
|
244 |
+
* Bugfix: MyISAM override handling bug
|
245 |
+
= 2.1.1 =
|
246 |
+
* Bugfix: keywords with forward slashes (\) could make the main SQL query ill-formed.
|
247 |
+
* Bugfix: Added an override option for the [false MyISAM warnings](http://wordpress.org/support/topic/211043).
|
248 |
+
* Preparing for localization! (See note at the bottom of the FAQ.)
|
249 |
+
* Adding a debug mode--just try adding `&yarpp_debug=1` to your URL's and look at the HTML source.
|
250 |
+
= 2.1 - The RSS edition! =
|
251 |
+
* RSS feed support!: the option to automagically show related posts in RSS feeds and to customize their display, [by popular request](http://wordpress.org/support/topic/151766).
|
252 |
+
* A link to [the Yet Another Related Posts Plugin RSS feed](http://wordpress.org/support/topic/208469).
|
253 |
+
* Further optimization of the main SQL query in cases where not all of the match criteria (title, body, tags, categories) are chosen.
|
254 |
+
* A new format for pushing arguments to the `related_posts()` functions.
|
255 |
+
* Bugfix: [compatibility](http://wordpress.org/support/topic/207286) with the [dzoneZ-Et](http://wordpress.org/extend/plugins/dzonez-et/) and [reddZ-Et](http://wordpress.org/extend/plugins/reddz-et/) plugins.
|
256 |
+
* Bugfix: `related_*_exist()` functions produced invalid queries
|
257 |
+
* A warning for `wp_posts` with non-MyISAM engines and semi-compatibility with non-MyISAM setups.
|
258 |
+
* Bugfix: [a better notice for users of Wordpress < 2.5](http://www.mattcutts.com/blog/wordpress-plugin-related-posts/#comment-131194) regarding the "compare tags" and "compare categories" features.
|
259 |
+
= 2.0.6 =
|
260 |
+
* A quick emergency bugfix (In one instance, assumed existence of `wp_posts`)
|
261 |
+
= 2.0.5 =
|
262 |
+
* Further optimized algorithm - should be faster on most systems. Good bye [subqueries](http://dev.mysql.com/doc/refman/5.0/en/unnamed-views.html)!
|
263 |
+
* Bugfix: restored MySQL 4.0 support
|
264 |
+
* Bugfix: [widgets required the "auto display" option](http://wordpress.org/support/topic/190454)
|
265 |
+
* Bugfix: sometimes default values were not set properly on (re)activation
|
266 |
+
* Bugfix: [quotes in HTML tag options would get escaped](http://wordpress.org/support/topic/199139)
|
267 |
+
* Bugfix: `user_level` was being checked in a deprecated manner
|
268 |
+
* A helpful little tooltip for the admin-only threshold display
|
269 |
+
= 2.0.4 - what 2.0 should have been =
|
270 |
+
* Bugfix: new fulltext query for MySQL 5 compatibility
|
271 |
+
* Bugfix: updated `apply_filters` to work with WP 2.6
|
272 |
+
= 2.0.3 =
|
273 |
+
* Bugfix: [2.0.2 accidentally required some tags or categories to be disabled](http://wordpress.org/support/topic/188745)
|
274 |
+
= 2.0.2 =
|
275 |
+
* Versioning bugfix (rerelease of 2.0.1)
|
276 |
+
= 2.0.1 =
|
277 |
+
* Bugfix: [`admin_menu` instead of `admin_head`](http://konstruktors.com/blog/wordpress/277-fixing-postpost-and-ozh-absolute-comments-plugins/)
|
278 |
+
* Bugfix: [a variable scope issue](http://wordpress.org/support/topic/188550) crucial for 2.0 upgrading
|
279 |
+
= 2.0 =
|
280 |
+
* New algorithm which considers tags and categories, by frequent request
|
281 |
+
* Order by score, date, or title, [by request](http://wordpress.org/support/topic/158459)
|
282 |
+
* Excluding certain tags or categories, [by request](http://wordpress.org/support/topic/161263)
|
283 |
+
* Sample output displayed in the options screen
|
284 |
+
* Bugfix: [an excerpt length bug](http://wordpress.org/support/topic/155034?replies=5)
|
285 |
+
* Bugfix: now compatible with the following plugins:
|
286 |
+
- diggZEt
|
287 |
+
- WP-Syntax
|
288 |
+
- Viper's Video Quicktags
|
289 |
+
- WP-CodeBox
|
290 |
+
- WP shortcodes
|
291 |
+
= 1.5.1 =
|
292 |
+
* Bugfix: standardized directory references to `yet-another-related-posts-plugin`
|
293 |
+
= 1.5 =
|
294 |
+
* Simple installation: automatic display of a basic related posts install
|
295 |
+
* code and variable cleanup
|
296 |
+
* FAQ in the documentation
|
297 |
+
= 1.1 =
|
298 |
+
* Related pages support!
|
299 |
+
* Also, uses `apply_filters` to apply whatever content text transformation you use (Wikipedia link, Markdown, etc.) before computing similarity.
|
300 |
+
= 1.0.1 =
|
301 |
+
* Bugfix: 1.0 assumed you had Markdown installed
|
302 |
+
|
303 |
+
= 1.0 =
|
304 |
+
* Initial upload
|
yarpp-templates/yarpp-template-wpml.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php /*
|
2 |
+
Example template for use with WPML (WP Multilingual, http://wpml.org)
|
3 |
+
Author: mitcho (Michael Yoshitaka Erlewine)
|
4 |
+
*/
|
5 |
+
|
6 |
+
if (function_exists("icl_register_string")) {
|
7 |
+
icl_register_string("Yet Another Related Posts Plugin","related posts header","Related Posts");
|
8 |
+
icl_register_string("Yet Another Related Posts Plugin","no related posts message","No related posts.");
|
9 |
+
}
|
10 |
+
|
11 |
+
?><h3><?php echo (function_exists("icl_t") ? icl_t("Yet Another Related Posts Plugin","related posts header","Related Posts") : "Related Posts B") ?></h3>
|
12 |
+
<?php if ($related_query->have_posts()):?>
|
13 |
+
<ol>
|
14 |
+
<?php while ($related_query->have_posts()) : $related_query->the_post(); ?>
|
15 |
+
<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
|
16 |
+
<?php endwhile; ?>
|
17 |
+
</ol>
|
18 |
+
<?php else: ?>
|
19 |
+
<p><?php echo (function_exists("icl_t") ? icl_t("Yet Another Related Posts Plugin","no related posts message","No related posts.") : "No related posts. B") ?></p>
|
20 |
+
<?php endif; ?>
|
yarpp.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Plugin URI: http://mitcho.com/code/yarpp/
|
5 |
Description: Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature allows customization of the display.
|
6 |
-
Version: 3.0.
|
7 |
Author: mitcho (Michael Yoshitaka Erlewine)
|
8 |
Author URI: http://mitcho.com/
|
9 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4DATK4999L&item_name=mitcho%2ecom%2fcode%3a%20donate%20to%20Michael%20Yoshitaka%20Erlewine&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&charset=UTF%2d8
|
10 |
*/
|
11 |
|
12 |
-
define('YARPP_VERSION','3.0.
|
13 |
|
14 |
require_once('includes.php');
|
15 |
require_once('related-functions.php');
|
@@ -52,3 +52,6 @@ add_filter('posts_fields','yarpp_fields_filter');
|
|
52 |
add_filter('posts_request','yarpp_demo_request_filter');
|
53 |
add_filter('post_limits','yarpp_limit_filter');
|
54 |
add_action('parse_query','yarpp_set_score_override_flag'); // sets the score override flag.
|
|
|
|
|
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Plugin URI: http://mitcho.com/code/yarpp/
|
5 |
Description: Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature allows customization of the display.
|
6 |
+
Version: 3.0.12
|
7 |
Author: mitcho (Michael Yoshitaka Erlewine)
|
8 |
Author URI: http://mitcho.com/
|
9 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4DATK4999L&item_name=mitcho%2ecom%2fcode%3a%20donate%20to%20Michael%20Yoshitaka%20Erlewine&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&charset=UTF%2d8
|
10 |
*/
|
11 |
|
12 |
+
define('YARPP_VERSION','3.0.12');
|
13 |
|
14 |
require_once('includes.php');
|
15 |
require_once('related-functions.php');
|
52 |
add_filter('posts_request','yarpp_demo_request_filter');
|
53 |
add_filter('post_limits','yarpp_limit_filter');
|
54 |
add_action('parse_query','yarpp_set_score_override_flag'); // sets the score override flag.
|
55 |
+
|
56 |
+
// new in 3.0.12: add settings link to the plugins page
|
57 |
+
add_filter('plugin_action_links', 'yarpp_settings_link', 10, 2);
|