Plugin Directory

Changeset 156739


Ignore:
Timestamp:
09/21/2009 02:19:13 PM (17 years ago)
Author:
teamplaylotto
Message:

updated readme and added more languages.
modified js and core code to specify refer link so comluv stats are more accurate (due to new WP versions using paginated comments in url value)

Location:
commentluv
Files:
7 added
4 edited

Legend:

Unmodified
Added
Removed
  • commentluv/tags/2.7.1/readme.txt

    r124435 r156739  
    11=== CommentLuv ===
    2 Contributors: teamplaylotto
     2Contributors: @commentluv (concept & coding) @wpmuguru (api) @andrea_r (site design)
    33Donate link:http://comluv.com/about/donate
    44Tags: commentluv, comments, last blog post, linkluv
    55Requires at least: 2.6.5
    6 Tested up to: 2.7.1
    7 Stable tag: 2.7.1
     6Tested up to: 2.8
     7Stable tag: 2.7.6
    88   
    99Reward 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.
     
    1515It 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.
    1616
    17 The plugin requires WP or WPMU version of at least 2.7 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.
     17The 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.
    1818
    1919With 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.
     
    2121You can visit http://comluv.com to find out more about this plugin.
    2222
    23  
    24    
     23== Details ==
     24
     25CommentLuv 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
    2528== Installation ==
    2629
    2730Wordpress : 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.
    2831
    29 WordpressMu : Same as above
     32WordpressMu : Same as above (do not place in mu-plugins)
     33
     34== Configuration ==
     35
     36Display Options :
     37Enter 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
     42Text displayed in the select box -> shows in the pull down box when a user has more than one post to choose from
     43
     44CommentLuv on by default -> check this box to enable CommentLuv by default
     45
     46Show heart on links -> Shows the heart icon next to links so users can find out more about the comment author
     47
     48Use 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
     50display badge -> choose from 4 different badges, choose no badge or use your own specified text
     51
     52CommentLuv member area -> for future use
     53
     54Technical Settings:
     55Authors name field name -> The name value of the field used on your comment form for the comment authors name
     56
     57Email field name -> The name value of the field used on your comment form for the comment authors email
     58
     59Authors URL field name -> The name value of the field used on your comment form for the comment authors site URL
     60
     61Comments Text Area Name -> The name value of the field used on your comment form for the comment
     62
     63update -> updates the settings
     64
     65reset -> if you get in trouble, click this to reset to default settings
     66
     67== Adding to your template ==
     68Use <php cl\_display\_badge(); ?> in your comments.php file where you want the badge and checkbox to be shown
     69
    3070== Frequently Asked Questions ==
    3171
     
    3676=Will this plugin work with Disqus/Intense Debate/js-kit?=
    3777
    38 There will be a separate version of CommentLuv for external comment systems due to the regular updates they go through
     78There 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
     82You can submit a support ticket at http://comluv.com
     83
    3984== Screenshots ==
    40851. settings page
    4186
    42872. in use
     88
    4389This 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
    4490
    45 For logged on users and administrators, be sure to check your profile and make sure there is a url entered.
     91For 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  
    33Plugin URI: http://comluv.com/download/commentluv-wordpress/
    44Description: 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.61
     5Version: 2.7.62
    66Author: Andy Bailey
    77Author 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_decode
    12 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_text
    13 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
    14 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 me
    16 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.net
    19 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)
    238*/
    249// Avoid name collision
     
    10691                $badge = $this->plugin_url . "images/" . $badge;
    10792                $badge_text = $options ['badge'] == 'text' ? 'on' : '';
     93                // get permalink for refer value
     94                $refer_page = get_permalink();
    10895                // 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 ) );
    11099            }
    111100        }
     
    291280                $thelink = substr ( $cutit, 0, $hrefend );
    292281                // 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();
    294283                $content = $this->call_comluv ( $url );
    295284            }
     
    299288        function update_cl_status($cid, $status) {
    300289            // get comment stuff from id
     290           
    301291            if ($status != 'spam') {
    302292                if ($status != 'delete') {
  • commentluv/trunk/js/commentluv.js

    r127333 r156739  
    9595            var linkspan = $(this).parents(".cluv");
    9696            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=?';
    9898            do_info(url);
    9999        }
     
    145145        // only fire if checkbox is checked
    146146        if($('#doluv').is(":checked")){
    147             var check=$(cl_settings['urlObj']).val();
     147            var check=$(cl_settings['urlObj']).val().toLowerCase();
    148148            // and there is a url provided
    149             if(!check) { return }
     149            if(!check) { return; }
     150            if(check.indexOf('http://') < 0) { return;}
    150151            $('#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=?";
    152153            // do the ajax call
    153154            $.getJSON(url,function(data){
  • commentluv/trunk/readme.txt

    r127557 r156739  
    11=== CommentLuv ===
    2 Contributors: @commentluv (concept & coding) @wpmuguru (api) @andrea_r (site design)
     2Contributors: @commentluv (concept & coding)
    33Donate link:http://comluv.com/about/donate
    44Tags: commentluv, comments, last blog post, linkluv
    5 Requires at least: 2.6.5
    6 Tested up to: 2.8
    7 Stable tag: 2.7.61
     5Requires at least: 2.8
     6Tested up to: 2.8.2
     7Stable tag: 2.7.62
    88   
    99Reward 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.
     
    2121You can visit http://comluv.com to find out more about this plugin.
    2222
    23 == Details ==
    24 
    25 CommentLuv functionality
    26 * Works with Wordpress 2.65, 2.7.1 and 2.8
    27 * Compatible with WPmu and logged on users
    28 * Language support
    29 * Communicates with remote API when comment is deleted or spammed
    30 * Uses WP includes for jQuery and hoverIntent for improved compatibility with other plugins
    31 * Auto configures to recognize comment form
    32 
    3323== Installation ==
    3424
    3525Wordpress : 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.
    3626
    37 WordpressMu : Same as above
     27WordpressMu : Same as above (do not place in mu-plugins)
     28
     29== Frequently Asked Questions ==
     30
     31= Does this plugin add any database tables? =
     32
     33No. 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
     37There is currently a version available for JS-Kit (Echo).
     38Intense Debate and Disqus may be suppported soon.
     39
     40= I am having a problem getting it to work =
     41
     42You can submit a support ticket at http://comluv.com
     43
     44== Screenshots ==
     451. settings page
     46
     472. 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 &lt;?php cl\_display\_badge(); ?&gt;
     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.
    3875
    3976== Configuration ==
     
    4178Display Options :
    4279Enter the text you want displayed in the comment for the link that is added.
    43 [name] -> replaced with comment author name
    44 [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.
    4683
    47 Text displayed in the select box -> shows in the pull down box when a user has more than one post to choose from
     84* Text displayed in the select box -> shows in the pull down box when a user has more than one post to choose from
    4885
    49 CommentLuv on by default -> check this box to enable CommentLuv by default
     86* CommentLuv on by default -> check this box to enable CommentLuv by default
    5087
    51 Show heart on links -> Shows the heart icon next to links so users can find out more about the comment author
     88* Show heart on links -> Shows the heart icon next to links so users can find out more about the comment author
    5289
    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.
    5491
    55 display badge -> choose from 4 different badges, choose no badge or use your own specified text
     92* display badge -> choose from 4 different badges, choose no badge or use your own specified text
    5693
    57 CommentLuv member area -> for future use
     94* CommentLuv member area -> for future use
    5895
    5996Technical Settings:
    60 Authors name field name -> The name value of the field used on your comment form for the comment authors name
    61 Email field name -> The name value of the field used on your comment form for the comment authors email
    62 Authors URL field name -> The name value of the field used on your comment form for the comment authors site URL
    63 Comments Text Area Name -> The name value of the field used on your comment form for the comment
     97* 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
    64101
    65 update -> updates the settings
     102* update -> updates the settings
    66103
    67 reset -> if you get in trouble, click this to reset to default settings
     104* reset -> if you get in trouble, click this to reset to default settings
    68105
    69106== Adding to your template ==
    70 Use &lt;php cl_show_badge(); ?&gt; in your comments.php file where you want the badge and checkbox to be shown
    71107
    72 == Frequently Asked Questions ==
     108Use `<?php cl_display_badge(); ?>` in your comments.php file where you want the badge and checkbox to be shown
    73109
    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 &lt;?php do\_action('comment\_form', $post->ID); ?&gt; before the &lt;/form> tag
     110This 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
    91111
    92112For 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_decode
    98 
    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_text
    100 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 Diurno
    108 
    109 16 Jun 2009 - Bug fix, use_template checkbox not displaying when selected on settings page (breaker). typo in settings page now uses &lt;?php cl\_display\_badge(); ?&gt;
    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.