XFileSharing Pro - View Counter

Message
Author
200299
Posts: 28
Joined: Feb 17, 2011 5:04 pm

View Counter

#1 Postby 200299 » Apr 14, 2011 9:04 pm

Hi
do not know how to insert a script counter view, I would like to be displayed on any video views counter. Of course, different for each video. I'd pay-per-view video as a script at videobb flash and other scripts.
Thanks to all

ufkabakan
Posts: 332
Joined: Apr 13, 2011 9:37 pm

#2 Postby ufkabakan » Apr 16, 2011 7:35 am

Maybe u can see with Admin account, in files section. "DL" row say ur download count. Maybe its same for video plays.

hellojohnatan
Posts: 2
Joined: Apr 15, 2011 11:52 am

Re: View Counter

#3 Postby hellojohnatan » May 10, 2011 10:13 am

200299 wrote:Hi
do not know how to insert a view, I would like to be displayed on any video views counter. Of course, different for each video. I'd pay-per-view video as a script at videobb flash and other scripts.
Thanks to all
mb download by http://innovativetechnologyconcepts.com or try this script:

PHP Code:

Code: Select all

<?php 
    $file = "uvcounter.txt"; 
    unset($h); 
    $f = fopen($file, "r+"); 
    $h = fread($f, filesize($file)); 
    fclose($f); 
    if (!$mevisit) { 
    $h++; 
    $f = fopen($file, "w+"); 
    fwrite($f, $h); 
    fclose($f); 
    @setcookie("mevisit","yes",time()+31536000); 
    } 
    $file = "vcounter.txt"; 
    unset($h); 
    $f = fopen($file, "r+"); 
    $h = fread($f, filesize($file)); 
    fclose($f); 
    $h++; 
    $f = fopen($file, "w+"); 
    fwrite($f, $h); 
    fclose($f); 
?>

nyan
Posts: 163
Joined: Oct 28, 2010 8:01 pm

#4 Postby nyan » May 10, 2011 11:47 am

Hello we are in a perl forum here.