embed YouTube with BBcode

Discussion in 'Website discussion' started by LBmtb, Sep 22, 2006.

  1. LBmtb

    LBmtb good times

    Joined:
    Oct 27, 2004
    Messages:
    4,568
    Likes Received:
    12
    Trophy Points:
    38
    Occupation:
    software engineer
    Location:
    Long Beach
    BBcode is just a fancy name for the tags on the forum that let you do stuff like bold text, add images, links, etc.
    HTML:
    Examples: this makes stuff bold and this makes stuff italic
    STR now has the ability to embed youTube videos within posts using BBcode.

    Here's how:

    Youtube URLs always have v=xxxxx at the end. That stuff after the v= is what you want.

    For example, the youtube URL, http://youtube.com/watch?v=JFwCCL0Vh6U

    PHP:
    means you use [youtube]JFwCCL0Vh6U[/youtube]
    Here's what that code does . . .

    [youtube]JFwCCL0Vh6U[/youtube]

    Please use this feature sparingly. If the video is non-work friendly, remember to say so on the thread title by adding "NWF" or "not work friendly" to it.

    Enjoy :beer:
     
    Last edited by a moderator: Jun 10, 2007
  2. Pain Freak

    Pain Freak Dead or Alive

    Joined:
    Jan 16, 2005
    Messages:
    11,163
    Likes Received:
    0
    Trophy Points:
    36
    Occupation:
    Da Boss
    Location:
    Fontucky
    Home Page:
    A real "Ghost Rider" would be on a Turner, not a Harley, c'mon!
     
  3. dstepper

    dstepper (R.I.P.) Over the hill

    Joined:
    Feb 2, 2005
    Messages:
    12,683
    Likes Received:
    34
    Trophy Points:
    48
    Occupation:
    www.themostprogram.com owner
    Location:
    Laguna Beach
    Home Page:
    I have seen that guy before on the Kranked Videos and he was on a downhill bike.

    Oh ya...Jorge you are a geek!
     
  4. LBmtb

    LBmtb good times

    Joined:
    Oct 27, 2004
    Messages:
    4,568
    Likes Received:
    12
    Trophy Points:
    38
    Occupation:
    software engineer
    Location:
    Long Beach
    Thanks, Dean. :bang:
     
  5. Kid A

    Kid A now with 40% more bacon

    Joined:
    Jul 8, 2006
    Messages:
    6,532
    Likes Received:
    6
    Trophy Points:
    38
    Occupation:
    working 4 da man
    Location:
    O 2 da C
    how can you do the same with google video or putfile?
     
  6. LBmtb

    LBmtb good times

    Joined:
    Oct 27, 2004
    Messages:
    4,568
    Likes Received:
    12
    Trophy Points:
    38
    Occupation:
    software engineer
    Location:
    Long Beach
    Good question. I'll see if I can figure something out for google video. Putfile is probably a no go though.

    Alright Kid A, here ya go for google videos. Take the code after docid= in the google video URL and stick it in our googlevideo BBcode. Here's an example from the following URL:

    from
    PHP:
    http://video.google.com/videoplay?docid=-162891478515007486
    you'll use the following tag:
    PHP:
     [googlevideo]-162891478515007486[/googlevideo]
    That previous example:

    [googlevideo]-162891478515007486[/googlevideo]
     
    Last edited by a moderator: Jun 10, 2007
  7. Kid A

    Kid A now with 40% more bacon

    Joined:
    Jul 8, 2006
    Messages:
    6,532
    Likes Received:
    6
    Trophy Points:
    38
    Occupation:
    working 4 da man
    Location:
    O 2 da C
    test - old vid just to test if works

    [googlevideo]7858065233536757164[/googlevideo]

    just some old cr@p vid shot i shot with "added" animation

    Thanks George

    btw -
    just curious -what is "issue" with putfile.
    also seen the vid you use as example before many times...couldn't even imagine riding let alone wrecking at that speed
     
  8. LBmtb

    LBmtb good times

    Joined:
    Oct 27, 2004
    Messages:
    4,568
    Likes Received:
    12
    Trophy Points:
    38
    Occupation:
    software engineer
    Location:
    Long Beach
    I cant find what they use for their embed code. All the videos I checked on putfile have "Sorry Code Not Available Yet" where the embed code is supposed to be.
     
  9. CalEpic

    CalEpic member

    Joined:
    Feb 3, 2005
    Messages:
    7,721
    Likes Received:
    17
    Trophy Points:
    38
    Location:
    Laguna Niguel
    how about photobucket?
     
  10. Steven Jackson

    Steven Jackson My loop, my rules!

    Joined:
    Sep 23, 2005
    Messages:
    623
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Pizza Maker/Delivery Driver
    Location:
    Fullerton
    Home Page:
    I can llink through LiquidOps.com.
     
  11. royta

    royta New Member

    Joined:
    Feb 14, 2006
    Messages:
    494
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Electrician
    Location:
    Mountain Green, UT
    First it's Snakes on a Plane, and now Ghost Rider. Aren't the movie makers even trying anymore?
     
  12. ShinKen

    ShinKen STR BUB!!

    Joined:
    Aug 4, 2005
    Messages:
    3,903
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    D.I.L.L.I.G.A.F?

    why would they? dumm people still go see this junk ne-dumm way!!#-o it's easy money!!!:clap: :bang: just think of all the nice stuff they're buying w/your money!! muuhahahahhahahahaa!
     
  13. slowSSer

    slowSSer ali'i hua

    Joined:
    Feb 7, 2007
    Messages:
    2,010
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Project Scientist
    Location:
    You are where you is
    question: does the "youtube" spell out between the brackets need to be caps? or is there some recent glitch in the matrix?

    that was allmost the most legible post I've seen from you, bro
     
  14. LBmtb

    LBmtb good times

    Joined:
    Oct 27, 2004
    Messages:
    4,568
    Likes Received:
    12
    Trophy Points:
    38
    Occupation:
    software engineer
    Location:
    Long Beach
    I've always just done lowercase. I have noticed a few issues lately but for the most part it still works fine.
     
  15. davidB

    davidB Active Member

    Joined:
    Jul 14, 2007
    Messages:
    4,563
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Tustin
    bump

    any chance we can get Photobucket and Vimeo tags added :?:
     
  16. jeffgothro

    jeffgothro Cru Jones Stunt Double

    Joined:
    Nov 23, 2008
    Messages:
    251
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Oxnard, Ca
    Nope

    [youtube]01NHcTM5IA4&hl=en&fs=1[/youtube]

    Code:
    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/01NHcTM5IA4&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/01NHcTM5IA4&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
    Nope

    [youtube]01NHcTM5IA4&hl[/youtube]
     
  17. Zippo

    Zippo Pow Wow!

    Joined:
    Jan 8, 2008
    Messages:
    1,362
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Mulholland Drive
    yep - i copied your link and removed the &hl

    [youtube]01NHcTM5IA4[/youtube]
     
  18. jeffgothro

    jeffgothro Cru Jones Stunt Double

    Joined:
    Nov 23, 2008
    Messages:
    251
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Oxnard, Ca
    Ok...because I thought that was part of the URL. At least when you look at the example the OP posted.

    still doesnt work.

    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/_nDt6cr6lq0&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/_nDt6cr6lq0&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

    [youtube]nDt6cr6lq0[/youtube]

    ^^^^NO VIDEO CODE IS THERE - REMOVED THE &hl^^^^
     
  19. jeffgothro

    jeffgothro Cru Jones Stunt Double

    Joined:
    Nov 23, 2008
    Messages:
    251
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Oxnard, Ca
    still doesnt work.

    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/_nDt6cr6lq0&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/_nDt6cr6lq0&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

    [youtube]nDt6cr6lq0[/youtube]

    ^^^^NO VIDEO CODE IS THERE - REMOVED THE &hl^^^^
     
  20. JoeTruth

    JoeTruth Active Member

    Joined:
    May 29, 2007
    Messages:
    4,086
    Likes Received:
    1
    Trophy Points:
    36
    Location:
    Sierra Madre, CA
    Here you go...

    [youtube]_nDt6cr6lq0&hl=en&fs=1[/youtube]
     

Share This Page

Help keep STR alive, please click the donation button below