Version Description
Download this release
Release Info
Developer | teamplaylotto |
Plugin | CommentLuv |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.3
- commentluv.php +11 -7
- readme.txt +1 -1
commentluv.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Plugin Name: commentluv
|
3 |
Plugin URI: http://www.commentluv.com/download/ajax-commentluv-installation/
|
4 |
Description: Plugin to show a link to the last post from the commenters blog in their comment. Just activate and it's ready. Will parse a feed from most sites that have a feed location specified in its head html. See the <a href="options-general.php?page=commentluv">Settings Page</a> for styling and text output options.
|
5 |
-
Version: 2.1.
|
6 |
Author: Andy Bailey
|
7 |
Author URI: http://www.fiddyp.co.uk/
|
8 |
|
@@ -10,6 +10,9 @@ Author URI: http://www.fiddyp.co.uk/
|
|
10 |
You can now edit the options from the dashboard
|
11 |
*********************************************************************
|
12 |
updates:
|
|
|
|
|
|
|
13 |
2.1.2 24/9/8 Allow user to choose no image or use text instead. Try to run cl_dostuff if url field already filled (fix for imwithjoe.com)
|
14 |
2.11 23/9/8 Use better constant to specify image url in javascript (http://indigospot.com) and moved button to below comment text area
|
15 |
2.1 23/9/8 Change to final remote file location and updated readme and download pages
|
@@ -107,6 +110,9 @@ add_filter('preprocess_comment','cl_post',0);
|
|
107 |
add_filter('whitelist_options','commentluv_alter_whitelist_options');
|
108 |
register_activation_hook(__FILE__, 'commentluv_activation');
|
109 |
|
|
|
|
|
|
|
110 |
|
111 |
// make compatible with Mu
|
112 |
function commentluv_alter_whitelist_options($whitelist) {
|
@@ -218,7 +224,7 @@ function cl_style_script(){
|
|
218 |
if ($cl_script_added) {
|
219 |
return;
|
220 |
}
|
221 |
-
echo '<!-- Styling and script added by commentluv 2.
|
222 |
echo '<style type="text/css">abbr em{'.get_option('cl_style').'} #lastposts { width: 300px; }</style>';
|
223 |
|
224 |
$cl_commentform_id=get_option('cl_commentform_id');
|
@@ -253,8 +259,6 @@ function cl_style_script(){
|
|
253 |
$script.="jQuery('abbr em a').click(processclick);\n";
|
254 |
}
|
255 |
$script.="jQuery($comment_selector).focus(cl_dostuff); \n".
|
256 |
-
// quick fix for imwithjoe.com - if url field is full, do the fetch or bind a blur function on url field for after it is filled
|
257 |
-
"if(jQuery($url_selector).val()){ cl_dostuff();} else { jQuery($url_selector).blur(cl_dostuff);}".
|
258 |
"jQuery('#lastposts').change(function(){ \n".
|
259 |
"jQuery('option').remove(\":contains('choose a different post to show')\");\n".
|
260 |
"var url = jQuery(this).val();\n".
|
@@ -321,8 +325,8 @@ function cl_style_script(){
|
|
321 |
|
322 |
if(is_single()) {
|
323 |
|
324 |
-
echo'<script src="'.get_option('siteurl').'/wp-includes/js/jquery/jquery.js?ver=1.2.6"
|
325 |
-
echo
|
326 |
// add click tracking if enabled to head for admin
|
327 |
if(current_user_can('edit_users')){
|
328 |
$adminscript="\njQuery(document).ready(function() {\n";
|
@@ -347,7 +351,7 @@ function cl_style_script(){
|
|
347 |
}
|
348 |
}
|
349 |
|
350 |
-
echo "
|
351 |
|
352 |
echo '<!-- end commentluv http://www.fiddyp.co.uk -->';
|
353 |
|
2 |
Plugin Name: commentluv
|
3 |
Plugin URI: http://www.commentluv.com/download/ajax-commentluv-installation/
|
4 |
Description: Plugin to show a link to the last post from the commenters blog in their comment. Just activate and it's ready. Will parse a feed from most sites that have a feed location specified in its head html. See the <a href="options-general.php?page=commentluv">Settings Page</a> for styling and text output options.
|
5 |
+
Version: 2.1.3
|
6 |
Author: Andy Bailey
|
7 |
Author URI: http://www.fiddyp.co.uk/
|
8 |
|
10 |
You can now edit the options from the dashboard
|
11 |
*********************************************************************
|
12 |
updates:
|
13 |
+
|
14 |
+
2.1.3 24/9/8 fix for older than 2.6 to use wp_plugin_dir and remove quick fix for imwithjoe (it was the ID's joe!)
|
15 |
+
and make inline javascript valid xhtml. Validates!
|
16 |
2.1.2 24/9/8 Allow user to choose no image or use text instead. Try to run cl_dostuff if url field already filled (fix for imwithjoe.com)
|
17 |
2.11 23/9/8 Use better constant to specify image url in javascript (http://indigospot.com) and moved button to below comment text area
|
18 |
2.1 23/9/8 Change to final remote file location and updated readme and download pages
|
110 |
add_filter('whitelist_options','commentluv_alter_whitelist_options');
|
111 |
register_activation_hook(__FILE__, 'commentluv_activation');
|
112 |
|
113 |
+
// for lesser Wp than 2.6
|
114 |
+
if ( ! defined( 'WP_PLUGIN_URL' ) )
|
115 |
+
define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
|
116 |
|
117 |
// make compatible with Mu
|
118 |
function commentluv_alter_whitelist_options($whitelist) {
|
224 |
if ($cl_script_added) {
|
225 |
return;
|
226 |
}
|
227 |
+
echo '<!-- Styling and script added by commentluv 2.13 http://www.commentluv.com -->';
|
228 |
echo '<style type="text/css">abbr em{'.get_option('cl_style').'} #lastposts { width: 300px; }</style>';
|
229 |
|
230 |
$cl_commentform_id=get_option('cl_commentform_id');
|
259 |
$script.="jQuery('abbr em a').click(processclick);\n";
|
260 |
}
|
261 |
$script.="jQuery($comment_selector).focus(cl_dostuff); \n".
|
|
|
|
|
262 |
"jQuery('#lastposts').change(function(){ \n".
|
263 |
"jQuery('option').remove(\":contains('choose a different post to show')\");\n".
|
264 |
"var url = jQuery(this).val();\n".
|
325 |
|
326 |
if(is_single()) {
|
327 |
|
328 |
+
echo'<script type="text/javascript" src="'.get_option('siteurl').'/wp-includes/js/jquery/jquery.js?ver=1.2.6"></script>';
|
329 |
+
echo "<script type=\"text/javascript\"><!--//--><![CDATA[//><!--";
|
330 |
// add click tracking if enabled to head for admin
|
331 |
if(current_user_can('edit_users')){
|
332 |
$adminscript="\njQuery(document).ready(function() {\n";
|
351 |
}
|
352 |
}
|
353 |
|
354 |
+
echo "//--><!]]></script>";
|
355 |
|
356 |
echo '<!-- end commentluv http://www.fiddyp.co.uk -->';
|
357 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Andy Bailey
|
|
3 |
Tags: comments, linkluv
|
4 |
Requires at least: 2.5
|
5 |
Tested up to: 2.6.2
|
6 |
-
Stable tag: 2.1.
|
7 |
|
8 |
Appends a titled link using AJAX to the authors last blog post on their comment giving back some luv to the people that join your discussion. Compatible with logged on users and Wordpress MU. Visit CommentLuv.com for detailed instructions on features.
|
9 |
|
3 |
Tags: comments, linkluv
|
4 |
Requires at least: 2.5
|
5 |
Tested up to: 2.6.2
|
6 |
+
Stable tag: 2.1.3
|
7 |
|
8 |
Appends a titled link using AJAX to the authors last blog post on their comment giving back some luv to the people that join your discussion. Compatible with logged on users and Wordpress MU. Visit CommentLuv.com for detailed instructions on features.
|
9 |
|