DU Community Help
Related: About this forumIssue with youtube links
I am having an issue linking videos at a certain time. For instance,
https://www.youtube.com/watch?v=J711Qizp0JQ#t=796
when I try to link it, the time stamp is always cut off.
Further I can not embed youtube videos without it doing this:
" target="_blank">embed linked youtube videos without it doing this:
Am I doing something wrong, or is this a known issue? Or a new issue altogether?
Here is a screenshot so you can see if I am making any mistakes:
Thanks for any help.
Make7
(8,543 posts)There is no way to embed a YouTube video here to start at a specific time (that I have found), but you can create a link for it that will work here. If you take the normal YouTube video link URL and insert the time parameter in the query portion of the address instead of as an anchor, the DU software won't embed the video - when someone clicks on the link the video should start at the specified time on YouTube's website. For example:
[div class="excerpt" style="display:inline-block; margin-left:0.5em; margin-right:2px; border:1px solid #bfbfbf; border-radius:0.4615em; box-shadow:-1px -1px 3px #bfbfbf inset;"][font style="color:#000099;"]https://www.youtube.com/watch?v=J711Qizp0JQ#t=796[/font] (example copied URL from YouTube video)
[font style="color:#000099;"]https://www.youtube.com/watch?t=796&v=J711Qizp0JQ[/font] (example URL rearranged to make link here)
Which should give us this:
[div style="display:inline; word-wrap:break-word;"]https://www.youtube.com/watch?t=796&v=J711Qizp0JQ
You can also use minutes and seconds for the time value:
[div style="display:inline; word-wrap:break-word;"]https://www.youtube.com/watch?t=13m16s&v=J711Qizp0JQ
The trick to make a YouTube URL work in a [link] tag here is to insert the time parameter with a zero for the value (or an actual value if desired):
[div class="excerpt" style="display:inline-block; margin-left:0.5em; margin-right:2px; border:1px solid #bfbfbf; border-radius:0.4615em; box-shadow:-1px -1px 3px #bfbfbf inset;"][font style="color:#000099;"]https://www.youtube.com/watch?v=mIQToVqDMb8[/font] (example copied URL from YouTube video)
[font style="color:#000099;"][link:https://www.youtube.com/watch?t=0&v=mIQToVqDMb8|your text here][/font] (example text link code)
Coping that [link] code into a post should result in this:
your text here
[div style="width:100%; height:1.2em; border-bottom:1px solid #bbbbbb;"]
You're not doing anything wrong - you did what logically should work, but the embedding code here at DU3 does have some issues. When it embeds, it seems to only parse the actual video ID info and ignore everything else. And when it sees a YouTube URL in a [link] tag, it still tries to embed the video in an <iframe> - which is why you end up with the [font style="color:#000099; text-decoration:underline;"]" target="_blank">embed linked youtube videos[/font] nonsense.
LostOne4Ever
(9,289 posts)As always, thank you very much!