Welcome Guest, Not a member yet? Register   Sign In
Allowing members to embed videos into their profiles
#1

[eluser]jbads[/eluser]
Hi, I would like to offer members of my site the ability to embed videos from places such as youtube, metacafe, revver etc. Therefore the files wont be hosted on my server, it'll just be a way for users to put their videos up and then embed them into their profiles.

If I give members the ability to insert the embed source code they get from (for example) Youtube into an input box, and put that into the database so when they load their page their videos are displayed, the question is:

What sort of checks will I need to make on the embedded code and what is the best way to make it safe until it is displayed on their profile page. I guess I will need to also check that it is a valid embed code somehow?

Does anyone have any thoughts on how best to safely offer this functionality to my members?

I have got this working on videos I have embedded but without any checks because (obviously) I can trust myself not to trash my own CI website.
#2

[eluser]Jamie Rumbelow[/eluser]
Check out my File Uploading Tutorial,
Then just generate the code yourself.

Or allow them to input a youtube ID, and generate the code yourself.




Theme © iAndrew 2016 - Forum software by © MyBB