By NaviJan on vrijdag, 19 februari 2016
Posted in Moderator Crew
Replies 2
Likes 0
Views 1.5K
Votes 0
@REFZ en @Wouter K. Ik heb een andere YouTube BBC code geïnstalleerd. Nu hoef je niet meer de "s" binnen https te verwijderen. [hr]

YET ANOTHER YOUTUBE BBCODE TAG v3.9 By Dougiefresh -> Link to Mod

[hr] Introduction This modification adds a BBCode to the forum that shows a YouTube video in your post. These BBCode takes these forms:

[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 http://www.youtube.com/v/fA4cphzsjn8.
For YouTube Videos: [nobbc]fA4cphzsjn8 http://www.youtube.com/fA4cphzsjn8 http://www.youtube.com/embed/fA4cphzsjn8 http://www.youtube.com/embed?v=fA4cphzsjn8 http://www.youtube.com/embed?feature=player_embedded&v=fA4cphzsjn8 http://www.youtube.com/watch?v=fA4cphzsjn8 http://www.youtube.com/v/fA4cphzsjn8 http://www.youtube.com/e/fA4cphzsjn8 http://www.youtube.com/?v=fA4cphzsjn8 http://www.youtube.com/user/username#p/u/11/fA4cphzsjn8 http://www.youtube.com/sandalsResorts#p/c/54B8C800269D7C1B/0/fA4cphzsjn8 http://www.youtube.com/watch?feature=player_embedded&v=fA4cphzsjn8 http://www.youtube.com/?feature=player_embedded&v=fA4cphzsjn8[/nobbc] For YouTube PlayLists: [nobbc]PL55713C70BA91BD6E PLquckZj9TVRFKWqM6LJI4a_dgvN48jZGk http://www.youtube.com/e/PL55713C70BA91BD6E http://www.youtube.com/p/PL55713C70BA91BD6E http://www.youtube.com/embed/PL55713C70BA91BD6E http://www.youtube.com/embed?list=PL55713C70BA91BD6E http://www.youtube.com/embed?feature=player_embedded&list=PL55713C70BA91BD6E http://www.youtube.com/watch?v=OPf0YbXqDm0&list=PL55713C70BA91BD6E http://www.youtube.com/?list=PL55713C70BA91BD6E http://www.youtube.com/?feature=player_embedded&list=PL55713C70BA91BD6E https://www.youtube.com/embed/videoseries?list=PLquckZj9TVRFKWqM6LJI4a_dgvN48jZGk https://www.youtube.com/watch?v=Ni4ZclaiOtY&list=PLquckZj9TVRFKWqM6LJI4a_dgvN48jZGk[/nobbc]
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. Admin Settings This BBCode may be disabled by going into the Admin => Forum => Posts and Topics => Bulletin Board Code and unchecking the bbcodes you don't want to use.  You may also be uninstall this mod in order to disable it. Related Discussions o Adding option to stop mod from displaying YouTube video's as a video o Youtube I.D parsing for new URL formats o Need help with a Regular Expression for YouTube links.... Extra Credits Go Out To: o Sapozhnik for code assistance o karavan2 for providing code assistance o kelvincool for Regular Expression assistance Compatibility Notes This mod was tested on SMF 2.0.10, but should work on SMF 2.1 Beta 2, as well as SMF 2.0 and up.  SMF 1.x is not and will not be supported. Changelog The changelog has been removed and can be seen at XPtsp.com. License Copyright (c) 2015 - 2016, Douglas Orend All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@Wouter K. Je hoeft nu niet meer "moeilijk" te doen om de x en y variabele in te vullen. Staan nu standaard op 640x380  ;D En wordt netjes omgezet naar de 16:9 verhouding  En kijk het onderstaande filmpje even.... is leuk! [youtube]https://www.youtube.com/watch?v=JmvCpR45LKA[/youtube]
·
8 jaar geleden
·
0 Likes
·
0 Votes
·
0 Comments
·
Je hebt nu ook een BBC knop voor de code
·
8 jaar geleden
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post