Store
Community Documentation

v3 Knowledgebase

Video Count Modification

I would like to call this a fix but this is not what phpfox had in mind. This modification will allow your site to count video hits from guests or anytime your site is refreshed. Most credit goes out to Purefan.

Create new plugin. Extentions>>Plugin>>Create New Plugin

Product: PhpFox
Module: Video
Title: new_video_count
Hook: video.service_video_getvideo
Active: Yes

Code:
PHP:
$this->database()->updateCounter('video''total_view''video_id'$aVideo['video_id']);