cout views

Seek help running and customizing Nuevoplayer Please do not post bug reports, or feature requests here.

cout views

Postby marco ferreira » Mon Nov 16, 2009 12:58 am

i was trying to make embed stats or econfig count a view for the video if a embed was played but i was unable to do it, is there a way to make nuevoplayer count one more view when a embed is played (not only displayed, user must click play). i know it will be a bit heavy for mysql server but i have a good server and i would like to try it
marco ferreira
 
Posts: 2
Joined: Mon Nov 16, 2009 12:55 am

Re: cout views

Postby dargre » Fri Nov 20, 2009 8:27 am

Man this is simple clipshare mysql call:
Code: Select all
mysql_query("UPDATE video set viewnumber=viewnumber+1 WHERE VID='".mysql_real_escape_string($row['VID'])."'");

Be careful with copy&paste. It must be 1 line.

Put it after: $row=mysql_fetch_array($video);
Thank you,
Nuevolab Team
dargre
 
Posts: 299
Joined: Mon Sep 07, 2009 3:47 am

Re: cout views

Postby marco ferreira » Wed Dec 02, 2009 10:41 pm

i knew the sql to do it i just could not find where to put it so it counts a view only when the video is played, i appreciate your help but putting it here you said counts a view everytime the embed is displayed and i wanted to count a view only when the user clicks play on the embed, is it possible?


Last bumped by marco ferreira on Wed Dec 02, 2009 10:41 pm.
marco ferreira
 
Posts: 2
Joined: Mon Nov 16, 2009 12:55 am


Return to Troubleshooting & 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 0 guests

cron