Plugin Directory

Changeset 561105


Ignore:
Timestamp:
06/20/2012 01:47:58 PM (14 years ago)
Author:
siteheart
Message:
 
Location:
hypercomments/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • hypercomments/trunk/hypercomments.php

    r535016 r561105  
    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.0.6
     6Version: 1.0.7
    77Author:  Alexandr Bazik, Dmitry Goncharov, Inna Goncharova
    88Author URI: http://hypercomments.com/
     
    367367         
    368368           $wid = '<div id="hypercomments_widget"></div>
    369            <script type="text/javascript">
     369           <script type="text/javascript">         
    370370           var _hcp = _hcp || {};_hcp.widget_id = '.get_option('hc_wid').';_hcp.widget = "Stream";_hcp.platform="wordpress";
    371371           _hcp.language = "'.hc_get_language().'";_hcp.xid = "'.$url.'";'.hc_get_auth().'         
     
    392392         $user = array(
    393393                'nick'   => $current_user->user_nicename,
    394                 'avatar' => '',
     394                'avatar' => hc_parse_avatar($current_user->ID, 36),
    395395                'id'     => $current_user->ID,
    396396                'email'  => $current_user->user_email
     
    407407    return $hcp;
    408408}
    409 ?>
     409/**
     410 * Get avatar path
     411 * @param type $email
     412 * @return string
     413 */
     414function hc_parse_avatar($email){
     415    $html_avatar = get_avatar($email);
     416    preg_match("/src=(\'|\")(.*)(\'|\")/Uis", $html_avatar, $matches);
     417    $avatar_src = substr(trim($matches[0]), 5, strlen($matches[0]) - 6);
     418    if(strpos($avatar_src, 'http') === false)
     419    {
     420        $avatar_src = get_option('siteurl').$avatar_src;
     421    }
     422    return $avatar_src;
     423}
     424?>
  • hypercomments/trunk/readme.txt

    r535016 r561105  
    44Donate link: http://hypercomments.com/
    55Tags: hyperComments, comments, threaded, email, notification, spam, avatars, community, profile, widget
    6 Requires at least: 1.0.6
    7 Tested up to: 1.0.6
    8 Stable tag: 1.0.6
     6Requires at least: 1.0.7
     7Tested up to: 1.0.7
     8Stable tag: 1.0.7
    99
    1010The HyperComments technology replaces your WordPress comment system with your comments hosted and powered by HyperComments
     
    9595
    9696== Changelog ==
     97**1.0.7**
     98
     99Avatar sync added
     100
    97101**1.0.6**
    98102
Note: See TracChangeset for help on using the changeset viewer.