Plugin Directory

Changeset 600448


Ignore:
Timestamp:
09/18/2012 12:27:33 PM (13 years ago)
Author:
siteheart
Message:
 
Location:
hypercomments/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • hypercomments/trunk/comments.php

    r567376 r600448  
    1515    <?php endfor;?>
    1616<?php endif;?>
     17<!-- <p><?php echo 'HC version: '.HC_VERSION;?></p> -->
    1718</div>
  • hypercomments/trunk/hypercomments.php

    r585811 r600448  
    44Plugin URI: http://hypercomments.com/
    55Description: HyperComments - New dimension of comments. Hypercomments technology allows commenting a specific word or a piece of text.
    6 Version: 1.1.0
     6Version: 1.1.1
    77Author:  Alexandr Bazik, Dmitry Goncharov, Inna Goncharova
    88Author URI: http://hypercomments.com/
    99*/
    1010define('HC_DEV',false);
    11 define('HC_URL', 'http://hypercomments.com');
    1211require_once(dirname(__FILE__) . '/export.php');
    1312define('HC_CONTENT_URL', get_option('siteurl') . '/wp-content');
    1413define('HC_PLUGIN_URL', HC_CONTENT_URL . '/plugins/hypercomments');
    1514define('HC_XML_PATH',$_SERVER['DOCUMENT_ROOT'].'/wp-content/uploads');
     15define('HC_VERSION', '1.1.1');
     16if(HC_DEV == true){
     17    define('HC_URL', 'http://dev.hypercomments.com');
     18}else{
     19    define('HC_URL', 'http://hypercomments.com');
     20}
    1621$is_append = false;
    1722
     
    113118                $time = $_POST['time'];
    114119                $signature = $_POST['signature'];
    115                
    116                 if((time() - $time) <= 60){                 
    117                     if(get_option('hc_secret_key')){                                                                 
     120                                             
     121                if(get_option('hc_secret_key')){                                                                 
    118122                         if($signature == md5((string)get_option('hc_secret_key').(string)$data.(string)$time)){
    119123                             $data_decode = json_decode($data);                                                               
     
    145149                                        }
    146150                                        $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();                                     
    149153                                     break;
    150154                                     case 'streamEditMessage':                                     
     
    153157                                         $commentarr['comment_ID'] = $comments_id; 
    154158                                         $commentarr['comment_content'] = $cmd->text;                                       
    155                                          wp_update_comment( $commentarr );
    156                                          http_response_code(200);                                            
     159                                         wp_update_comment( $commentarr );                                        
     160                                         exit();                                           
    157161                                     break;
    158162                                     case 'streamRemoveMessage':
    159163                                         $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();                                   
    162166                                     break;
    163167                                 }                               
    164168                             }
    165169                         }
    166                     }                 
    167                 }
     170                }                 
     171               
    168172            break;
    169173        }
     
    409413                })();
    410414                </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                   
    412422            }
    413423        }
     
    427437    if(is_user_logged_in() && get_option('hc_synch')){
    428438        $user = array(
    429             'nick'   => $current_user->user_nicename,
     439            'nick'   => $current_user->display_name,
    430440            'avatar' => hc_parse_avatar($current_user->ID, 36),
    431441            'id'     => $current_user->ID,
  • hypercomments/trunk/manage.php

    r585811 r600448  
    162162                 var iframe = jQueryHC('<iframe></iframe>');
    163163                 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');
    166166                 iframe.attr('frameborder','no');
    167167                 jQueryHC('.hc_admin').html(iframe);           
  • hypercomments/trunk/readme.txt

    r585811 r600448  
    44Donate link: http://hypercomments.com/
    55Tags: hyperComments, comments, threaded, email, notification, spam, avatars, community, profile, widget
    6 Requires at least: 1.1.0
    7 Tested up to: 1.1.0
    8 Stable tag: 1.1.0
     6Requires at least: 1.1.1
     7Tested up to: 1.1.1
     8Stable tag: 1.1.1
    99
    1010The HyperComments technology replaces your WordPress comment system with your comments hosted and powered by HyperComments
     
    9595
    9696== Changelog ==
     97**1.1.1**
     98
     99Improved synchronization of users<br />
     100Improved synchronization comments<br />
     101
    97102**1.1.0**
    98103
Note: See TracChangeset for help on using the changeset viewer.