Embed YouTube! (sort of)



  • In markdown, you can really only put a YouTube link inside an embedded image.

    Use this code:

    [![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/YOUTUBE ID GOES HERE/0.jpg)](http://www.youtube.com/watch?v=YOUTUBE ID GOES HERE)

    A Youtube link like this:

    https://www.youtube.com/watch?v=SAtD582a6cw

    Looks like this:

    IMAGE ALT TEXT HERE

    Not a true embed, but at least it's something.



  • @Sophie Any chance of a button being added to the reply/new post screen to simplify posting, or will we need to remember the text format?



  • It already kind of exists. It's the image shortcut button plus the link button, which inserts the below code.

    [![alt text](image url)](link url)

    I would eventually like to do a real YouTube embed like we had on the vBulletin forum. When that happens, YouTube links will just be rendered as embedded videos.



  • So essentially you're embedding a link in an image? Hope you don't mind if I give it a test on this post.

    alt text

    EDIT: Interesting.



  • I liked the Dragoon storyline but I thought it was pretty weird when I got to Heavensward and the Azure Dragoon didn't know who I was



  • @Riles said in Embed YouTube! (sort of):

    I liked the Dragoon storyline but I thought it was pretty weird when I got to Heavensward and the Azure Dragoon didn't know who I was

    I know, right?

    I DID like that when Estinien said, "Well, there ARE two dragoons here." I'm like "gasp THE OTHER DRAGOON IS ME!"



  • YEAHHHHHHHHHHHHH lol

    I noticed that with Lady Yugiri too, I think I was a level 30 Ninja at the time and she said something like sensing some mudra ability in me and having potential. Those references to your own character they slide in are awesome



  • @Sophie How can I make the associated image appear? When I try this, I get a blank image.



  • @Sophie said in Embed YouTube! (sort of):

    In markdown, you can really only put a YouTube link inside an embedded image.

    Use this code:

    [![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/YOUTUBE ID GOES HERE/0.jpg)](http://www.youtube.com/watch?v=YOUTUBE ID GOES HERE)

    A Youtube link like this:

    https://www.youtube.com/watch?v=SAtD582a6cw

    Looks like this:

    (http://img.youtube.com/vi/SAtD582a6cw/0.jpg)](http://www.youtube.com/watch?v=SAtD582a6cw)

    @GalaxyCrisis I toyed with this a bit the other day to answer the same question. Don't know when Sophie will be back on because of the weekend, so I'll try to answer. I deleted the tags so it would show only the image and video links, but using the same sample video from the OP. by using the image link format "http://img.youtube.com/vi/video number for the linked video here/0.jpg" it will show the image linked in the youtube video.

    I tried to see if it would allow me to copy link location, but that only gave a link to the video. However, the format I typed above will work for posting the image associated on youtube.

    It's not exactly as easy as I'd wish, but hopefully we'll get a button soon to simplify it.



  • @pleco_breeder That explains a lot; I was pasting the entire URL in the "INSERT YOUTUBE ID HERE" spots, not just the part after the equal sign in the URL.



  • Yea, don't want to sound /condescension or anything, but this action you are suggesting was already possible back in January. Not entirely meriting a thread, but yes....

    'tis not be the same as real video, it is so...



  • @thegrandalliance Yes, but did you see anyone linking YouTube videos in this way on the forum prior to me making the thread?



  • Well, other than myself when I was messing with new forums, no, but...

    I don't see the utility in giving a static picture a hotlink. It first requires the user to be made aware that the image is a link, and that they click on it. On mobile especially, that basically means they would have to click on every picture.

    In the end, the need to open up an external site is the same. At least, if people see the youtube.com domain link in text, they know what it is. In theory, anyways. A simple picture link could pose a phishing risk, otherwise.

    For Example:

    Click this video below!

    ...Sent by our chinaman bot friend who likes to spam us, yet it takes u to a malware site. Or,

    Spohie! I need help! My player/app isn't playing! I made a video of my problem here:

    ...and then ur FUNicomputer is redirected to a malware site; FUNiforums gets hacked 2.0. So simple...


    In either case, I consider it an all or nothing proposition here; else, I fail to see the usefulness, and the potential for security issues, therefore. If anything, image-site linking should be disabled overall...

    No matter...



  • @thegrandalliance You have a point. Really, I just saw it in the Markdown documentation and thought it was neat. :/ I thought it might be nice to post a neat tip until we can get some more features added to NodeBB.

    If we start seeing phishing attempts using images, we'll address it at that time. Fortunately, our Chinese spam bots haven't been that sophisticated. They don't even post in English.

    @Riles said in Embed YouTube! (sort of):

    YEAHHHHHHHHHHHHH lol

    I noticed that with Lady Yugiri too, I think I was a level 30 Ninja at the time and she said something like sensing some mudra ability in me and having potential. Those references to your own character they slide in are awesome

    OMG I was wondering if that happened with her!


Log in to reply