Module: BBcode Video
Posted by Maurice Makaay
Re: Module: BBcode Video April 22, 2010 08:34PM |
Registered: 13 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 08:32AM |
Registered: 13 years ago Posts: 2 |
Hello !
Here's a patch to add support for Dailymotion videos :
Edit the bbcode_video.php file :
In the near end of the file
Hope this helps !
Kind regards,
Here's a patch to add support for Dailymotion videos :
Edit the bbcode_video.php file :
Language: 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]";
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=\"http://www.dailymotion.com/swf/video/$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 |
Registered: 14 years ago Posts: 68 |
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 09:21AM |
Registered: 19 years ago Posts: 50 |
Re: Module: BBcode Video June 08, 2011 08:50AM |
Registered: 12 years ago Posts: 1 |
Re: Module: BBcode Video September 27, 2011 11:51AM |
Registered: 16 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 03:28AM |
Registered: 17 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 05:44AM |
Admin Registered: 21 years ago Posts: 9,240 |
Re: Module: BBcode Video January 20, 2013 07:23AM |
Registered: 17 years ago Posts: 216 |
Re: Module: BBcode Video January 20, 2013 07:35AM |
Admin Registered: 21 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
Sorry, only registered users may post in this forum.