Creating a video display ifram with a textarea field

More
10 years 6 months ago #47075 by jeffhoneyager
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&amp;autoplay=1&amp;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&amp;autoplay=1&amp;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.

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #47078 by ggppdk
Hello

why are you not using the videoshare field that is included in v2.2.0 r1901 BETA ?

it has in form preview and other options

user only needs to copy / paste the URL


please backup and try v2.2.0:

FLEXIcontent v2.2.0 r1901 BETA for J1.5

FLEXIcontent v2.2.0 r1901 BETA for J2.5/J3.x


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #47086 by jeffhoneyager
:oops:

Thank you for the most obvious solution!

Upgraded and in less than 45 seconds ... all is well, the sun is shining and the birds are singing.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.748 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline