Relatively new to drupal and this module, i have searched everywhere- I want to know if there is a way to display the views of the video like a play count? on the actual node if possible. any help would be greatly appreciated

Comments

attheshow’s picture

I don't think we have a function built for this yet. It could be done pretty easily by looking at the {flashvideo} 'play_counter' value though.

smith1909’s picture

Thank you so much for your reply, I have spent the past 3 days trying to teach myself how to do this. would anyone be willing to point me in the right direction?

I have the paramaters for my sql database however I do not have access to the computer where the db is housed and only see the "location" as localhost

attheshow’s picture

Component: Miscellaneous » Code
Priority: Critical » Normal
Status: Active » Postponed

Well, you'd need to write a function that makes use of db_query (http://api.drupal.org/api/function/db_query/6) and asks for the value of the 'play_counter' field. You might look at the source code that already exists inside the FlashVideo module.