• Resolved sergejos

    (@sergejos)


    Hey guys,
    How can I remove the IP and Host from the ratings? I don’t want to save the both on my website. I can see them in the option Manage Ratings in the last column but I want that the IP and Host should not be detected and saved.
    How can I change it?

Viewing 1 replies (of 1 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Replace
    $rate_log = $wpdb->query( $wpdb->prepare( "INSERT INTO {$wpdb->ratings} VALUES (%d, %d, %s, %d, %d, %s, %s, %s, %d )", 0, $post_id, $post_title, $ratings_value[$rate-1], current_time('timestamp'), get_ipaddress(), @gethostbyaddr( get_ipaddress() ), $rate_user, $rate_userid ) ); on https://github.com/lesterchan/wp-postratings/blob/master/wp-postratings.php#L578

    with
    $rate_log = $wpdb->query( $wpdb->prepare( "INSERT INTO {$wpdb->ratings} VALUES (%d, %d, %s, %d, %d, %s, %s, %s, %d )", 0, $post_id, $post_title, $ratings_value[$rate-1], current_time('timestamp'), '', '', $rate_user, $rate_userid ) );

Viewing 1 replies (of 1 total)
  • The topic ‘Remove IP and Host from ratings’ is closed to new replies.