Support » Plugin: Booster Extension » Correct the serious ERROR

  • ignasm

    (@ignasm)


    There is serious error in plugin: bad dislike calculation. Often votes from Like migrate to Dislike.
    Author do not respond.
    Everybody plugin user MUST FIX THIS ERROR HIMSELF.

    1. In WP panel on the left press Plugins>Plugin editor
    2. On the rigth side chose Booster Extension
    3. Edit file: booster-extension/inc/backend/twp-be-like-dislike.php
    4. in Line 74 you will find:

                            if( $dis_like_ips ){ 
    
                                $likes = $likes - 1;
                                $current_ip = booster_extension_get_ip_address();
                                $dis_like_ip_list = booster_remove_element( $dis_like_ips, $current_ip );
    
                                update_post_meta( $post_ID, 'twp_be_dislike_like_count', $likes );
                                update_post_meta( $post_ID, 'twp_be_ip_address_lists_dislike', $dis_like_ip_list );
    
                            }

    5. Correct 3 variables to Dislike

                            if( $dis_like_ips ){ 
    
                                $dislike_likes = $dislike_likes - 1;
                                $current_ip = booster_extension_get_ip_address();
                                $dis_like_ip_list = booster_remove_element( $dis_like_ips, $current_ip );
    
                                update_post_meta( $post_ID, 'twp_be_dislike_like_count', $dislike_likes );
                                update_post_meta( $post_ID, 'twp_be_ip_address_lists_dislike', $dis_like_ip_list );
    
                            }
  • You must be logged in to reply to this topic.