simo9900 simo9900 - 1 year ago 99
Ajax Question

Showing a preview of a youtube video when setting the link in comment php

I'm trying to develop in my website a preview of youtube link like facebook.

For example: If i set in comment a link of youtube video like, a preview of this video will be showed in comment.

How can i do this??


Answer Source

You have to replace the link or url with an Iframe

For you

you have to replace that text for -->

<iframe width="560" height="315" src="" frameborder="0" allowfullscreen></iframe>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download