Changeset 561105
- Timestamp:
- 06/20/2012 01:47:58 PM (14 years ago)
- Location:
- hypercomments/trunk
- Files:
-
- 2 edited
-
hypercomments.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hypercomments/trunk/hypercomments.php
r535016 r561105 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.0. 66 Version: 1.0.7 7 7 Author: Alexandr Bazik, Dmitry Goncharov, Inna Goncharova 8 8 Author URI: http://hypercomments.com/ … … 367 367 368 368 $wid = '<div id="hypercomments_widget"></div> 369 <script type="text/javascript"> 369 <script type="text/javascript"> 370 370 var _hcp = _hcp || {};_hcp.widget_id = '.get_option('hc_wid').';_hcp.widget = "Stream";_hcp.platform="wordpress"; 371 371 _hcp.language = "'.hc_get_language().'";_hcp.xid = "'.$url.'";'.hc_get_auth().' … … 392 392 $user = array( 393 393 'nick' => $current_user->user_nicename, 394 'avatar' => '',394 'avatar' => hc_parse_avatar($current_user->ID, 36), 395 395 'id' => $current_user->ID, 396 396 'email' => $current_user->user_email … … 407 407 return $hcp; 408 408 } 409 ?> 409 /** 410 * Get avatar path 411 * @param type $email 412 * @return string 413 */ 414 function 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 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.0. 67 Tested up to: 1.0. 68 Stable tag: 1.0. 66 Requires at least: 1.0.7 7 Tested up to: 1.0.7 8 Stable tag: 1.0.7 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.0.7** 98 99 Avatar sync added 100 97 101 **1.0.6** 98 102
Note: See TracChangeset
for help on using the changeset viewer.