Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: dougiefresh on November 10, 2018, 09:28:42 PM

Title: Embed DailyMotion Video
Post by: dougiefresh on November 10, 2018, 09:28:42 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=4195)


EMBED DAILYMOTION VIDEO BBCODE v1.1
By Dougiefresh (http://www.simplemachines.org/community/index.php?action=profile;u=253913) -> Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=4151)


Introduction
This modification adds a BBCode to view DailyMotion videos.

The BBCode takes this form:
Code: [Select]
[dailymotion width=x]{DailyMotion URL}[/dailymotion]

Admin Settings
There are a new setting on the Modifications Settings page:
o DailyMotion default width

Related Discussion
o Request made in Yet Another YouTube BBCode Tag mod (https://www.simplemachines.org/community/index.php?topic=531060.msg3935225#msg3935225)

Compatibility Notes
This mod was tested on SMF 2.0.14, but should work on SMF 2.1 Beta 3, as well as SMF 2.0 and up.  SMF 2.1 Beta 1 & 2, as well as SMF 1.x, is not and will not be supported.

This mod should be installed after Tapatalk mod (https://www.tapatalk.com/download_SimpleMachines.php), if you want to use it with Tapatalk.

Changelog
The changelog can be viewed at XPtsp.com (http://www.xptsp.com/board/free-modifications/embed-DailyMotion-bbcode/?tab=1).

License
Copyright (c) 2017 - 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.
Title: Re: Embed DailyMotion Video
Post by: dougiefresh on November 12, 2018, 09:30:49 PM
Uploaded v1.1 - November 12th, 2018
o Changed the bbcode button icon to proper DailyMotion icon.