Plugin Directory

Changeset 628179


Ignore:
Timestamp:
11/21/2012 04:06:22 PM (13 years ago)
Author:
siteheart
Message:

version 1.1.5

Location:
hypercomments/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • hypercomments/trunk/comments.php

    r600448 r628179  
    11<div id="HyperComments_Box">
    2 <?php if(!hc_searchbot_detect($_SERVER['HTTP_USER_AGENT'])):?>
    32    <?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>
    1313        </div>
     14        <?php endfor;?>
    1415    </div>
    15     <?php endfor;?>
    16 <?php endif;?>
    1716<!-- <p><?php echo 'HC version: '.HC_VERSION;?></p> -->
    1817</div>
     18<script type="text/javascript">
     19    document.getElementById('hc_full_comments').innerHTML = '';
     20</script>
  • hypercomments/trunk/hypercomments.php

    r622546 r628179  
    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.4
     6Version: 1.1.5
    77Author:  Alexandr Bazik, Dmitry Goncharov, Inna Goncharova
    88Author URI: http://hypercomments.com/
     
    1313define('HC_PLUGIN_URL', HC_CONTENT_URL . '/plugins/hypercomments');
    1414define('HC_XML_PATH',$_SERVER['DOCUMENT_ROOT'].'/wp-content/uploads');
    15 define('HC_VERSION', '1.1.4');
     15define('HC_VERSION', '1.1.5');
    1616if(HC_DEV == true){
    1717    define('HC_URL', 'http://dev.hypercomments.com');
     
    386386    global $user;
    387387
    388     if(!hc_searchbot_detect($_SERVER['HTTP_USER_AGENT'])){
    389388        $parse = parse_url($post->guid);
    390389        if(get_option('hc_root')){
     
    429428            }
    430429        }
    431     }else{
    432         $is_append = true;
    433     }
    434430    return $content;
    435431}
     
    476472}
    477473/**
    478  * Detect Search Bot
    479  * @param type $user_agent
    480  * @return boolean
    481  */
    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 /**
    499474 * Return all post comments
    500475 * @global type $wpdb
  • hypercomments/trunk/readme.txt

    r622894 r628179  
    66Requires at least: 2.8
    77Tested up to: 3.4.2
    8 Stable tag: 1.1.4
     8Stable tag: 1.1.5
    99
    1010The HyperComments technology replaces your WordPress comment system with your comments hosted and powered by HyperComments
     
    9595
    9696== Changelog ==
     97**1.1.5**
     98Improved the search engine optimization<br />
     99
    97100**1.1.4**
    98101modified embed widget<br />
Note: See TracChangeset for help on using the changeset viewer.