Advertisement:

Author Topic: Simple Youtube Video Embedder/BBC  (Read 68814 times)

xPandax

  • Guest
Simple Youtube Video Embedder/BBC
« on: July 12, 2013, 02:36:25 PM »

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.
    • [youtube]yVpbFMhOAwE[/youtube]
    • [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.
« Last Edit: March 14, 2014, 06:59:36 AM by ThePanda` »

Offline Dzonny

  • Localizer
  • SMF Super Hero
  • *
  • Posts: 11,869
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Simple Youtube Video Embedder/BBC
« Reply #1 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 :)

Offline 4Kstore

  • SMF Hero
  • ******
  • Posts: 4,315
  • Gender: Male
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Simple Youtube Video Embedder/BBC
« Reply #2 on: July 12, 2013, 02:47:47 PM »
Congratulations, nice mod and it's really very simple and efficient ...
¡¡NEW MOD: Sparkles User Names!!!

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,055
  • Gender: Male
    • i30 Owners Club
Re: Simple Youtube Video Embedder/BBC
« Reply #3 on: July 12, 2013, 04:44:24 PM »
Your links aren't working (as before) ;)



Neo_TE

  • Guest
Re: Simple Youtube Video Embedder/BBC
« Reply #4 on: July 13, 2013, 09:10:07 AM »
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.


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


Your links aren't working (as before) ;)
Thank you very much and I've fixed the links.  O:)

Offline Dzonny

  • Localizer
  • SMF Super Hero
  • *
  • Posts: 11,869
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Simple Youtube Video Embedder/BBC
« Reply #5 on: July 13, 2013, 09:36:39 AM »
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

  • Guest
Re: Simple Youtube Video Embedder/BBC
« Reply #6 on: July 13, 2013, 10:10:49 AM »
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

Offline Venera

  • Full Member
  • ***
  • Posts: 479
  • Gender: Female
    • 232678563437136 on Facebook
    • Venerin san
Re: Simple Youtube Video Embedder/BBC
« Reply #7 on: July 15, 2013, 08:24:39 AM »
Nice mod. Thank you.
« Last Edit: July 15, 2013, 12:05:35 PM by Venera »

Neo_TE

  • Guest
Re: Simple Youtube Video Embedder/BBC
« Reply #8 on: July 15, 2013, 11:45:07 AM »
Nice mod. Tahnk you.
You're welcome, thank you.

Offline Butjam

  • Newbie
  • *
  • Posts: 5
Re: Simple Youtube Video Embedder/BBC
« Reply #9 on: July 21, 2013, 07:52:19 PM »
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

  • Guest
Re: Simple Youtube Video Embedder/BBC
« Reply #10 on: July 21, 2013, 10:51:53 PM »
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>

Offline Butjam

  • Newbie
  • *
  • Posts: 5
Re: Simple Youtube Video Embedder/BBC
« Reply #11 on: July 22, 2013, 02:43:34 PM »
Your update worked perfectly, actually, just downloaded and installed with ease, thank you very much

Neo_TE

  • Guest
Re: Simple Youtube Video Embedder/BBC
« Reply #12 on: July 23, 2013, 02:55:42 AM »
Thanks & you're welcome. :)

Offline rajeshvv

  • Semi-Newbie
  • *
  • Posts: 17
Re: Simple Youtube Video Embedder/BBC
« Reply #13 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 ?
cheers

Rajesh

Neo_TE

  • Guest
Re: Simple Youtube Video Embedder/BBC
« Reply #14 on: July 23, 2013, 04:36:24 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

Offline Ricky.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,057
    • Indian Linux Forums
Re: Simple Youtube Video Embedder/BBC
« Reply #15 on: July 27, 2013, 01:33:23 AM »
Nice work .. simple and effective..

Neo_TE

  • Guest
Re: Simple Youtube Video Embedder/BBC
« Reply #16 on: July 27, 2013, 04:33:26 AM »
Nice work .. simple and effective..

Thank you very much. :D

Offline Malibuz0r

  • Semi-Newbie
  • *
  • Posts: 35
Re: Simple Youtube Video Embedder/BBC
« Reply #17 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?

Neo_TE

  • Guest
Re: Simple Youtube Video Embedder/BBC
« Reply #18 on: July 30, 2013, 02:23:37 AM »
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.

Offline Malibuz0r

  • Semi-Newbie
  • *
  • Posts: 35
Re: Simple Youtube Video Embedder/BBC
« Reply #19 on: July 30, 2013, 05:11:08 AM »
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: [youtube]video_id[/youtube]. 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.