Changeset 156739
- Timestamp:
- 09/21/2009 02:19:13 PM (17 years ago)
- Location:
- commentluv
- Files:
-
- 7 added
- 4 edited
-
tags/2.7.1/readme.txt (modified) (4 diffs)
-
trunk/commentluv.php (modified) (4 diffs)
-
trunk/images/littleheart.png (added)
-
trunk/js/commentluv.js (modified) (2 diffs)
-
trunk/lang/commentluv-he_IL.mo (added)
-
trunk/lang/commentluv-he_IL.po (added)
-
trunk/lang/commentluv-ru_RU.mo (added)
-
trunk/lang/commentluv-ru_RU.po (added)
-
trunk/lang/commentluv-zh_CN.mo (added)
-
trunk/lang/commentluv-zh_CN.po (added)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
commentluv/tags/2.7.1/readme.txt
r124435 r156739 1 1 === CommentLuv === 2 Contributors: teamplaylotto2 Contributors: @commentluv (concept & coding) @wpmuguru (api) @andrea_r (site design) 3 3 Donate link:http://comluv.com/about/donate 4 4 Tags: commentluv, comments, last blog post, linkluv 5 5 Requires at least: 2.6.5 6 Tested up to: 2. 7.17 Stable tag: 2.7. 16 Tested up to: 2.8 7 Stable tag: 2.7.6 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. … … 15 15 It has been found to increase comments and the community spirit for the thousands of blogs that have installed it. With a simple install you will immediately start to find new and interesting blog posts, tweets and diggs from your own blog and community. 16 16 17 The plugin requires WP or WPMU version of at least 2. 7and will work with administrators and logged on users provided they have their homepage url set in their profile page in the dashboard of the site.17 The plugin requires WP or WPMU version of at least 2.65 and will work with administrators and logged on users provided they have their homepage url set in their profile page in the dashboard of the site. 18 18 19 19 With a full support site where you can unlock great new features, start your own WP2.7 blog with CommentLuv already installed and set up, view your stats for comments made and received and much more. … … 21 21 You can visit http://comluv.com to find out more about this plugin. 22 22 23 24 23 == Details == 24 25 CommentLuv functionality 26 * Works with Wordpress 2.65, 2.7.1 and 2.8, Compatible with WPmu and logged on users, Language support, Communicates with remote API when comment is deleted or spammed, Uses WP includes for jQuery and hoverIntent for improved compatibility with other plugins, Auto configures to recognize comment form 27 25 28 == Installation == 26 29 27 30 Wordpress : Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page. 28 31 29 WordpressMu : Same as above 32 WordpressMu : Same as above (do not place in mu-plugins) 33 34 == Configuration == 35 36 Display Options : 37 Enter the text you want displayed in the comment for the link that is added. 38 [name] -> replaced with comment author name 39 [type] -> replaced with blog, twitter or digg depending on what type of link the author chose to include. 40 [lastpost] -> replaced with the titled link. 41 42 Text displayed in the select box -> shows in the pull down box when a user has more than one post to choose from 43 44 CommentLuv on by default -> check this box to enable CommentLuv by default 45 46 Show heart on links -> Shows the heart icon next to links so users can find out more about the comment author 47 48 Use teamplate insert to show badge and checkbox -> check this box if you want to place the badge and pull down box in a particular place on your page by using the template code. 49 50 display badge -> choose from 4 different badges, choose no badge or use your own specified text 51 52 CommentLuv member area -> for future use 53 54 Technical Settings: 55 Authors name field name -> The name value of the field used on your comment form for the comment authors name 56 57 Email field name -> The name value of the field used on your comment form for the comment authors email 58 59 Authors URL field name -> The name value of the field used on your comment form for the comment authors site URL 60 61 Comments Text Area Name -> The name value of the field used on your comment form for the comment 62 63 update -> updates the settings 64 65 reset -> if you get in trouble, click this to reset to default settings 66 67 == Adding to your template == 68 Use <php cl\_display\_badge(); ?> in your comments.php file where you want the badge and checkbox to be shown 69 30 70 == Frequently Asked Questions == 31 71 … … 36 76 =Will this plugin work with Disqus/Intense Debate/js-kit?= 37 77 38 There will be a separate version of CommentLuv for external comment systems due to the regular updates they go through 78 There will be versions in the future that will work with Disqus, JS-kit and Intense debate. There is also an API available for developers if they choose to write their own versions. 79 80 =I am having a problem getting it to work= 81 82 You can submit a support ticket at http://comluv.com 83 39 84 == Screenshots == 40 85 1. settings page 41 86 42 87 2. in use 88 43 89 This plugin inserts fields to the comment form at run time. If you find there is no badge shown on the comment form after you first install it, please check your comments.php file for the command <?php do\_action('comment\_form', $post->ID); ?> before the </form> tag 44 90 45 For logged on users and administrators, be sure to check your profile and make sure there is a url entered.91 For logged on users and administrators, be sure to check your profile on your own dashboard and make sure there is a url entered. -
commentluv/trunk/commentluv.php
r127557 r156739 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.6 15 Version: 2.7.62 6 6 Author: Andy Bailey 7 7 Author URI: http://fiddyp.comluv.com/ 8 9 26 Apr 2009 - Start the new version using a class and updated localization (thanks Vladimir Prelovac for your great book on Wordpress Plugin Development!)10 05 Jun 2009 - Finalized last functions and integrated API. big up to @wpmuguru for API coding!11 10 Jun 2009 - Fix for php4 hosting. changed "public" to "var" and check function exists for json_decode12 11 Jun 2009 - Small bug in using text as badge fixed. Changed strpos to strrpos to find last tag code in text. priority 1 for comment_text13 removed request id data from being inserted (too many complaints!) and adjusted the way comment status change is handled. approve is done at post submission and14 delete is done at change status (with no request id sent)15 12 Jun 2009 - small fixes for valid xhtml on images and checkbox . remove identifying .-= / =-. from inserted link on display time. happy birthday to me16 13 Jun 2009 - fix php4 from not allowing last string pos (strrpos) (thanks http://www.makeupandbeautyblog.com/ && http://jahangiri.us/news/)17 - validates for Kelson (speedforce.org) (had a big cake yesterday nomnom)18 14 Jun 2009 - Italian translation added (and fix CR in string on manager page). Thanks go to Gianni Diurno http://gidibao.net19 16 Jun 2009 - Bug fix, use_template checkbox not displaying when selected on settings page (breaker). typo in settings page now uses <?php cl_display_badge(); ?> (oops!)20 - added global variable for badgeshown to prevent mulitple instances (template contains function call AND use template check is off)21 - fixed output of prepend html using decode html and stripslashes. Added green background to update settings button.22 19 Jun 2009 - fix for htmlspecialchars_decode causing error in wp < 2.8 (thanks @mitch_m for testing)23 8 */ 24 9 // Avoid name collision … … 106 91 $badge = $this->plugin_url . "images/" . $badge; 107 92 $badge_text = $options ['badge'] == 'text' ? 'on' : ''; 93 // get permalink for refer value 94 $refer_page = get_permalink(); 108 95 // insert options to header 109 wp_localize_script ( 'commentluv', 'cl_settings', array ('name' => $author_name, 'url' => $url_name, 'comment' => $comment_name, 'email' => $email_name, 'prepend' => $prepend, 'badge' => $badge, 'show_text' => $show_text, 'badge_text' => $badge_text, 'heart_tip' => $heart_tip, 'default_on' => $default_on, 'select_text' => $select_text, 'cl_version' => $this->cl_version, 'images' => $this->plugin_url . 'images/', 'api_url' => $this->api_url ) ); 96 wp_localize_script ( 'commentluv', 'cl_settings', array ('name' => $author_name, 'url' => $url_name, 'comment' => $comment_name, 'email' => $email_name, 'prepend' => $prepend, 'badge' => $badge, 97 'show_text' => $show_text, 'badge_text' => $badge_text, 'heart_tip' => $heart_tip, 'default_on' => $default_on, 'select_text' => $select_text, 98 'cl_version' => $this->cl_version, 'images' => $this->plugin_url . 'images/', 'api_url' => $this->api_url, 'refer' => $refer_page ) ); 110 99 } 111 100 } … … 291 280 $thelink = substr ( $cutit, 0, $hrefend ); 292 281 // got the url, construct url to tell comluv 293 $url = $this->api_url . "?type=approve&request_id=$request_id&post_id=$choice_id&url=$thelink ";282 $url = $this->api_url . "?type=approve&request_id=$request_id&post_id=$choice_id&url=$thelink&refer=".get_permalink(); 294 283 $content = $this->call_comluv ( $url ); 295 284 } … … 299 288 function update_cl_status($cid, $status) { 300 289 // get comment stuff from id 290 301 291 if ($status != 'spam') { 302 292 if ($status != 'delete') { -
commentluv/trunk/js/commentluv.js
r127333 r156739 95 95 var linkspan = $(this).parents(".cluv"); 96 96 var link = $(linkspan).find("a:first").attr("href"); 97 var url = cl_settings['api_url'] + "?type=info& url=" + link + '&version='+ cl_settings['cl_version'] + '&callback=?';97 var url = cl_settings['api_url'] + "?type=info&refer=" + cl_settings['refer'] + "&url=" + link + '&version='+ cl_settings['cl_version'] + '&callback=?'; 98 98 do_info(url); 99 99 } … … 145 145 // only fire if checkbox is checked 146 146 if($('#doluv').is(":checked")){ 147 var check=$(cl_settings['urlObj']).val() ;147 var check=$(cl_settings['urlObj']).val().toLowerCase(); 148 148 // and there is a url provided 149 if(!check) { return } 149 if(!check) { return; } 150 if(check.indexOf('http://') < 0) { return;} 150 151 $('#mylastpost img').attr("src",cl_settings['images'] + "loader.gif"); 151 var url=cl_settings['api_url'] + "?type=request& url="+check+"&version="+ cl_settings['cl_version'] +"&callback=?";152 var url=cl_settings['api_url'] + "?type=request&refer=" + cl_settings['refer'] + "&url="+check+"&version="+ cl_settings['cl_version'] +"&callback=?"; 152 153 // do the ajax call 153 154 $.getJSON(url,function(data){ -
commentluv/trunk/readme.txt
r127557 r156739 1 1 === CommentLuv === 2 Contributors: @commentluv (concept & coding) @wpmuguru (api) @andrea_r (site design)2 Contributors: @commentluv (concept & coding) 3 3 Donate link:http://comluv.com/about/donate 4 4 Tags: commentluv, comments, last blog post, linkluv 5 Requires at least: 2. 6.56 Tested up to: 2.8 7 Stable tag: 2.7.6 15 Requires at least: 2.8 6 Tested up to: 2.8.2 7 Stable tag: 2.7.62 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. … … 21 21 You can visit http://comluv.com to find out more about this plugin. 22 22 23 == Details ==24 25 CommentLuv functionality26 * Works with Wordpress 2.65, 2.7.1 and 2.827 * Compatible with WPmu and logged on users28 * Language support29 * Communicates with remote API when comment is deleted or spammed30 * Uses WP includes for jQuery and hoverIntent for improved compatibility with other plugins31 * Auto configures to recognize comment form32 33 23 == Installation == 34 24 35 25 Wordpress : Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page. 36 26 37 WordpressMu : Same as above 27 WordpressMu : Same as above (do not place in mu-plugins) 28 29 == Frequently Asked Questions == 30 31 = Does this plugin add any database tables? = 32 33 No. The link and a small bit of associated data is appended to the comment content at the time of submission 34 35 = Will this plugin work with Disqus/Intense Debate/js-kit? = 36 37 There is currently a version available for JS-Kit (Echo). 38 Intense Debate and Disqus may be suppported soon. 39 40 = I am having a problem getting it to work = 41 42 You can submit a support ticket at http://comluv.com 43 44 == Screenshots == 45 1. settings page 46 47 2. in use 48 49 == ChangeLog == 50 51 = 2.762 = 52 * Added permalink as refer variable in ajax calls for better stat collecting since WP started to use paginated comments 53 * Added Chinese translation by Denis http://zuoshen.com/ 54 * Added Hebrew translation by Maor http://www.maorb.info/ 55 * Added Russian translation by FatCow http://www.fatcow.com/ 56 * Updated readme.txt to use new features like changelog 57 * Check for http:// in url field before firing (to prevent errors for forms that use js hints in form fields) 58 59 = 2.761 = 60 * 19 Jun 2009 - fix for htmlspecialchars decode causing error in wp < 2.8 61 62 = 2.76 = 63 * 16 Jun 2009 - Bug fix, use_template checkbox not displaying when selected on settings page (breaker). typo in settings page now uses <?php cl\_display\_badge(); ?> 64 * added global variable for badgeshown to prevent mulitple instances (template contains function call AND use template check is off) 65 * fixed output of prepend html using decode html and stripslashes. Added green background to update settings button. 66 67 = 2.74 = 68 * 14 Jun 2009 - Italian translation added (and fix CR in string on manager page). Thanks go to Gianni Diurno 69 70 = 2.71 = 71 * 13 Jun 2009 - fix php4 from not allowing last string pos (strrpos) 72 73 = 2.7 = 74 * 12 Jun 2009 - small fixes for valid xhtml on images and checkbox . remove identifying .-= / =-. from inserted link on display time. 38 75 39 76 == Configuration == … … 41 78 Display Options : 42 79 Enter the text you want displayed in the comment for the link that is added. 43 [name] -> replaced with comment author name44 [type] -> replaced with blog, twitter or digg depending on what type of link the author chose to include.45 [lastpot] -> replaced with the titled link.80 * [name] -> replaced with comment author name 81 * [type] -> replaced with blog, twitter or digg depending on what type of link the author chose to include. 82 * [lastpost] -> replaced with the titled link. 46 83 47 Text displayed in the select box -> shows in the pull down box when a user has more than one post to choose from84 * Text displayed in the select box -> shows in the pull down box when a user has more than one post to choose from 48 85 49 CommentLuv on by default -> check this box to enable CommentLuv by default86 * CommentLuv on by default -> check this box to enable CommentLuv by default 50 87 51 Show heart on links -> Shows the heart icon next to links so users can find out more about the comment author88 * Show heart on links -> Shows the heart icon next to links so users can find out more about the comment author 52 89 53 Use teamplate insert to show badge and checkbox -> check this box if you want to place the badge and pull down box in a particular place on your page by using the template code.90 * Use teamplate insert to show badge and checkbox -> check this box if you want to place the badge and pull down box in a particular place on your page by using the template code. 54 91 55 display badge -> choose from 4 different badges, choose no badge or use your own specified text92 * display badge -> choose from 4 different badges, choose no badge or use your own specified text 56 93 57 CommentLuv member area -> for future use94 * CommentLuv member area -> for future use 58 95 59 96 Technical Settings: 60 Authors name field name -> The name value of the field used on your comment form for the comment authors name61 Email field name -> The name value of the field used on your comment form for the comment authors email62 Authors URL field name -> The name value of the field used on your comment form for the comment authors site URL63 Comments Text Area Name -> The name value of the field used on your comment form for the comment97 * Authors name field name -> The name value of the field used on your comment form for the comment authors name 98 * Email field name -> The name value of the field used on your comment form for the comment authors email 99 * Authors URL field name -> The name value of the field used on your comment form for the comment authors site URL 100 * Comments Text Area Name -> The name value of the field used on your comment form for the comment 64 101 65 update -> updates the settings102 * update -> updates the settings 66 103 67 reset -> if you get in trouble, click this to reset to default settings104 * reset -> if you get in trouble, click this to reset to default settings 68 105 69 106 == Adding to your template == 70 Use <php cl_show_badge(); ?> in your comments.php file where you want the badge and checkbox to be shown71 107 72 == Frequently Asked Questions == 108 Use `<?php cl_display_badge(); ?>` in your comments.php file where you want the badge and checkbox to be shown 73 109 74 =Does this plugin add any database tables?= 75 76 No. The link and a small bit of associated data is appended to the comment content at the time of submission 77 78 =Will this plugin work with Disqus/Intense Debate/js-kit?= 79 80 There will be versions in the future that will work with Disqus, JS-kit and Intense debate. There is also an API available for developers if they choose to write their own versions. 81 82 =I am having a problem getting it to work= 83 84 You can submit a support ticket at http://comluv.com 85 86 == Screenshots == 87 1. settings page 88 89 2. in use 90 This plugin inserts fields to the comment form at run time. If you find there is no badge shown on the comment form after you first install it, please check your comments.php file for the command <?php do\_action('comment\_form', $post->ID); ?> before the </form> tag 110 This plugin inserts fields to the comment form at run time. If you find there is no badge shown on the comment form after you first install it, please check your comments.php file for the command `<?php do_action('comment_form', $post->ID); ?>` before the `</form>` tag 91 111 92 112 For logged on users and administrators, be sure to check your profile on your own dashboard and make sure there is a url entered. 93 94 == ChangeLog ==95 05 Jun 2009 - Finalized last functions and integrated API. big up to @wpmuguru for API coding!96 97 10 Jun 2009 - Fix for php4 hosting. changed "public" to "var" and check function exists for json_decode98 99 11 Jun 2009 - Small bug in using text as badge fixed. Changed strpos to strrpos to find last tag code in text. priority 1 for comment_text100 removed request id data from being inserted (too many complaints!) and adjusted the way comment status change is handled. approve is done at post submission and delete is done at change status (with no request id sent)101 102 12 Jun 2009 - small fixes for valid xhtml on images and checkbox . remove identifying .-= / =-. from inserted link on display time.103 104 13 Jun 2009 - fix php4 from not allowing last string pos (strrpos)105 - validates for Kelson (speedforce.org) (had a big cake yesterday nomnom)106 107 14 Jun 2009 - Italian translation added (and fix CR in string on manager page). Thanks go to Gianni Diurno108 109 16 Jun 2009 - Bug fix, use_template checkbox not displaying when selected on settings page (breaker). typo in settings page now uses <?php cl\_display\_badge(); ?>110 - added global variable for badgeshown to prevent mulitple instances (template contains function call AND use template check is off)111 - fixed output of prepend html using decode html and stripslashes. Added green background to update settings button.112 19 Jun 2009 - fix for htmlspecialchars\_decode causing error in wp < 2.8
Note: See TracChangeset
for help on using the changeset viewer.