News:

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

Main Menu

Simple Youtube Video Embedder/BBC

Started by xPandax, July 12, 2013, 02:36:25 PM

Previous topic - Next topic

xPandax



Simple Youtube Video Embedder/BBC
(For SMF 2.0.x)
Mod by xPandax | Other Mods by xPandax




Features

  • This mod supports both 'youtube.com' & 'youtu.be' links and also http/https links.
  • This mod parses youtube links automatically and displays them as videos.

    • Youtube videos
    • Youtube videos with time identifier
    • Youtube playlist
  • Since youtube video links are automatically parsed & displayed, there is no need to use the 'youtube' tags. At the same time, youtube links & video id's wrapped within 'youtube' tags also work.
  • In addition to these features, this mod supports the following format also which was used by some old mods.

    • [yt]yVpbFMhOAwE[/yt]
  • It works in all browsers (with/without flash). If flash player is not available, then this mod displays the video using HTML5.

Who should use this Mod
If you are one of the people who use only youtube videos & playlist in your forum then this is the mod that you're looking for.


How-To
Youtube video links are parsed & displayed automatically. Just post the youtube links as plain text.

Youtube links wrapped within [url] tags won't be parsed as videos. If you wrap a link within [url] tags, then it means you are forcing youtube links to be displayed as url.

Correct: Hi, checkout this youtube video, http://www.youtube.com/watch?v=yVpbFMhOAwE

Incorrect: Hi, checkout this youtube video, [url]http://www.youtube.com/watch?v=yVpbFMhOAwE[/url]



Supported Themes
Works on all the themes without any custom edits!


Supported SMF Versions
Tested on fresh installation of 2.0.4.


Supported Languages

  • English
Translations to other languages are welcome. Please post them in this Support Thread for this Mod.


Support
If you need support with this mod, please use the Support Thread for this Mod.


Changelog
v2.0 - Mod totally rewritten using hooks (13 March 2014)
  • Added settings for video width & height
  • Added feature to parse youtube videos with time identifier
  • Added feature to parse youtube Playlist
  • Added support for [YT] tags which was used by some old mod
  • Embed codes are changed to "https" as default
v1.1 - Just a maintenance release.

  • Improved the edits done by the package to fix/minimise the clash with other mods during install/uninstall operations.
  • No changes in the core codes that parse youtube videos
v1.0
  • Initial release.



License

This is free and unencumbered mod released into the public domain. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.

Dzonny

Nice and clean :)

If i can i would suggest to consider making a bbc button for this :)

4Kstore

Congratulations, nice mod and it's really very simple and efficient ...

¡¡NEW MOD: Sparkles User Names!!!

Shambles

Your links aren't working (as before) ;)



Neo_TE

Quote from: Dzonny on July 12, 2013, 02:38:24 PM
Nice and clean :)

If i can i would suggest to consider making a bbc button for this :)
Thank you very much.

I thought of making a bbc button but this mod automatically parses youtube links & displays them as videos which is the core feature. So I dropped the idea of adding a bbc.


Quote from: 4Kstore on July 12, 2013, 02:47:47 PM
Congratulations, nice mod and it's really very simple and efficient ...
Thank you very much.


Quote from: Shambles on July 12, 2013, 04:44:24 PM
Your links aren't working (as before) ;)
Thank you very much and I've fixed the links.  O:)

Dzonny

Quote from: xPandax on July 13, 2013, 09:10:07 AM
Quote from: Dzonny on July 12, 2013, 02:38:24 PM
Nice and clean :)

If i can i would suggest to consider making a bbc button for this :)
Thank you very much.

I thought of making a bbc button but this mod automatically parses youtube links & displays them as videos which is the core feature. So I dropped the idea of adding a bbc.

Yeah, that's right, make sense to me :)

Keep up the good work! :)

Neo_TE

Quote from: Dzonny on July 13, 2013, 09:36:39 AM
Quote from: xPandax on July 13, 2013, 09:10:07 AM
Quote from: Dzonny on July 12, 2013, 02:38:24 PM
Nice and clean :)

If i can i would suggest to consider making a bbc button for this :)
Thank you very much.

I thought of making a bbc button but this mod automatically parses youtube links & displays them as videos which is the core feature. So I dropped the idea of adding a bbc.

Yeah, that's right, make sense to me :)

Keep up the good work! :)
Thank you very much. :D

Venera

#7
Nice mod. Thank you.

Neo_TE


Butjam

Hi, I've just tried to install this on a forum and I'm having a bit of an issue. I'm more a day to day 'stop the place from falling apart' admin than the other two, so I'm woefully out of my depth in this. Attempts to contact my colleagues have been unsuccessful.... so I'll try this!

I get this error:

Followed by:


Like I said, my technical skill is next to nothing, so I can only assume there is a conflict with another package, listed here:


Any and all help is great, thanks!

Neo_TE

Well just now the mod was updated. Improved the edits done by the package to fix/minimise the clash with other mods during install/uninstall operations. I suggest you to try the new version 1.1.

If you face the error even with version 1.1, then upload your Post.php file here and ill do the edit for you. :)

Actually its a simple edit which you can try yourself. Browse to your forum_directory/Sources/Post.php.

You'll find the following tag twice in the Post.php file.
Code (find) Select
<img>


Add the following code before <img> in both the places.
Code (add before) Select
<object><embed><iframe>

Butjam

Your update worked perfectly, actually, just downloaded and installed with ease, thank you very much

Neo_TE


rajeshvv

Hi.. I installed 1.0 version which is working gr8...now the version updated to 1.1
what is the process for updating the mod ?
just uninstalling the 1.0 and installing the 1.1 ?
cheers

Rajesh

Neo_TE

Quote from: rajeshvv on July 23, 2013, 03:12:46 AM
Hi.. I installed 1.0 version which is working gr8...now the version updated to 1.1
what is the process for updating the mod ?
just uninstalling the 1.0 and installing the 1.1 ?

Yes, that's right. But this is just a maintenance release. :)

Changelog
v1.0 - Initial release.
v1.1 - Just a maintenance release.

  • Improved the edits done by the package to fix/minimise the clash with other mods during install/uninstall operations.
  • No changes in the core codes that parse youtube videos

Ricky.

Nice work .. simple and effective..

Neo_TE


Malibuz0r

Hey I have a problem with this mod and Simpleportal's default shoutbox. Whenever I post a youtube link in that shoutbox, it cuts off the link and leaves the id wrapped around the youtube bbc tag. Is there a way to fix this?

Neo_TE

Quote from: Malibuz0r on July 29, 2013, 06:57:13 PM
Hey I have a problem with this mod and Simpleportal's default shoutbox. Whenever I post a youtube link in that shoutbox, it cuts off the link and leaves the id wrapped around the youtube bbc tag. Is there a way to fix this?

I'm not sure if youtube videos can be embedded in simple portal's shoutbox. You have to ask simple portal devs regarding that issue.

Malibuz0r

No no, that's not what I want. Whenever I post a youtube URL, a complete URL in the shoutbox, it cuts off the link and leaves it like:
. Which makes the URL unclickable.. I want it to show the full url. This only started happening after I installed the mod.

PS: Don't want to embed videos on the shoutbox.

Advertisement: