Topic: blog post view hit counter?

how to change this:

private static function hits($id, $hits) {
        if (Session::exists('hits'.$id) == false) {
            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?


Just place your php code inside of end's and you are ready to rock wink - themes, plugins and snippets for monstra cms

Need help? Login at your account at: -> You have a excellent support center at our website! wink

wormsunited's Website