NHL Video BBCode

Started by dougiefresh, May 31, 2015, 10:52:30 PM

Previous topic - Next topic

dougiefresh

Link to Mod



NHL VIDEO BBCODE v1.13
By Dougiefresh -> Link to Mod



Introduction
This modification adds a BBCodes to watch NHL videos.

The two BBCodes takes these forms:

[nhl]{NHL video URL}[/nhl]
[nhl width=x height=x]{NHL video URL}[/nhl]

where {NHL video URL} is the NHL video URL and the width and height parameters being optional.  If the width and height aren't specified, the video is displayed at 100% of the display post.  Please note that width and height specify the maximum size that the video may take up on the screen.

Admin Settings
The default width and height parameters can be specified in the Admin -> Configuration -> Modification Settings area.

Compatibility Notes
This mod was tested on SMF 2.0.9, 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.

This mod should be installed after Tapatalk mod, if you want to use it with Tapatalk.

Changelog
The changelog can be viewed at XPtsp.com.

License
Copyright (c) 2015 - 2018, 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.

dougiefresh

Uploaded v1.1 - July 1st, 2015
o Modified to show nothing if no URL is specified between the opening & closing tag.

dougiefresh

Uploaded v1.2 - July 18th, 2015
o Added responsive video display elements to this mod.
o When specifying width and height parameters, they are now treated as maximum display size.
o Changed default width and height from 640x400 to 100% of post display area.

dougiefresh

#3
Uploaded v1.3 - August 8th, 2015
o Fixed issue where CSS file was not being loaded.
o Removed support for SMF 2.1 Beta 1
o Added support for SMF 2.1 Beta 2

dougiefresh

#4
Uploaded v1.4 - August 12th, 2015
o Added settings to allow admin to set default size of the YouTube video.
o Altered code to use new default size settings when width and/or height isn't specified.
o Added "frameborder" parameter to the bbcode.

dougiefresh

Uploaded v1.5 - October 2nd, 2015
o Modified validation function to check to make sure URL is actually a NHL video URL.
o Added string to indicate invalid NHL URL was used when (duh) invalid NHL URL is used.
o Added code to auto-embed links to NHL videos automatically.
o Added code to remove auto-embedded NHL videos from within code tags.
o Fixed language strings so that the text shows up under Modification Settings area.

dougiefresh

Uploaded v1.6 - October 3rd, 2015
o SMF 2.1: Fixed installer so that auto-embed is added without producing error.

dougiefresh

Uploaded v1.7 - November 30th, 2015
o Fixed auto-embed function so that it only embeds URLs without tags around it.
o Modified auto-embed function for use as a hook with SMF 2.1.

dougiefresh

Uploaded v1.8 - March 7th, 2016
o Modified auto-embed code so that NHL URLs in signature are embedded as [url]{link}[/url].

dougiefresh

Uploaded v1.9 - July 16th, 2017
o Added ability for user to full-screen the video.

dougiefresh

Uploaded v1.10 - December 8th, 2017
o Added URL embedding code for the Tapatalk mod.

-Rock Lee-

I am not a big fan of the NHL, although here it is not so seen ha ha and as usual I leave you the translation into Latin Spanish


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

dougiefresh

Uploaded v1.11 - December 15th, 2017
o Added Spanish Latin translation, courtsey of Rock Lee!




@Rock Lee:  Thank you for the translation!  It's been included in this version!

dougiefresh

Uploaded v1.12 - March 4th, 2018
o Fixed an issue that prevents BBC manager from showing bbcodes.

dougiefresh

Uploaded v1.13 - October 22nd, 2018
o No functionality change.
o Updated documentation to point to new website.

Advertisement: