Changeset 204345
- Timestamp:
- 02/11/2010 09:01:32 PM (16 years ago)
- Location:
- commentluv/trunk
- Files:
-
- 4 added
- 9 edited
-
commentluv-manager.php (modified) (2 diffs)
-
commentluv.php (modified) (6 diffs)
-
images/CL88_Black4.gif (added)
-
images/CL88_White4.gif (added)
-
images/CL91_Black4.gif (added)
-
images/CL91_White4.gif (added)
-
images/blog.gif (modified) (previous)
-
images/down-arrow.gif (modified) (previous)
-
images/littleheart.gif (modified) (previous)
-
images/twitter.gif (modified) (previous)
-
images/undefined.gif (modified) (previous)
-
js/commentluv.js (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
commentluv/trunk/commentluv-manager.php
r127333 r204345 24 24 </p> 25 25 <p> 26 <label for="infoback"><?php _e('Info panel background color',$this->plugin_domain);?></label><br> 27 <input type="text" size ="8" name="infoback" value="<?php echo stripslashes($infoback);?>"/> 28 <span style="background-color:<?php echo stripslashes($infoback);?>">....</span> 29 </p> 30 <p> 26 31 <input type="checkbox" name="cl_use_template" <?php echo $use_template;?>/> 27 32 <label for="cl_use_template"><?php _e('Use template insert to show badge and checkbox?',$this->plugin_domain);?> ( <?php cl_display_badge(); ?> )</label> … … 43 48 </table> <p></p> 44 49 <h3><?php _e('CommentLuv Member Area',$this->plugin_domain);?></h3> 45 <p><?php _e('If you register your site for free at <a href="http://comluv.com">ComLuv.com</a> you will be able to open up lots of features that are for members only like link tracking so you can see which of the comments you make on CommentLuv blogs are getting the last blog post clicked and the ability to send back more than just blog posts. You can even create your own WP2.7 blog there with commentluv pre-installed!.',$this->plugin_domain);?></p>50 <p><?php _e('If you register your site for free at <a href="http://comluv.com">ComLuv.com</a> you will be able to choose from your 10 last posts when you comment on other CommentLuv blogs. You can even add more urls and default links. .',$this->plugin_domain);?></p> 46 51 47 52 <h3><?php _e('Technical Settings',$this->plugin_domain);?></h3> -
commentluv/trunk/commentluv.php
r185785 r204345 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 45 Version: 2.7.66 6 6 Author: Andy Bailey 7 7 Author URI: http://fiddyp.co.uk/ … … 37 37 $this->plugin_url = trailingslashit ( WP_PLUGIN_URL . '/' . dirname ( plugin_basename ( __FILE__ ) ) ); 38 38 $this->api_url = 'http://api.comluv.com/cl_api/commentluvapi.php'; 39 //$this->api_url = 'http://firedwok.com/api/cl_api/commentluvapi.php'; 39 40 add_action ( 'admin_menu', array (&$this, 'admin_menu' ) ); 40 41 add_action ( 'template_redirect', array (&$this, 'commentluv_scripts' ) ); // template_redirect always called when page is displayed to user … … 96 97 wp_localize_script ( 'commentluv', 'cl_settings', array ('name' => $author_name, 'url' => $url_name, 'comment' => $comment_name, 'email' => $email_name, 'prepend' => $prepend, 'badge' => $badge, 97 98 '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 ) ); 99 'cl_version' => $this->cl_version, 'images' => $this->plugin_url . 'images/', 'api_url' => $this->api_url, 'refer' => $refer_page, 100 'infoback' => $infoback,'usetemplate'=>$use_template) ); 99 101 } 100 102 } … … 107 109 function get_options() { 108 110 // default values 109 $options = array ('comment_text' => '[name]´s last [type] ..[lastpost]', 'select_text' => 'choose a different post to show', 'default_on' => 'on', 'heart_tip' => 'on', 'use_template' => '', 'badge' => 'CL91x17-white2.gif', 'show_text' => 'CommentLuv Enabled', 'author_name' => 'author', 'url_name' => 'url', 'comment_name' => 'comment', 'email_name' => 'email', 'prepend' => '' );111 $options = array ('comment_text' => '[name]´s last [type] ..[lastpost]', 'select_text' => 'choose a different post to show', 'default_on' => 'on', 'heart_tip' => 'on', 'use_template' => '', 'badge' => 'CL91x17-white2.gif', 'show_text' => 'CommentLuv Enabled', 'author_name' => 'author', 'url_name' => 'url', 'comment_name' => 'comment', 'email_name' => 'email', 'prepend' => '', 'infoback' => 'pink' ); 110 112 // get saved options unless reset button was pressed 111 113 $saved = ''; … … 152 154 $options ['email_name'] = $_POST ['cl_email_name']; 153 155 $options ['use_template'] = $_POST['cl_use_template']; 156 $options ['infoback'] = htmlspecialchars($_POST['infoback']); 154 157 155 158 // check for errors … … 264 267 function cl_post($commentdata) { 265 268 if (isset ( $_POST ['cl_post'] ) && $_POST ['request_id'] != '' && is_numeric ( $_POST ['choice_id'] ) && isset ( $_POST ['cl_type'] )) { 269 if(!defined('LUVEDIT')){ 270 define("LUVEDIT",1); 271 } else { 272 // already been here so shoo! 273 return $commentdata; 274 } 266 275 // get values posted 267 276 $luvlink = $_POST ['cl_post']; -
commentluv/trunk/js/commentluv.js
r156739 r204345 69 69 $(document).click(heart_small); 70 70 function heart_big(){ 71 $("body").append('<span id="heart_tip_big" style="position:absolute; z-index: 101; background-color: pink; width: 62px;"><img src="' + cl_settings['images'] + 'loader.gif" alt="Loading" width="62" height="13" /></span>');71 $("body").append('<span id="heart_tip_big" style="position:absolute; z-index: 101; background-color: ' + cl_settings['infoback'] + '; width: 62px;"><img src="' + cl_settings['images'] + 'loader.gif" alt="Loading" width="62" height="13" /></span>'); 72 72 // find where to put left edge of info box (in case at right hand side of screen 73 73 //opera Netscape 6 Netscape 4x Mozilla … … 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&refer=" + cl_settings['refer'] + "&url=" + link + '&version='+ cl_settings['cl_version'] + '&callback=?';97 var url = cl_settings['api_url'] + "?type=info&refer=" + cl_settings['refer'] + '&version='+ cl_settings['cl_version'] + '&callback=?' + "&url=" + link ; 98 98 do_info(url); 99 99 } -
commentluv/trunk/readme.txt
r185785 r204345 5 5 Requires at least: 2.8 6 6 Tested up to: 2.9 7 Stable tag: 2.7.6 47 Stable tag: 2.7.66 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. … … 35 35 = Will this plugin work with Disqus/Intense Debate/js-kit? = 36 36 37 There is currently a version available for JS-Kit (Echo). 38 Intense Debate and Disqus may be suppported soon. 37 Intense Debate comments have a commentluv plugin built in. Just enable from your ID dashboard 39 38 40 39 = I am having a problem getting it to work = … … 48 47 49 48 == ChangeLog == 49 50 = 2.766 = 51 * Check if function has been called before to prevent two links being added. 52 * updated images (supplied by http://byteful.com) 53 54 = 2.765 = 55 * Hollys changes. Allow user choice of colour for the info panel background. 50 56 51 57 = 2.764 =
Note: See TracChangeset
for help on using the changeset viewer.