Answered: How to count all views on questions without limitation of ip, user etc. ?

Post date: 2020-02-21 20:10:34
Views: 142

if (qa_opt('do_count_q_views') && !$formrequested && !qa_is_http_post() && qa_is_human_probably() &&
    (!$question'views'] || (
        // if it has more than zero views, then it must be different IP & user & cookieid from the creator
        //(@inet_ntop($question'createip']) != qa_remote_ip_address() || !isset($question'createip'])) &&
        ($question'userid'] != $userid || !isset($question'userid'])) &&
        ($question'cookieid'] != $cookieid || !isset($question'cookieid']))
    ))
) {
    $qa_content'inc_views_postid'] = $questionid;
}

Please click Here to read the full story.
 
Other Top and Latest Questions:
Tesla slides 4%, Li Auto sinks 8% as EV makers slash prices amid fierce competition
Ex-JetBlue CEO Robin Hayes to run Airbus North America
Delta Air Lines gives staff another 5% raise, hikes starting wages to $19 an hour
Jim Cramer shares his thoughts on Tesla, Cisco Systems, Verizon, Prologis and Papa John's
Stocks making the biggest moves midday: Tesla, Verizon, Paramount, Coinbase and more
How to start a high-paying side hustle: 'It has to be something that you're actually passionate about,' says expert
China is still years behind the U.S. despite Huawei's breakthrough chips, Raimondo tells '60 Minutes'
Baby Reindeer: Season 1
Movie: Superman IV: The Quest for Peace
Foot Locker debuts 'store of the future' as it looks to win back Wall Street's confidence