Firefox PHP

Module: BBcode Video

Posted by Maurice Makaay 
Re: Module: BBcode Video
April 22, 2010 08:34PM
Hello !

We use the BBcode Video module in order to help deaf people to talks together via a Phorum based forum.
Thanks for the quite good job !

Some users asks us to enable [] videos, is this video provider support planned in a future release ?

Kind regards,
Re: Module: BBcode Video
April 23, 2010 08:32AM
Hello !

Here's a patch to add support for Dailymotion videos :

Edit the bbcode_video.php file :

Language: PHP
$search[] = "/\[url\]http:\/\/(\w+\.)?\/video\/([a-z0-9]+)_([a-z0-9_-]*)\[\/url\]/is"; $replace[] = "[video]dailymotion:$2[/video]";   $search[] = "/http:\/\/(\w+\.)?\/video\/([a-z0-9]+)_([a-z0-9_-]*)/is"; $replace[] = "[video]dailymotion:$2[/video]";

In the near end of the file

Language: PHP
// Final replacement for Dailymotion videos $search[] = "/\[video\]dailymotion:(\w+)\[\/video\]/is"; $replace[] = "<br /><embed type=\"application/x-shockwave-flash\" src=\"$1\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"480\" height=\"384\"></embed>";

Hope this helps !

Kind regards,
trying to add support for youtube: feature=player_embedded&
December 28, 2010 01:40PM
I am not sure if it is the ampersand int body or in the search that is voiding the test:
remove the ampersand after embedded in the code and body and it works, put them in and it doesn't. is the ampersand getting encoded in the body and do I need to search for something else?

$search[] = "/http:\/\/(\w+\.)?\/watch\?feature=player_embedded&v=([\w_-]+)[a-z0-9;\/\?:@=\&\$\-_\.\+!*'\(\),~%#]*/is";
$replace[] = "[video]youtube:$2[/video]";
Re: Module: BBcode Video
May 04, 2011 09:21AM
Can you please add support for the "new" youtube embedding links?

Re: Module: BBcode Video
June 08, 2011 08:50AM
nice one folks, am a newbie and i want to start using phorum....
Re: Module: BBcode Video
September 27, 2011 11:51AM
Attached to this message is an update to the BBCode Video Module, which I am calling Version 1.1

It adds support for Daily Motion videos, thanks to Bouchon66 for contributing the code which I modifed a bit (he had it parsing [url] tags which I changed to parse [video] tags instead in harmony with the modules intent).

It also adds support for the new URL's as suggested by noe.

I have it working on my forum, and it was the new YouTube URLs ( that served as motivation to make this update.

Robert Angle
Phorum lover, nothing more.
open | download - (6.6 KB)
Re: Module: BBcode Video
January 20, 2013 03:28AM
For some unknown reason the module doesn't work at all on my site: []

Am I doing something wrong?
Re: Module: BBcode Video
January 20, 2013 05:44AM
No idea, did you enable and configure it?

Thomas Seifert
Re: Module: BBcode Video
January 20, 2013 07:23AM
I believe so

Re: Module: BBcode Video
January 20, 2013 07:35AM
IMHO you are using a non supported url. A regular youtube url would look like
if you want to support the url shown then the regular expression for that needs to be added.

Thomas Seifert
Sorry, only registered users may post in this forum.

Click here to login