2
Contributors
3
Replies
10
Views
2 Years
Discussion Span
Last Post by SimonIoa
0

Can you elaborate on what you mean by "the string works" please? Do you mean that the $profileurl variable is having the video URL placed in it?

I'm pretty sure that isn't correct code for embedding YouTube URL's. Looking at the code that YouTube itself gives when you select the embed option, it's an iframe:

<iframe width="560" height="315" src="//www.youtube.com/embed/0aaAX_TYwl4" frameborder="0" allowfullscreen></iframe>

That would make your embed script something like:

<iframe width="560" height="315" src="<?php echo $profileurl;?>" frameborder="0" allowfullscreen></iframe>

You would need to change the way the video URL is stored in the database though to include the /embed/ part.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.