Hi, I have a player set up on my download1 page. I also have a pre-download page (download0) I am trying to figure out how to count every video view/every view of download1 page as an actual download.
Because right now the downloads only count when you actually click the download button on the download1 page.
I have been messing around with it by adding an action to the form submit on my pre-download page similar to the one on the actual download button but I am having no luck.
Does anybody know how I can achieve this?
XFileSharing Pro - Video download count
Line 452 of index_dl.pm:
change to:
http://pastebin.com/raw.php?i=eXLPXZDz
Code: Select all
DownloadTrack($file) if $file->{video_code} && $c->{video_mod_no_download};
Code: Select all
DownloadTrack($file) if $file->{video_code}; #&& $c->{video_mod_no_download};
Line 452:
change to:
http://pastebin.com/raw.php?i=QqvkV85N
Basically the hash (#) means to skip the line. The DownloadTrack function is also used in download2 which is the common place however video views are counted if 1) video_code is true and 2) video_mod_no_download is true.
If either of these are false then video views are not counted until the user actually downloads the video through download2.
Code: Select all
DownloadTrack($file) if $file->{video_code} && $c->{video_mod_no_download};
Code: Select all
#DownloadTrack($file) if $file->{video_code} && $c->{video_mod_no_download};
Basically the hash (#) means to skip the line. The DownloadTrack function is also used in download2 which is the common place however video views are counted if 1) video_code is true and 2) video_mod_no_download is true.
If either of these are false then video views are not counted until the user actually downloads the video through download2.
so when I just want to count downloads after CREATE DOWNLOAD LINK on page 2 and not views I can copy paste the 2nd code? right?
will it also work when not offering direct downloads? so dl on download1 direct?
WITH #
will it also work when not offering direct downloads? so dl on download1 direct?
Code: Select all
#DownloadTrack($file) if $file->{video_code} && $c->{video_mod_no_download};
Ok so after I have edited the line to:
Each video view will add 1 download to the user that uploaded the video. Is it IP restricted? So only one view per IP within a certain amount of time?
Code: Select all
DownloadTrack($file) if $file->{video_code}; #&& $c->{video_mod_no_download};
if you provide some kind of incentives for video views, let's say $5 per 1000 views, the nginx mod + 100% complete mod is a must.
the video has to be viewed/downloaded completely for the download to be counted as 1.
without the mods, anybody reaching your download1 page will be counted as 1 download without actually viewing the videos.
the video has to be viewed/downloaded completely for the download to be counted as 1.
without the mods, anybody reaching your download1 page will be counted as 1 download without actually viewing the videos.