Topic: blog post view hit counter?

how to change this:

private static function hits($id, $hits) {
        if (Session::exists('hits'.$id) == false) {
            $hits++;
            if(News::$news->updateWhere('[id='.$id.']', array('hits' => $hits))) {
                Session::set('hits'.$id, 1);
            }
        }

        return $hits;
    }

to make blog post view hit counter?
the above code is from kanekt news plugin

Re: blog post view hit counter?

@legmet

Just place your php code inside of <?php tag and before ?> end's and you are ready to rock wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink