ANyway to embed youtube videos?

Discussion in 'Site Help and Suggestions' started by madhatter256, Nov 27, 2007.

  1. madhatter256

    madhatter256 Illustrious Member

    Joined:
    Mar 13, 2004
    Messages:
    6,578
    Likes Received:
    4
    Now, I'm not sure if this is php or vbscript.

    Anyway, is there anyway to have the capability to embed youtube videos into posts, rather than url links?

    Another website I go to has it where you insert the youtube video like this:

    [yt]8rGFfO5fUvE[/yt]

    That number is the value at the end of the URL when looking at a youtube video.

    Can something like this be done easily? Lots of forums are implementing this and I think it's pretty cool.
     
  2. mairsil

    mairsil Officer at Arms

    Joined:
    Apr 20, 2005
    Messages:
    3,425
    Likes Received:
    153
    I'm sure that you could request it for the site overhaul.
     
  3. ASSEMbler

    ASSEMbler Administrator Staff Member

    Joined:
    Mar 13, 2004
    Messages:
    19,394
    Likes Received:
    995
    I can't allow html embedding, as it would allow hijacking.
     
  4. z_killemall

    z_killemall Familiar Face

    Joined:
    Dec 4, 2006
    Messages:
    1,116
    Likes Received:
    6
    I've seen lots of mods for almost every forum system (vB included) that let you embed youtube videos in posts. Anyway, if I'm right ASSEMbler said that with the vBulletin version the forum has now, he couldn't apply any mods... Maybe it would be a good idea in some time, when the new version is working and all necessary things are done.
     
  5. ASSEMbler

    ASSEMbler Administrator Staff Member

    Joined:
    Mar 13, 2004
    Messages:
    19,394
    Likes Received:
    995
    I could apply mods, but why risk losing EVERYTHING over the ability to post a vid or two. The User submitted news ares is able to handle youtube videos.

    But that was the only area.

    If it's news, or newsworthy, use the user submitted news area for youtube videos.
     
  6. retro

    retro Resigned from mod duty 15 March 2018

    Joined:
    Mar 13, 2004
    Messages:
    10,354
    Likes Received:
    822
    Technically speaking, you could create a mod that uses a new tag, e.g. [youtube]. The button could ask not for the link, but the ID. you'd then end up with something like:

    [youtube]dMH0bHeiRNg[/youtube]

    The mod then picks up on the tag, and embeds the video. This way, the item would be embedded by the mod, not the user... and it would have to be a youtube video.

    In fact, this is rasily doable with vBulletin's Add New BB Code feature.

    In the Admin Control Panel...

    Custom BB Codes > Add New BB Code

    Title: YouTube
    Tag: youtube
    Replacement:

    Code:
    <object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/{param}&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{param}&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
    In fact, that code could probably be tidied up a little - that's the standard link they provide. It could probably even be simplified to...

    Code:
    <embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="355"></embed>
     
  7. JamesMichael

    JamesMichael Light Hearted Drunk

    Joined:
    Jan 23, 2007
    Messages:
    1,580
    Likes Received:
    23
    I know a lot of sites use this but I don't see the problem in just posting the link in the post. Also embeding youtube links makes it longer to load the page I believe
     
  8. z_killemall

    z_killemall Familiar Face

    Joined:
    Dec 4, 2006
    Messages:
    1,116
    Likes Received:
    6
    Not really, the video doesn't start loading until you press the Play button.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page