Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: dougiefresh on November 22, 2015, 10:24:09 PM

Title: Embed Vine Video BBCode
Post by: dougiefresh on November 22, 2015, 10:24:09 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=4071)



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



Introduction
This modification adds a BBCode to view Vine videos and pictures.

The BBCode takes these forms:

[vine]{vine ID}[/vine]
[vine width=x height=x]{vine ID}[/vine]

where {vine ID} is the bnbO1QXLWhr part of the http://vine.co/v/bnbO1QXLWhr URL.

Admin Settings
There are two new settings on the Modifications Settings page:
o Vine default width
o Vine default height

Embed Information Source
o Dailymotion iframe api (https://stackoverflow.com/questions/24399692/dailymotion-iframe-api)

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.

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-vine-bbcode/?tab=1).

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.
Title: Re: Embed Vine Video BBCode
Post by: Colin on November 22, 2015, 10:37:20 PM
Thanks, Dougie. Another great mod.
Title: Re: Embed Vine Video BBCode
Post by: Wellwisher on November 25, 2015, 05:28:14 PM
Can't you simply create a feature like take the URL and it will automatically convert it to an embed code in the post. Like some of the youtube mods? Without the need to use bb codes.
Title: Re: Embed Vine Video BBCode
Post by: dougiefresh on November 25, 2015, 06:37:06 PM
Honestly, this mod is a modified version of another mod of mine, which was written before the auto-embed part had been written (and rewritten at least 3 times  :P ).  I haven't gotten around to writing the auto-embed part for this mod yet.....
Title: Re: Embed Vine Video BBCode
Post by: dougiefresh on November 30, 2015, 04:48:10 PM
Uploaded v1.1 - November 30th, 2015
o Corrected auto-embed code so that URLs not surrounded by tags are converted to Vine tags.
o Modified existing auto-embed capability as hook for SMF 2.1.




@Wellwisher: Whoops!  I looked at the mod and realized that the auto-embed functionality does exist in the mod, but not for SMF 2.1.... until this update!  Thanks for the bug report!
Title: Re: Embed Vine Video BBCode
Post by: dougiefresh on December 30, 2015, 05:58:10 PM
Uploaded v1.2 - December 30th, 2015
o Added missing semicolon in Sources/Subs.php to prevent forum crash.
o Fixed missing language strings in Modification Settings area.
o Fixed code responsible for setting maximum video width/height for video playing.
Title: Re: Embed Vine Video BBCode
Post by: dougiefresh on March 07, 2016, 02:11:40 PM
Uploaded v1.3 - March 7th, 2016
o Modified auto-embed code so that Vine URLs in signature are embedded as [url]{link}[/url].
Title: Re: Embed Vine Video BBCode
Post by: dougiefresh on July 17, 2017, 09:54:17 AM
Uploaded v1.4 - July 16th, 2017
o Added ability for user to full-screen the video.
Title: Re: Embed Vine Video BBCode
Post by: dougiefresh on December 08, 2017, 10:02:40 PM
Uploaded v1.5 - December 8th, 2017
o Added URL embedding code for the Tapatalk mod.
Title: Re: Embed Vine Video BBCode
Post by: -Rock Lee- on December 14, 2017, 08:32:38 PM
Very good job indeed @dougiefresh and as usual, I'll leave the translation in Spanish so Spanish-speaking people can take advantage of it!


Regards!
Title: Re: Embed Vine Video BBCode
Post by: dougiefresh on December 15, 2017, 02:52:39 PM
Uploaded v1.6 - December 15th, 2017
o Added Spanish Latin translation, courtsey of Rock Lee (https://www.simplemachines.org/community/index.php?action=profile;u=322597)!




@Rock Lee:  Thank you for the translation!  It's been included in this version!
Title: Re: Embed Vine Video BBCode
Post by: dougiefresh on March 04, 2018, 10:04:47 PM
Uploaded v1.7 - March 4th, 2018
o Fixed an issue that prevents BBC manager from showing bbcodes.
Title: Re: Embed Vine Video BBCode
Post by: dougiefresh on October 17, 2018, 11:39:57 AM
Uploaded v1.8 - October 17th, 2018
o No functionality change.
o Updated documentation to point to new website.