Firefox PHP

Module: BBcode Video

Posted by Maurice Makaay 
Re: Module: BBcode Video
April 23, 2010 02:34AM
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,
Re: Module: BBcode Video
April 23, 2010 02:32PM
Hello !

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 07: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?
thanks
Rob

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

thanks!
Re: Module: BBcode Video
June 08, 2011 02:50PM
nice one folks, am a newbie and i want to start using phorum....
Re: Module: BBcode Video
September 27, 2011 05:51PM
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
Attachments:
open | download - bbcode_video_v1-1.zip (6.6 KB)
Re: Module: BBcode Video
January 20, 2013 09:28AM
For some unknown reason the module doesn't work at all on my site: [www.dubaimania.net]

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


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Module: BBcode Video
January 20, 2013 01:23PM
I believe so


Re: Module: BBcode Video
January 20, 2013 01:35PM
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
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Sorry, only registered users may post in this forum.

Click here to login