Module: BBcode Video
Posted by Maurice Makaay
|
Re: Module: BBcode Video April 22, 2010 07:34PM |
Registered: 16 years ago Posts: 2 |
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 [www.dailymotion.com] videos, is this video provider support planned in a future release ?
Kind regards,
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 [www.dailymotion.com] videos, is this video provider support planned in a future release ?
Kind regards,
|
Re: Module: BBcode Video April 23, 2010 07:32AM |
Registered: 16 years ago Posts: 2 |
Hello !
Here's a patch to add support for Dailymotion videos :
Edit the bbcode_video.php file :
[code="php"]
$search[] = "/[url\]http:\/\/(\w+\.)?dailymotion.com\/video\/([a-z0-9]+)_([a-z0-9_-]*)[\/url\]/is";
$replace[] = "[video]dailymotion:$2[/video]";
$search[] = "/http:\/\/(\w+\.)?dailymotion.com\/video\/([a-z0-9]+)_([a-z0-9_-]*)/is";
$replace[] = "[video]dailymotion:$2[/video]";
[/code]
In the near end of the file
[code="php"]
// Final replacement for Dailymotion videos
$search[] = "/[video\]dailymotion:(\w+)[\/video\]/is";
$replace[] = "<br /><embed type=\"application/x-shockwave-flash\" src=\"[www.dailymotion.com]\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"480\" height=\"384\"></embed>";
[/code]
Hope this helps !
Kind regards,
Here's a patch to add support for Dailymotion videos :
Edit the bbcode_video.php file :
[code="php"]
$search[] = "/[url\]http:\/\/(\w+\.)?dailymotion.com\/video\/([a-z0-9]+)_([a-z0-9_-]*)[\/url\]/is";
$replace[] = "[video]dailymotion:$2[/video]";
$search[] = "/http:\/\/(\w+\.)?dailymotion.com\/video\/([a-z0-9]+)_([a-z0-9_-]*)/is";
$replace[] = "[video]dailymotion:$2[/video]";
[/code]
In the near end of the file
[code="php"]
// Final replacement for Dailymotion videos
$search[] = "/[video\]dailymotion:(\w+)[\/video\]/is";
$replace[] = "<br /><embed type=\"application/x-shockwave-flash\" src=\"[www.dailymotion.com]\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"480\" height=\"384\"></embed>";
[/code]
Hope this helps !
Kind regards,
|
trying to add support for youtube: feature=player_embedded& December 28, 2010 12:40PM |
Registered: 17 years ago Posts: 71 |
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?
thanks
Rob
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?
thanks
Rob
$search[] = "/http:\/\/(\w+\.)?youtube.com\/watch\?feature=player_embedded&v=([\w_-]+)[a-z0-9;\/\?:@=\&\$\-_\.\+!*'\(\),~%#]*/is"; $replace[] = "[video]youtube:$2[/video]";
|
Re: Module: BBcode Video May 04, 2011 08:21AM |
Registered: 21 years ago Posts: 50 |
|
Re: Module: BBcode Video June 08, 2011 07:50AM |
Registered: 15 years ago Posts: 1 |
|
Re: Module: BBcode Video September 27, 2011 10:51AM |
Registered: 18 years ago Posts: 533 |
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 YouTu.be URL's as suggested by noe.
I have it working on my forum, and it was the new YouTube URLs (youtu.be) that served as motivation to make this update.
Robert Angle
Phorum lover, nothing more.
Ruminations
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 YouTu.be URL's as suggested by noe.
I have it working on my forum, and it was the new YouTube URLs (youtu.be) that served as motivation to make this update.
Robert Angle
Phorum lover, nothing more.
Ruminations
|
Re: Module: BBcode Video January 20, 2013 02:28AM |
Registered: 20 years ago Posts: 216 |
For some unknown reason the module doesn't work at all on my site: [www.dubaimania.net]
Am I doing something wrong?
Am I doing something wrong?
|
Re: Module: BBcode Video January 20, 2013 04:44AM |
Admin Registered: 23 years ago Posts: 9,240 |
|
Re: Module: BBcode Video January 20, 2013 06:23AM |
Registered: 20 years ago Posts: 216 |
|
Re: Module: BBcode Video January 20, 2013 06:35AM |
Admin Registered: 23 years ago Posts: 9,240 |
IMHO you are using a non supported url. A regular youtube url would look like
[www.youtube.com]
if you want to support the url shown then the regular expression for that needs to be added.
Thomas Seifert
[www.youtube.com]
if you want to support the url shown then the regular expression for that needs to be added.
Thomas Seifert
Your IP address, domain or ISP has been blocked. Please contact the forum administrators.
Sorry, only registered users may post in this forum.

