[SOLVED] Wall tab - add Dailymotion video

12 years 3 months ago #139439 by memorymoon
[SOLVED] Wall tab - add Dailymotion video was created 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

Please Log in to join the conversation.

12 years 3 months ago #139440 by memorymoon
Replied by memorymoon on topic Re:Wall tab - add Dailymotion video -solved
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">www.dailymotion.com/swf/%%P%%&server=www.dailymotion.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" />', '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!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.309 seconds

Facebook Twitter LinkedIn