Firefox PHP

Module: BBcode Video

Posted by Maurice Makaay 
All files from this thread

File Name File Size   Posted by Date  
bbcode_video-1.0.10.tar.gz 4.3 KB open | download Maurice Makaay 05/21/2009 Read message
bbcode_video-1.0.10.zip 6.8 KB open | download Maurice Makaay 05/21/2009 Read message
bbcode_video.php 7.5 KB open | download Bruno 09/21/2009 Read message
icon.gif 230 bytes open | download Voltius 05/21/2009 Read message
bbcode_video_v1-1.zip 6.6 KB open | download Robert Angle 09/27/2011 Read message
BBvideo-1.JPG 32.6 KB open | download Nicola 01/20/2013 Read message
BBvideo-2.JPG 45 KB open | download Nicola 01/20/2013 Read message
Module: BBcode Video
August 20, 2007 09:16PM
This module allows embedding of YouTube, Google and Vimeo.com videos in
forum messages by using the [video]...[/video] bbcode tags. Here is an
example of how a video link would look in a message:

[video]http://www.youtube.com/v/abcDeFgHiJ1[/video]

The module does recognize multiple types of YouTube and Google URLs. So users
do not have to (and will not, in my experience ;-) post the actual video
resource URL as in the above example, but they can post URLs like these too:

[video]http://www.youtube.com/watch?v=qkFPbIEluEU&mode=related&search=[/video]

[video]http://video.google.com/videoplay?docid=1234567890123456789[/video]

The module can be told to automatically replace all recognized video URLs with
embedded videos. This is a special feature, which can be enabled through the
module settings screen. If you enable this feature then plain video URLs and
[url] surrounded video URLs will be replaced by embedded videos too.

Examples (note: space added after "http" to keep the link from being formatted):

http ://www.youtube.com/watch?v=qkFPbIEluEU&mode=related&search=

[url]http ://www.youtube.com/v/abcDeFgHiJ1[/url]

http ://video.google.com/videoplay?docid=1234567890123456789


Changelog:
----------
2009-05-21 v1.0.10

    - Added a language string "enter video url" for the URL prompt window.

2007-11-03 v1.0.9

    - Implemented the javascript_register hook.
      This requires Phorum 5.2.2 or newer.

2007-11-01 v1.0.8

- Honor the "disable bbcode for this post" flag (a feature of the
BBcode module).

2007-10-14 v1.0.7

- Added support for www.break.com and www.ebaumsworld.com URLs.

2007-07-09 v1.0.6

- Added support for www.vimeo.com and vimeo.com URLs.

2007-07-07 v1.0.5

- Added an option to display a video button in the Editor Tools bar.

2007-07-07 v1.0.4

- Added vimeo.com video support.

2007-06-13 v1.0.3

- Removed <object> tag from the embedding code, because that can cause
some weird conflicts with MSIE browsers in combination with JavaScript
code. I've seen conflicts with the Slimbox script (mootools based
lightbox) on my site, but there are other scripts which show the
same problem, judging the number of reports about the problem.

Since <embed> seems to work for all browsers that I tested, I stick
to that for now and leave the <object> code for the future.

2007-06-13 v1.0.2

- Made Google video support work for international Google mirrors too.

2007-06-13 v1.0.1

- Added Google video support.

2007-06-13 v1.0.0

- Initial revision


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 4 time(s). Last edit at 05/21/2009 01:17PM by Maurice Makaay.
Attachments:
open | download - bbcode_video-1.0.10.tar.gz (4.3 KB)
open | download - bbcode_video-1.0.10.zip (6.8 KB)
Re: Module: BBcode Video
October 14, 2007 09:09PM
Thanks for the great mod. I have been breifly trying to edit your php to allow urls from ebaumsworld.com and break.com to appear as embedded... but I have been having trouble getting it to work. Has anyone done this already?
Re: Module: BBcode Video
October 14, 2007 11:58PM
I can try to add them. I have no reason to make the list static to only a few video sites. So as long as they aren't handling johndoeshomepage.com and the target site allows to embed the movies on other pages, I'm fine with extending the matching code for it.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: BBcode Video
October 15, 2007 01:03AM
I did add some support for ebaumsworld and break, but one problem there is that the view URL does not have a direct relation to the name of the movie resource that is played. So for now, you will have to extract the URLs from the suggested embedding code of those sites. The formats that are supported now are these (space added after "http" to keep them visible as full URLs):

http: //embed.break.com/MzgyMDk3
http: //www.ebaumsworld.com/2006/07/talking-cats.flv

The results are visible at my development site: [secretsauce.phorum.org]

An idea that I have is to allow view URLs for those sites as well and let Phorum try to load those web pages and extract the neccessary info when posting the message. That way it can be made possible to allow posting view URLs like:

http: //www.break.com/index/robocop-fights-neo.html
http: //www.ebaumsworld.com/video/watch/397/

I will upload the new mod version (1.0.7) to the first message of this thread.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 1 time(s). Last edit at 10/15/2007 01:05AM by mmakaay.
Re: Module: BBcode Video
October 15, 2007 08:27AM
wow, thanks for the quick fix! It would be nice to eventually be able to use the actual page url, but no rush... thanks for your help.
Re: Module: BBcode Video
October 26, 2007 02:53PM
Great mod :)
In the future, is it possible to accept the dailymotion video ?
[www.dailymotion.com]

It's not urgency at all :)

Mickael
my Phorum
Re: Module: BBcode Video
October 26, 2007 04:49PM
geez, how many video sites are gonna pop up on the internet? =)

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Module: BBcode Video
October 27, 2007 12:58AM
I hope not too many, so I can keep up with them =)
I want to add one to promote my juggling hobby: [www.juggletube.com]
I'm thinking about some extensible system for adding video sites, to make things more structured. But first find some time for hacking that up.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: BBcode Video
November 01, 2007 12:26PM
Released version 1.0.8. This version honors the "disable bbcode for this post" flag (a new feature from the main BBcode module).


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
TEA
Re: Module: BBcode Video
December 23, 2007 02:54PM
appears to be working fine on 5.1.22 also
Sorry, only registered users may post in this forum.

Click here to login