[SOLVED] Wall tab - add Dailymotion video

9 years 3 months ago #139439 by memorymoon
Hi there
My users are asking for a Dailymotion in the video posting on thei profile, wall posting.
SO far it is Youtube, googlevideo, veho, an vimeo.
Is there a simple way to add dailymotion in there also?

Post edited by: memorymoon, at: 2010/08/05 15:50

Post edited by: krileon, at: 2010/08/05 21:44
9 years 3 months ago #139440 by memorymoon
Oh, never mind. After looking at cb profile book.php i added at line 1317 this:

[code:1] $bbcode->add_tag( array( 'Name' => 'video type=dailymotion', 'HtmlBegin' => '<span class="cbpbViemoPlayer"><object type="application/x-shockwave-flash" style="width:400px;height:325px;" data=" www.dailymotion.com/swf/%%P%%&server=www.dailymotion.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1 "><param name="movie" value=" www.dailymotion.com/swf/%%P%%&server=www.dailymotion.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1 " /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /></object></span>', 'HtmlEnd' => '', 'ReplaceContent' => true ) );[/code:1]

And added line 1199 just after "vimeo" This:
[code:1] $editor .= ' <option value="dailymotion">' . htmlspecialchars( CBTxt::T( "Dailymotion" ) ) . '</option>';[/code:1]

Works great.
Cheers!
Moderators: beatnantkrileon
Time to create page: 0.402 seconds
Facebook Twitter Google LinkedIn