View Full Version : Youtube like content locker

05-19-2012, 08:43 AM
Hi all. I'm new comer here and i have no idea to find the way how to create youtube like content locker. Is possible to lock / hide content for visitor until they liked video on youtube ? I'm very basic using javascript and i don't know how to start coding.

I would to thanks to all who answering my questions.

Regards :)

05-19-2012, 02:18 PM
First, your site visitors would have to allow your web application to access their youtube accounts. You can do this with the YouTube API: https://developers.google.com/youtube/2.0/developers_guide_php#AuthSub_for_Web_Applications

Then it's a matter of using the YouTube API to grab the logged in user's latest activity feed, and see if you can dig around in there and find if the user has liked/rated your video: https://developers.google.com/youtube/2.0/developers_guide_php#Activity_feeds

I don't know how far back in time the activity feeds go. You'll have to play around with the API and see if ti will do what you need it to do.

07-23-2012, 02:27 AM
cpagrip.com has an embedded video locker that supports youtube videos, and you can make money from them :thumbsup: