Soitenly
Welcome, Guest. Please login or register.

Author Topic: Embedding videos on the forum  (Read 108 times)

0 Members and 1 Guest are viewing this topic.

Offline Dunrobin

  • (Rob)
  • Administrator
  • Chowderhead
  • ******
  • Posts: 3,884
  • Gender: Male
  • Webmaster
    • View Profile
Embedding videos on the forum
« on: August 19, 2017, 01:09:30 PM »
  • Publish
  • I just installed a new mod to make it easy to embed YouTube videos again.  Let's see if it works:



    Yep!  [cool]

    You'll see three new buttons on the right side of the toolbar when making a post.  (See attached image.)

    These BBCode takes these forms:

    Code: [Select]
    [youtube]{youtube link}[/youtube]
    [youtube width=x height=y]{youtube link}[/youtube]
    [yt]{youtube ID}[/yt]
    [yt {parameters}]{youtube ID}[/yt]
    [yt_user]{username}[/yt_user]
    [yt_user {parameters}]{username}[/yt_user]
    [yt_search]{search query}[/yt_search]
    [yt_search {parameters}]{search query}[/yt_search]

    where width and height is specified by x and y.  If width and height aren't specified, width is 100% of the post display area and height in a 16:9 ratio to the width.

    The yt_user bbcode will show videos by the specified YouTube username.

    The yt_search bbcode will show videos matching the provided search phrase.

    This mod should be able to display a valid YouTube video when passing URLs.  For example, all of the following will display the YouTube video at
    Code: [Select]
    http://www.youtube.com/v/fA4cphzsjn8.

    For YouTube Videos:
    Code: [Select]
    http://www.youtube.com/fA4cphzsjn8
    [youtube]http://www.youtube.com/embed/fA4cphzsjn8[/youtube]
    [youtube]http://www.youtube.com/embed?v=fA4cphzsjn8[/youtube]
    [youtube]http://www.youtube.com/embed?feature=player_embedded&v=fA4cphzsjn8[/youtube]
    [youtube]http://www.youtube.com/watch?v=fA4cphzsjn8[/youtube]
    [youtube]http://www.youtube.com/v/fA4cphzsjn8[/youtube]
    [youtube]http://www.youtube.com/e/fA4cphzsjn8[/youtube]
    [youtube]http://www.youtube.com/?v=fA4cphzsjn8[/youtube]
    http://www.youtube.com/user/username#p/u/11/fA4cphzsjn8
    http://www.youtube.com/sandalsResorts#p/c/54B8C800269D7C1B/0/fA4cphzsjn8
    [youtube]http://www.youtube.com/watch?feature=player_embedded&v=fA4cphzsjn8[/youtube]
    [youtube]http://www.youtube.com/?feature=player_embedded&v=fA4cphzsjn8[/youtube]
    [/quote]

    For YouTube PlayLists:
    [code]PL55713C70BA91BD6E
    PLquckZj9TVRFKWqM6LJI4a_dgvN48jZGk
    [youtube]http://www.youtube.com/e/PL55713C70BA91BD6E[/youtube]
    [youtube]http://www.youtube.com/p/PL55713C70BA91BD6E[/youtube]
    [youtube]http://www.youtube.com/embed/PL55713C70BA91BD6E[/youtube]
    [youtube]http://www.youtube.com/embed?list=PL55713C70BA91BD6E[/youtube]
    [youtube]http://www.youtube.com/embed?feature=player_embedded&list=PL55713C70BA91BD6E[/youtube]
    [youtube]http://www.youtube.com/watch?v=OPf0YbXqDm0&list=PL55713C70BA91BD6E[/youtube]
    [youtube]http://www.youtube.com/?list=PL55713C70BA91BD6E[/youtube]
    [youtube]http://www.youtube.com/?feature=player_embedded&list=PL55713C70BA91BD6E[/youtube]
    [youtube]https://www.youtube.com/embed/videoseries?list=PLquckZj9TVRFKWqM6LJI4a_dgvN48jZGk[/youtube]
    [youtube]https://www.youtube.com/watch?v=Ni4ZclaiOtY&list=PLquckZj9TVRFKWqM6LJI4a_dgvN48jZGk[/youtube]
    Substituting http://youtube.com, http://www.youtube-nocookies.com, http://youtu.be, and http://www.youtu.be also works.  https:// works instead of http://.  Please note any other parameters specified in the URL are ignored.

    Optional parameters and values for all YouTube bbcodes are:
    o width = Specifies the width of the iframe area.
    o height = Specifies the height of the iframe area.
    o start = Specifies how far into the video to start at.  Valid formats: "Seconds" or "Minutes:Seconds"
    o end = Specifies how far into the video to stop at.  Valid formats: "Seconds" or "Minutes:Seconds"
    o autoplay = 1, yes, on or true
    o color = red or white
    o theme = dark or light
    o loop = 1, yes, on or true
    o controls = 0, no, off, hide or false
    o showinfo = 0, no, off, hide or false
    o privacy = 1, yes, on or true

    Profile Settings
    There is a new option under Profile => Look and Layout called Show YouTube videos as a link.  Checking this box makes the mod create links instead of embedded videos in your post.


    Offline Shemp_Diesel

    • Bunionhead
    • ******
    • Posts: 2,235
    • Gender: Male
      • View Profile
    Re: Embedding videos on the forum
    « Reply #1 on: August 19, 2017, 01:31:16 PM »
  • Publish
  • Just testing to see if it works...




    Now you ask me if I believe a man can become a wolf. Well, if you mean can he take on the physical characteristics of an animal, no, it's fantastic. However, I do believe that most anything can happen to a man in his own mind.

     


    Facebook Comments