Version Description
Download this release
Release Info
Developer | teamplaylotto |
Plugin | CommentLuv |
Version | 2.1.6 |
Comparing to | |
See all releases |
Code changes from version 2.1.5 to 2.1.6
- commentluv.php +16 -7
- readme.txt +1 -1
commentluv.php
CHANGED
@@ -10,6 +10,7 @@ Author URI: http://www.fiddyp.co.uk/
|
|
10 |
You can now edit the options from the dashboard
|
11 |
*********************************************************************
|
12 |
updates:
|
|
|
13 |
2.1.5 25/9/8 do the features ever stop?? Marco says we should had some option for html to be added before button and delete old selects if change url. done!
|
14 |
also I am a dumbo for using wp_enqueue_script in the function called by wp_head, it should be before that. so sorry everyone! (retiredat47.com)
|
15 |
2.1.4 25/9/8 enqueue script and give choice to place button where someone wants it thanks Marco! http://www.saphod.net/
|
@@ -111,10 +112,8 @@ add_action('comment_form','cl_add_fields');
|
|
111 |
add_filter('preprocess_comment','cl_post',0);
|
112 |
add_filter('whitelist_options','commentluv_alter_whitelist_options');
|
113 |
register_activation_hook(__FILE__, 'commentluv_activation');
|
114 |
-
|
115 |
-
|
116 |
-
if ( ! defined( 'WP_PLUGIN_URL' ) )
|
117 |
-
define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
|
118 |
|
119 |
// make compatible with Mu
|
120 |
function commentluv_alter_whitelist_options($whitelist) {
|
@@ -224,6 +223,16 @@ function show_cl_options() {
|
|
224 |
|
225 |
// add style to head
|
226 |
function cl_style_script(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
global $cl_script_added;
|
228 |
|
229 |
if ($cl_script_added) {
|
@@ -251,7 +260,7 @@ function cl_style_script(){
|
|
251 |
} else {
|
252 |
$cl_badge_val="<img src=\"".WP_PLUGIN_URL."/commentluv/$cl_badge\"/>";
|
253 |
}
|
254 |
-
|
255 |
// check if user has set append ID differently
|
256 |
$append_id=get_option('cl_badge_pos');
|
257 |
if($append_id){
|
@@ -259,7 +268,7 @@ function cl_style_script(){
|
|
259 |
}
|
260 |
// optional prepend
|
261 |
$cl_prepend=get_option('cl_prepend');
|
262 |
-
|
263 |
// select text
|
264 |
$cl_select_text=get_option('cl_select_text');
|
265 |
|
@@ -336,7 +345,7 @@ function cl_style_script(){
|
|
336 |
"});\n".
|
337 |
"}\n";
|
338 |
|
339 |
-
if(is_single()) {
|
340 |
echo '<!-- Styling and script added by commentluv 2.15 http://www.commentluv.com -->';
|
341 |
echo '<style type="text/css">abbr em{'.get_option('cl_style').'} #lastposts { width: 300px; }</style>';
|
342 |
|
10 |
You can now edit the options from the dashboard
|
11 |
*********************************************************************
|
12 |
updates:
|
13 |
+
2.1.6 27/9/8 make compatible for less that wp 2.5.1
|
14 |
2.1.5 25/9/8 do the features ever stop?? Marco says we should had some option for html to be added before button and delete old selects if change url. done!
|
15 |
also I am a dumbo for using wp_enqueue_script in the function called by wp_head, it should be before that. so sorry everyone! (retiredat47.com)
|
16 |
2.1.4 25/9/8 enqueue script and give choice to place button where someone wants it thanks Marco! http://www.saphod.net/
|
112 |
add_filter('preprocess_comment','cl_post',0);
|
113 |
add_filter('whitelist_options','commentluv_alter_whitelist_options');
|
114 |
register_activation_hook(__FILE__, 'commentluv_activation');
|
115 |
+
wp_enqueue_script('jquery');
|
116 |
+
|
|
|
|
|
117 |
|
118 |
// make compatible with Mu
|
119 |
function commentluv_alter_whitelist_options($whitelist) {
|
223 |
|
224 |
// add style to head
|
225 |
function cl_style_script(){
|
226 |
+
// for lesser Wp than 2.6
|
227 |
+
// Pre-2.6 compatibility
|
228 |
+
if ( ! defined( 'WP_CONTENT_URL' ) )
|
229 |
+
define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
|
230 |
+
if ( ! defined( 'WP_CONTENT_DIR' ) )
|
231 |
+
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
|
232 |
+
if ( ! defined( 'WP_PLUGIN_URL' ) )
|
233 |
+
define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
|
234 |
+
if ( ! defined( 'WP_PLUGIN_DIR' ) )
|
235 |
+
define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
|
236 |
global $cl_script_added;
|
237 |
|
238 |
if ($cl_script_added) {
|
260 |
} else {
|
261 |
$cl_badge_val="<img src=\"".WP_PLUGIN_URL."/commentluv/$cl_badge\"/>";
|
262 |
}
|
263 |
+
|
264 |
// check if user has set append ID differently
|
265 |
$append_id=get_option('cl_badge_pos');
|
266 |
if($append_id){
|
268 |
}
|
269 |
// optional prepend
|
270 |
$cl_prepend=get_option('cl_prepend');
|
271 |
+
|
272 |
// select text
|
273 |
$cl_select_text=get_option('cl_select_text');
|
274 |
|
345 |
"});\n".
|
346 |
"}\n";
|
347 |
|
348 |
+
if(is_single()) {
|
349 |
echo '<!-- Styling and script added by commentluv 2.15 http://www.commentluv.com -->';
|
350 |
echo '<style type="text/css">abbr em{'.get_option('cl_style').'} #lastposts { width: 300px; }</style>';
|
351 |
|
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.6
|
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 |
|