Changeset 124435
- Timestamp:
- 06/10/2009 03:14:38 PM (17 years ago)
- Location:
- commentluv/trunk
- Files:
-
- 2 edited
-
commentluv.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
commentluv/trunk/commentluv.php
r124334 r124435 3 3 Plugin URI: http://comluv.com/download/commentluv-wordpress/ 4 4 Description: Plugin to show a link to the last post from the commenters blog by parsing the feed at their given URL when they leave a comment. Rewards your readers and encourage more comments. 5 Version: 2.7 5 Version: 2.7.1 6 6 Author: Andy Bailey 7 7 Author URI: http://fiddyp.comluv.com/ … … 16 16 { 17 17 //localization domain 18 public$plugin_domain = 'commentluv';19 public$plugin_url;20 public$db_option = 'commentluv_options';21 public$cl_version = 270;22 public$api_url;18 var $plugin_domain = 'commentluv'; 19 var $plugin_url; 20 var $db_option = 'commentluv_options'; 21 var $cl_version = 270; 22 var $api_url; 23 23 24 24 //initialize the plugin … … 242 242 $options['badge'] = $this->plugin_url . 'images/' . $options['badge']; 243 243 if($badge_text == ''){ 244 $badge='<a href="http://comluv.com" target="_ new"><img src="' . $options['badge'] . '" border=0 alt="' . $options['show_text'] .'" title="'.$options['show_text'].'"/></a>';244 $badge='<a href="http://comluv.com" target="_blank"><img src="' . $options['badge'] . '" border=0 alt="' . $options['show_text'] .'" title="'.$options['show_text'].'"/></a>'; 245 245 } else { 246 $badge= $options['badge_text'];246 $badge='<a href="http://comluv.com" target="_blank">'.$options['show_text'].'</a>'; 247 247 } 248 248 echo '<div id="commentluv">' . $options['prepend'] . '<input type="checkbox" id="doluv" name="doluv" ' . … … 333 333 $content=curl_exec($curl); 334 334 if(!curl_error($curl)){ 335 $data=json_decode($content); 335 if(function_exists(json_decode)){ 336 $data=json_decode($content); 337 if($data->status != 200){ 338 // unsuccessful confirmation. 339 // have a tantrum here if you want. 340 } 341 } 336 342 curl_close($curl); 337 if($data->status != 200){ 338 // unsuccessful confirmation. 339 // have a tantrum here if you want. 340 } 343 341 344 } 342 345 } elseif(ini_get('allow_url_fopen')){ -
commentluv/trunk/readme.txt
r124334 r124435 5 5 Requires at least: 2.6.5 6 6 Tested up to: 2.7.1 7 Stable tag: 2.7 7 Stable tag: 2.7.1 8 8 9 9 Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
Note: See TracChangeset
for help on using the changeset viewer.