Changeset 628179
- Timestamp:
- 11/21/2012 04:06:22 PM (13 years ago)
- Location:
- hypercomments/trunk
- Files:
-
- 3 edited
-
comments.php (modified) (1 diff)
-
hypercomments.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hypercomments/trunk/comments.php
r600448 r628179 1 1 <div id="HyperComments_Box"> 2 <?php if(!hc_searchbot_detect($_SERVER['HTTP_USER_AGENT'])):?>3 2 <?php echo hc_show_script();?> 4 <?php else:?> 5 <?php $comments = hc_get_comments_post();?> 6 <?php for($i=0;$i<count($comments);$i++):?> 7 <div style='position:relative;padding:5px;font-size:12px;'> 8 <div style='position:absolute;'><?php echo get_avatar($comments[$i]->user_id)?></div> 9 <div style='margin-left:50px;'> 10 <div style='float:left;margin-right:5px;color:#3B5998;font-size: 11px;font-family: tahoma,verdana,arial,sans-serif;font-weight: bold;'><?php echo $comments[$i]->comment_author;?></div> 11 <div style='color: gray;font-size:10px;'><?php echo $comments[$i]->comment_date;?></div> 12 <div style='padding:5px;'><?php echo $comments[$i]->comment_content;?></div> 3 <div id="hc_full_comments"> 4 <?php $comments = hc_get_comments_post();?> 5 <?php for($i=0;$i<count($comments);$i++):?> 6 <div style='position:relative;padding:5px;font-size:12px;'> 7 <div style='position:absolute; width:36px'><?php echo get_avatar($comments[$i]->user_id)?></div> 8 <div style='margin-left:50px;'> 9 <div style='float:left;margin-right:5px;color:#3B5998;font-size: 11px;font-family: tahoma,verdana,arial,sans-serif;font-weight: bold;'><?php echo $comments[$i]->comment_author;?></div> 10 <div style='color: gray;font-size:10px;'><?php echo $comments[$i]->comment_date;?></div> 11 <div style='padding:5px;'><?php echo $comments[$i]->comment_content;?></div> 12 </div> 13 13 </div> 14 <?php endfor;?> 14 15 </div> 15 <?php endfor;?>16 <?php endif;?>17 16 <!-- <p><?php echo 'HC version: '.HC_VERSION;?></p> --> 18 17 </div> 18 <script type="text/javascript"> 19 document.getElementById('hc_full_comments').innerHTML = ''; 20 </script> -
hypercomments/trunk/hypercomments.php
r622546 r628179 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. 46 Version: 1.1.5 7 7 Author: Alexandr Bazik, Dmitry Goncharov, Inna Goncharova 8 8 Author URI: http://hypercomments.com/ … … 13 13 define('HC_PLUGIN_URL', HC_CONTENT_URL . '/plugins/hypercomments'); 14 14 define('HC_XML_PATH',$_SERVER['DOCUMENT_ROOT'].'/wp-content/uploads'); 15 define('HC_VERSION', '1.1. 4');15 define('HC_VERSION', '1.1.5'); 16 16 if(HC_DEV == true){ 17 17 define('HC_URL', 'http://dev.hypercomments.com'); … … 386 386 global $user; 387 387 388 if(!hc_searchbot_detect($_SERVER['HTTP_USER_AGENT'])){389 388 $parse = parse_url($post->guid); 390 389 if(get_option('hc_root')){ … … 429 428 } 430 429 } 431 }else{432 $is_append = true;433 }434 430 return $content; 435 431 } … … 476 472 } 477 473 /** 478 * Detect Search Bot479 * @param type $user_agent480 * @return boolean481 */482 function hc_searchbot_detect($user_agent)483 {484 $engines = array(485 'Aport','Google','msnbot','Rambler','Yahoo','AbachoBOT',486 'accoona','AcoiRobot','ASPSeek','CrocCrawler','Dumbot',487 'FAST-WebCrawler','GeonaBot','Gigabot','Lycos','MSRBOT',488 'Scooter','AltaVista','WebAlta','IDBot','eStyle','Mail.Ru',489 'Scrubby','Yandex','YaDirectBot'490 );491 foreach ($engines as $engine) {492 if(strstr(strtolower($user_agent), strtolower($engine))){493 return true;494 }495 }496 return false;497 }498 /**499 474 * Return all post comments 500 475 * @global type $wpdb -
hypercomments/trunk/readme.txt
r622894 r628179 6 6 Requires at least: 2.8 7 7 Tested up to: 3.4.2 8 Stable tag: 1.1. 48 Stable tag: 1.1.5 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.5** 98 Improved the search engine optimization<br /> 99 97 100 **1.1.4** 98 101 modified embed widget<br />
Note: See TracChangeset
for help on using the changeset viewer.