I would like people to submit an YouTube video.
I tried the following, but it did not work. What is not so important is finding out what I did wrong, but how to accomplish the goal. GOAL: a user enters a YouTube share URL as a field, with all the other article's descriptions, tags, and category info. Then when the item is displayed, it shows the video.
What I tried:
From the submission in a textarea field.
For example:
I want the person to enter: QV7dDSgbaQ0
This comes from YouTube's Share URL:
Using the "Opening Text for Field" and the "Closing Text for Field" The resulting HTML needs to be:
Code:
<div><iframe src="//www.youtube.com/embed/QV7dDSgbaQ0?rel=0&autoplay=1&wmode=opaque" frameborder="0" width="425" height="350" allowfullscreen="true" style="vertical-align: middle; display: block; margin-left: auto; margin-right: auto;"></iframe></div>
I placed this in the "Opening Text"
Code:
<div><iframe src="//www.youtube.com/embed/
And in the "Closting Text" is
Code:
?rel=0&autoplay=1&wmode=opaque" frameborder="0" width="425" height="350" allowfullscreen="true" style="vertical-align: middle; display: block; margin-left: auto; margin-right: auto;"></iframe></div>
When an item is created and published. The display is a completely white screen.