Changeset 600448
- Timestamp:
- 09/18/2012 12:27:33 PM (13 years ago)
- Location:
- hypercomments/trunk
- Files:
-
- 4 edited
-
comments.php (modified) (1 diff)
-
hypercomments.php (modified) (6 diffs)
-
manage.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hypercomments/trunk/comments.php
r567376 r600448 15 15 <?php endfor;?> 16 16 <?php endif;?> 17 <!-- <p><?php echo 'HC version: '.HC_VERSION;?></p> --> 17 18 </div> -
hypercomments/trunk/hypercomments.php
r585811 r600448 4 4 Plugin URI: http://hypercomments.com/ 5 5 Description: HyperComments - New dimension of comments. Hypercomments technology allows commenting a specific word or a piece of text. 6 Version: 1.1. 06 Version: 1.1.1 7 7 Author: Alexandr Bazik, Dmitry Goncharov, Inna Goncharova 8 8 Author URI: http://hypercomments.com/ 9 9 */ 10 10 define('HC_DEV',false); 11 define('HC_URL', 'http://hypercomments.com');12 11 require_once(dirname(__FILE__) . '/export.php'); 13 12 define('HC_CONTENT_URL', get_option('siteurl') . '/wp-content'); 14 13 define('HC_PLUGIN_URL', HC_CONTENT_URL . '/plugins/hypercomments'); 15 14 define('HC_XML_PATH',$_SERVER['DOCUMENT_ROOT'].'/wp-content/uploads'); 15 define('HC_VERSION', '1.1.1'); 16 if(HC_DEV == true){ 17 define('HC_URL', 'http://dev.hypercomments.com'); 18 }else{ 19 define('HC_URL', 'http://hypercomments.com'); 20 } 16 21 $is_append = false; 17 22 … … 113 118 $time = $_POST['time']; 114 119 $signature = $_POST['signature']; 115 116 if((time() - $time) <= 60){ 117 if(get_option('hc_secret_key')){ 120 121 if(get_option('hc_secret_key')){ 118 122 if($signature == md5((string)get_option('hc_secret_key').(string)$data.(string)$time)){ 119 123 $data_decode = json_decode($data); … … 145 149 } 146 150 $comments_id = wp_insert_comment($data); 147 update_comment_meta($comments_id,'hc_comment_id',$cmd->id); 148 http_response_code(200);151 update_comment_meta($comments_id,'hc_comment_id',$cmd->id); 152 exit(); 149 153 break; 150 154 case 'streamEditMessage': … … 153 157 $commentarr['comment_ID'] = $comments_id; 154 158 $commentarr['comment_content'] = $cmd->text; 155 wp_update_comment( $commentarr ); 156 http_response_code(200);159 wp_update_comment( $commentarr ); 160 exit(); 157 161 break; 158 162 case 'streamRemoveMessage': 159 163 $comments_id = $wpdb->get_var($wpdb->prepare( "SELECT comment_id FROM $wpdb->commentmeta WHERE meta_key = 'hc_comment_id' AND meta_value = %s LIMIT 1", $cmd->id)); 160 wp_delete_comment ($comments_id); 161 http_response_code(200);164 wp_delete_comment ($comments_id); 165 exit(); 162 166 break; 163 167 } 164 168 } 165 169 } 166 }167 }170 } 171 168 172 break; 169 173 } … … 409 413 })(); 410 414 </script>'; 411 $content = $content.$wid; 415 if(HC_DEV == true){ 416 $dev = '<script type="text/javascript">HCDeveloper=1</script>'; 417 $content = $content.$dev.$wid; 418 }else{ 419 $content = $content.$wid; 420 } 421 412 422 } 413 423 } … … 427 437 if(is_user_logged_in() && get_option('hc_synch')){ 428 438 $user = array( 429 'nick' => $current_user-> user_nicename,439 'nick' => $current_user->display_name, 430 440 'avatar' => hc_parse_avatar($current_user->ID, 36), 431 441 'id' => $current_user->ID, -
hypercomments/trunk/manage.php
r585811 r600448 162 162 var iframe = jQueryHC('<iframe></iframe>'); 163 163 iframe.attr('src','<?php echo HC_URL;?>/wordpress?action=settings&service=wordpress&wid=<?php echo get_option('hc_wid')?>&lang=<?php echo $lang;?>&time=<?php echo time();?>'); 164 iframe.attr('style','width: 100%;display: inline-block;height: 900px;overflow-x: hidden;overflow-y: hidden;"');165 iframe.attr('scrolling',' no');164 iframe.attr('style','width: 100%;display: inline-block;height: 3000px;overflow-x: hidden;overflow-y: hidden;"'); 165 iframe.attr('scrolling','auto'); 166 166 iframe.attr('frameborder','no'); 167 167 jQueryHC('.hc_admin').html(iframe); -
hypercomments/trunk/readme.txt
r585811 r600448 4 4 Donate link: http://hypercomments.com/ 5 5 Tags: hyperComments, comments, threaded, email, notification, spam, avatars, community, profile, widget 6 Requires at least: 1.1. 07 Tested up to: 1.1. 08 Stable tag: 1.1. 06 Requires at least: 1.1.1 7 Tested up to: 1.1.1 8 Stable tag: 1.1.1 9 9 10 10 The HyperComments technology replaces your WordPress comment system with your comments hosted and powered by HyperComments … … 95 95 96 96 == Changelog == 97 **1.1.1** 98 99 Improved synchronization of users<br /> 100 Improved synchronization comments<br /> 101 97 102 **1.1.0** 98 103
Note: See TracChangeset
for help on using the changeset viewer.