News:

Wondering if this will always be free?  See why free is better.

Main Menu

Video Embed

Started by Sesquipedalian, February 24, 2023, 07:14:49 PM

Previous topic - Next topic

Sesquipedalian

Link to the mod

Video Embed

A modification for SMF 2.1 that expands support for embedding videos from video hosting sites.

Supported video hosting sites include:
  • YouTube
  • Vimeo
  • Locally hosted video and audio files

BBCodes are added for each of the supported video hosting sites.

SMF's default YouTube editor toolbar button is replaced with a generic Video button that will automatically detect video URLs from the supported video hosting sites.

Future versions of this modification may expand support to include other video hosting sites, but I promise you nothing.

This modification is also backward compatible with BBCodes created by several older YouTube and Vimeo modifications. So if you previously used a modification to add YouTube or Vimeo support to SMF 2.0.x and then upgraded your forum to SMF 2.1.x, this modification might fix any broken embed codes in your pre-existing posts. (Note: BBCode parameters from older modifications may be ignored.)


Settings

There are no settings. Install to enable, uninstall to disable.


License

Video Embed is released under the MIT License. A full copy of this license is included in the package file.


Changelog

Version 1.0:
  • Initial release
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

-Rock Lee-

It seems interesting more than it is directly implemented, I will comment any problem :).


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

jsx

Nice to see another mod for SMF 2.1, thanks for this mod. :)

Inserted video using this feature in SMF 2.1 is small. I think in SMF 2.1 and in this modification lacks the function to set the width and height of the video.

Sesquipedalian

Quote from: jsx on February 26, 2023, 08:00:42 AMInserted video using this feature in SMF 2.1 is small. I think in SMF 2.1 and in this modification lacks the function to set the width and height of the video.

That is controlled by SMF's index.css file. If you want the inserted videos to be wider, find the following in index.css and change the max-width to a value that you prefer:

.videocontainer {
max-width: 560px;
}
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

jsx

Thank you for the information and help. 8)

Advertisement: