Version Description
- Bugfix: removed an unlocalized string
- Bugfix for users of WordPress 3.0.x.
Download this release
Release Info
Developer | mitchoyoshitaka |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 3.3.2 |
Comparing to | |
See all releases |
Code changes from version 3.3.1 to 3.3.2
- blogglue.php +0 -114
- includes.php +12 -0
- mitcho-small.jpg +0 -0
- readme.txt +4 -1
- template-builtin.php +1 -1
- yarpp.php +2 -2
blogglue.php
DELETED
@@ -1,114 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function yarpp_show_blogglue_upsell() {
|
3 |
-
if (current_user_can('activate_plugins') &&
|
4 |
-
get_option( 'yarpp_blogglue_promo_runonce', false) !== false)
|
5 |
-
return;
|
6 |
-
update_option( 'yarpp_blogglue_promo_runonce', true );
|
7 |
-
?>
|
8 |
-
<style type="text/css">
|
9 |
-
#TB_window { min-width: 670px; min-height: 370px; max-height: 370px; }
|
10 |
-
#blogglue_top { color: black; padding: 15px; border-bottom: 1px solid #CCC; overflow:auto; }
|
11 |
-
#blogglue_top img { float: left; border: 3px solid #555;margin-right: 15px; }
|
12 |
-
#blogglue_top p { line-height: 1.7em; }
|
13 |
-
#blogglue_bottom, #blogglue_bottom ul { text-align: center; }
|
14 |
-
#blogglue_bottom h2 { font-family: "Copperplate Gothic Light"; font-size: 1.3em; }
|
15 |
-
#blogglue_bottom a { display: block; width: 150px; padding: 7px 5px; color: white !important; text-decoration: none; font-size: 18px; margin: 0 auto; background-color: #88AF3D; border: 2px solid #5C5C5C; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; text-align: center; }
|
16 |
-
#signature { float:right; }
|
17 |
-
#disclaimer { color: #666; font-size: 10px; padding-bottom: 0.6em }
|
18 |
-
p.button_info { margin: 10px auto; font-size: 10px; color: #666; font-weight: bold; width: 150px; }
|
19 |
-
</style>
|
20 |
-
<div id="blogglue_update" style="display: none;">
|
21 |
-
<div id="blogglue_top">
|
22 |
-
<img src="<?php echo plugins_url( 'mitcho-small.jpg', __FILE__ ) ; ?>" alt="mitcho's Photo"/>
|
23 |
-
<h2>A Note From YARPP's Author, mitcho</h2>
|
24 |
-
<p>For a long time YARPP has been great at linking posts within a single blog. BlogGlue gives your site Related Posts from across the BlogGlue Network and your posts will also show up on other sites you trust. <strong>BlogGlue is the next generation of YARPP.</strong>
|
25 |
-
<span id="signature">— mitcho</span></p>
|
26 |
-
</div>
|
27 |
-
<div id="blogglue_bottom">
|
28 |
-
<table>
|
29 |
-
<tr>
|
30 |
-
<td width="200">
|
31 |
-
<a href="<?php echo wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=arkayne-site-to-site-related-content'), 'install-plugin_arkayne-site-to-site-related-content'); ?>">Get BlogGlue</a>
|
32 |
-
<p class="button_info">Get your posts promoted by other blogs today.</p>
|
33 |
-
</td>
|
34 |
-
<td width="250">
|
35 |
-
<h2>Benefits Of BlogGlue</h2>
|
36 |
-
<ul>
|
37 |
-
<li>Related Links on Partner Blogs</li>
|
38 |
-
<li>Related Links in Tweets</li>
|
39 |
-
<li>Off-server Processing</li>
|
40 |
-
<li>Built-in SEO Analyzer</li>
|
41 |
-
</ul>
|
42 |
-
</td>
|
43 |
-
<td width="200">
|
44 |
-
<a href="#" onclick="tb_remove(); return false;">No Thanks</a>
|
45 |
-
<p class="button_info">I don't want other blogs promoting me.</p>
|
46 |
-
</td>
|
47 |
-
</tr>
|
48 |
-
<tr><td colspan="3" id="disclaimer">Installing BlogGlue will deactivate YARPP. Your YARPP settings will be saved.<img src="http://www.blogglue.com/cohorts/track/yarpp_popup.gif"></td></tr>
|
49 |
-
</table>
|
50 |
-
</div>
|
51 |
-
</div>
|
52 |
-
<?php
|
53 |
-
echo '<script>window.onload=function(){ tb_show("BIG ANNOUNCEMENT: YARPP has partnered with BlogGlue to connect blogs.", "#TB_inline?height=600&width=650&inlineId=blogglue_update", null); }</script>';
|
54 |
-
}
|
55 |
-
add_action('admin_print_scripts-plugins.php', 'yarpp_show_blogglue_upsell' );
|
56 |
-
|
57 |
-
function add_yarpp_blogglue_meta_box() {
|
58 |
-
class YARPP_Meta_Box_BlogGlue extends YARPP_Meta_Box {
|
59 |
-
function display() {
|
60 |
-
$pluginurl = plugin_dir_url(__FILE__);
|
61 |
-
?>
|
62 |
-
<style type="text/css">
|
63 |
-
#blogglue_upsell {
|
64 |
-
text-align: center;
|
65 |
-
}
|
66 |
-
#blogglue_upsell ul {
|
67 |
-
list-style-type: disc;
|
68 |
-
list-style-position: inside;
|
69 |
-
text-align: left;
|
70 |
-
margin: 10px 0 10px 15px;
|
71 |
-
}
|
72 |
-
#blogglue_install_steps {
|
73 |
-
text-align: center;
|
74 |
-
height: 200px;
|
75 |
-
}
|
76 |
-
#TB_ajaxContent {
|
77 |
-
height: 220px !important;
|
78 |
-
}
|
79 |
-
ul.install_help {
|
80 |
-
list-style-type: disc;
|
81 |
-
list-style-position: inside;
|
82 |
-
text-align: left;
|
83 |
-
margin: 20px 0px;
|
84 |
-
}
|
85 |
-
</style>
|
86 |
-
<div id="blogglue_upsell">
|
87 |
-
<img src="http://s3.amazonaws.com/arkayne-media/img/logo-md.png" alt="BlogGlue Logo"/>
|
88 |
-
<ul>
|
89 |
-
<li>Related Links on Partner Blogs</li>
|
90 |
-
<li>Related Links in Tweets</li>
|
91 |
-
<li>Off-server Processing</li>
|
92 |
-
<li>Built-in SEO Analyzer</li>
|
93 |
-
</ul>
|
94 |
-
<a href="#TB_inline?height=300&width=400&inlineId=blogglue_install" class="thickbox"><img src="http://s3.amazonaws.com/arkayne-media/img/email_try.png" alt="Upgrade"/></a><img src="http://www.blogglue.com/cohorts/track/yarpp_sidebar.gif"/>
|
95 |
-
</div>
|
96 |
-
<div id="blogglue_install" style="display: none;">
|
97 |
-
<div id="blogglue_install_steps">
|
98 |
-
<img src="http://s3.amazonaws.com/arkayne-media/img/logo.png" alt="BlogGlue Logo"/>
|
99 |
-
<ul class="install_help">
|
100 |
-
<li>Installing BlogGlue will disable YARPP</li>
|
101 |
-
<li>Your YARPP settings will still be saved</li>
|
102 |
-
<li>Once the download is complete, activate the BlogGlue plugin</li>
|
103 |
-
<li>After the plugin is activated, follow the signup instructions</li>
|
104 |
-
</ul>
|
105 |
-
<a href="<?php echo wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=arkayne-site-to-site-related-content'), 'install-plugin_arkayne-site-to-site-related-content'); ?>"><img src="http://s3.amazonaws.com/arkayne-media/img/start_free_sm.png" width="94" height="30"/></a>
|
106 |
-
</div>
|
107 |
-
</div>
|
108 |
-
<?php
|
109 |
-
}
|
110 |
-
}
|
111 |
-
|
112 |
-
add_meta_box('yarpp_display_blogglue', 'Upgrade To BlogGlue', array(new YARPP_Meta_Box_BlogGlue, 'display'), 'settings_page_yarpp', 'side', 'core');
|
113 |
-
}
|
114 |
-
add_action( 'add_meta_boxes_settings_page_yarpp', 'add_yarpp_blogglue_meta_box' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes.php
CHANGED
@@ -392,3 +392,15 @@ function yarpp_default_hidden_meta_boxes($hidden, $screen) {
|
|
392 |
$hidden = array( 'yarpp_pool', 'yarpp_relatedness' );
|
393 |
return $hidden;
|
394 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
392 |
$hidden = array( 'yarpp_pool', 'yarpp_relatedness' );
|
393 |
return $hidden;
|
394 |
}
|
395 |
+
|
396 |
+
// since 3.3.2: fix for WP 3.0.x
|
397 |
+
if ( !function_exists( 'self_admin_url' ) ) {
|
398 |
+
function self_admin_url($path = '', $scheme = 'admin') {
|
399 |
+
if ( defined( 'WP_NETWORK_ADMIN' ) && WP_NETWORK_ADMIN )
|
400 |
+
return network_admin_url($path, $scheme);
|
401 |
+
elseif ( defined( 'WP_USER_ADMIN' ) && WP_USER_ADMIN )
|
402 |
+
return user_admin_url($path, $scheme);
|
403 |
+
else
|
404 |
+
return admin_url($path, $scheme);
|
405 |
+
}
|
406 |
+
}
|
mitcho-small.jpg
DELETED
Binary file
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Donate link: http://tinyurl.com/donatetomitcho
|
|
7 |
Tags: related, posts, post, pages, page, RSS, feed, feeds
|
8 |
Requires at least: 3.0
|
9 |
Tested up to: 3.2
|
10 |
-
Stable tag: 3.3.
|
11 |
|
12 |
Display a list of related entries on your site and feeds based on a unique algorithm. Templating allows customization of the display.
|
13 |
|
@@ -195,6 +195,9 @@ If you are a bilingual speaker of English and another language and an avid user
|
|
195 |
|
196 |
== Changelog ==
|
197 |
|
|
|
|
|
|
|
198 |
= 3.3.1 =
|
199 |
* Quick bugfix to [relatedness options panel bug](http://wordpress.org/support/topic/relatedness-options-for-titles-and-bodies-cant-be-changed)
|
200 |
= 3.3 =
|
7 |
Tags: related, posts, post, pages, page, RSS, feed, feeds
|
8 |
Requires at least: 3.0
|
9 |
Tested up to: 3.2
|
10 |
+
Stable tag: 3.3.2
|
11 |
|
12 |
Display a list of related entries on your site and feeds based on a unique algorithm. Templating allows customization of the display.
|
13 |
|
195 |
|
196 |
== Changelog ==
|
197 |
|
198 |
+
= 3.3.2 =
|
199 |
+
* [Bugfix](http://wordpress.org/support/topic/missing-translate-strings): removed an unlocalized string
|
200 |
+
* Bugfix for users of WordPress 3.0.x.
|
201 |
= 3.3.1 =
|
202 |
* Quick bugfix to [relatedness options panel bug](http://wordpress.org/support/topic/relatedness-options-for-titles-and-bodies-cant-be-changed)
|
203 |
= 3.3 =
|
template-builtin.php
CHANGED
@@ -30,7 +30,7 @@ if ($related_query->have_posts()) {
|
|
30 |
while ($related_query->have_posts()) {
|
31 |
$related_query->the_post();
|
32 |
|
33 |
-
$output .= "$before_title<a href='".get_permalink()."' rel='bookmark' title='
|
34 |
if (current_user_can('manage_options') && $domain != 'rss')
|
35 |
$output .= ' <abbr title="'.sprintf(__('%f is the YARPP match score between the current entry and this related entry. You are seeing this value because you are logged in to WordPress as an administrator. It is not shown to regular visitors.','yarpp'),round(get_the_score(),3)).'">('.round(get_the_score(),3).')</abbr>';
|
36 |
$output .= '</a>';
|
30 |
while ($related_query->have_posts()) {
|
31 |
$related_query->the_post();
|
32 |
|
33 |
+
$output .= "$before_title<a href='" . get_permalink() . "' rel='bookmark' title='" . esc_attr(get_the_title() ? get_the_title() : get_the_ID()) . "'>".get_the_title()."";
|
34 |
if (current_user_can('manage_options') && $domain != 'rss')
|
35 |
$output .= ' <abbr title="'.sprintf(__('%f is the YARPP match score between the current entry and this related entry. You are seeing this value because you are logged in to WordPress as an administrator. It is not shown to regular visitors.','yarpp'),round(get_the_score(),3)).'">('.round(get_the_score(),3).')</abbr>';
|
36 |
$output .= '</a>';
|
yarpp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Plugin URI: http://yarpp.org/
|
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.3.
|
7 |
Author: mitcho (Michael Yoshitaka Erlewine)
|
8 |
Author URI: http://mitcho.com/
|
9 |
Donate link: http://tinyurl.com/donatetomitcho
|
@@ -13,7 +13,7 @@ Donate link: http://tinyurl.com/donatetomitcho
|
|
13 |
if (isset($_REQUEST['yarpp_debug']))
|
14 |
$yarpp_debug = true;
|
15 |
|
16 |
-
define('YARPP_VERSION','3.3.
|
17 |
define('YARPP_DIR',dirname(__FILE__));
|
18 |
|
19 |
require_once(YARPP_DIR.'/includes.php');
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Plugin URI: http://yarpp.org/
|
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.3.2
|
7 |
Author: mitcho (Michael Yoshitaka Erlewine)
|
8 |
Author URI: http://mitcho.com/
|
9 |
Donate link: http://tinyurl.com/donatetomitcho
|
13 |
if (isset($_REQUEST['yarpp_debug']))
|
14 |
$yarpp_debug = true;
|
15 |
|
16 |
+
define('YARPP_VERSION','3.3.2');
|
17 |
define('YARPP_DIR',dirname(__FILE__));
|
18 |
|
19 |
require_once(YARPP_DIR.'/includes.php');
|