Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 



       myfreeforum.org Forum Index -> PhpBB3 General Support
Zudane

BBCode

Okay, I'm drawing a blank here.  I want to be able to embed a flash video into the posts... but I can't figure out how without use a ton of replacement variables.

This is the code to embed it:

Code:
<b>GoAnimate.com</b>: <a href="http://goanimate.com/go/movie/0v_Br_7irbl4?utm%5Fsource=embed" target="_blank">Monkey Business</a> by <a href="http://goanimate.com/go/user/0FjJYErz7a8U?utm%5Fsource=embed" target="_blank">Zudane</a><br/><embed src='http://goanimate.com//api/animation/player?utm_source=embed' type='application/x-shockwave-flash' wmode='transparent' width='400' height='286' FlashVars='movieOwner=Zudane&movieId=0v_Br_7irbl4&movieLid=0&movieTitle=Monkey%20Business&movieDesc=Just%20a%20test%21&userId=0FjJYErz7a8U&apiserver=http%3A//goanimate.com/&appCode=go&thumbnailURL=http%3A//goanimate.com//files/thumbnails/movie/258/573258/991392L.jpg&fb_app_url=http%3A//goanimate.com/©able=0&showButtons=1&isEmbed=1&chain_mids=&ctc=go&tlang=en_US&isPublished=1&movieOwnerId=0FjJYErz7a8U&is_private_shared=0' allowScriptAccess='always' allowFullScreen='true'></embed><br><br>Like it? Create your own at <a href="http://goanimate.com/?utm%5Fsource=embed"><b>GoAnimate.com</b></a>. It's free and fun!


To anybody not familiar with phpbb3, html cannot go directly into posts.
admin (no pm's please)

What about the standard [video] bbcode we have for phpbb3? I really don't see it being easy to do with the bbcode mechanism directly.
Zudane

It would need to be added in, because that site isn't on the list...
admin (no pm's please)

We can put it in:

We just need to find the substitution, along the line of:

Code:

//http://www.gamevideos.com/video/id/17281
array ('/(gamevideos\.com)/i', '{DOWNLOAD%/Embed: <input.*value="(.*?)"/%html_entity_decode}'),

//http://www.tu.tv/videos/nuco-diga-no-a-una-mujer
array ('/(tu\.tv)/i', '{DOWNLOAD%/<input name="html".*value=\'(.*?)\'/%}'),

//http://www.godtube.com/view_video.php?viewkey=8cf08faca5dd9ea45513
array ('/godtube\.com.*viewkey=([^&]*)/i', '<embed src="http://godtube.com/flvplayer.swf" FlashVars="viewkey={ID_VIDEO}" wmode="transparent" quality="high" width="330" height="270" name="godtube" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>'),

//http://www.myvideo.de/watch/4276644/Handys_boese
array ('/myvideo.de\/watch\/(.*?)\//i', "<object style='width:470px;height:406px;' width='470' height='406' type='application/x-shockwave-flash' data='http://www.myvideo.de/movie/{ID_VIDEO}'><param name='movie' value='http://www.myvideo.de/movie/{ID_VIDEO}'/><param name='AllowFullscreen' value='true' /><embed src='http://www.myvideo.de/movie/{ID_VIDEO}' width='470' height='406'></embed></object>"),

//http://www.collegehumor.com/video:1819139
array ('/collegehumor.*video:(.*)/i', '<object type="application/x-shockwave-flash" data="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1819139&fullscreen=1" width="480" height="360" ><param name="allowfullscreen" value="true" /><param name="movie" quality="best" value="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id={ID_VIDEO}&fullscreen=1" /></object>'),

//http://www.comedycentral.com/videos/index.jhtml?videoId=173093
array ('/comedycentral.*videoId=([^&]*)/i', "<embed FlashVars='videoId={ID_VIDEO}' src='http://www.comedycentral.com/sitewide/video_player/view/default/swf.jhtml' quality='high' bgcolor='#cccccc' width='332' height='316' name='comedy_central_player' align='middle' allowScriptAccess='always' allownetworking='external' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>"),

//http://www.slideshare.net/ewan.mcintosh/unleasing-the-tribe/
array ('/(slideshare\.net)/i', '{DOWNLOAD%/<input.*?id="embedded_code" value="(.*?)"/%html_entity_decode}'),

//http://www.revver.com/video/129859/poker-player/
array ('/revver\.com\/video\/(.*?)\//i', '<script src="http://flash.revver.com/player/1.0/player.js?mediaId:{ID_VIDEO};width:480;height:392;" type="text/javascript"></script>'),





which are some of the existing ones.
Zudane

Well... let me see how little of the code I actually need to embed it...
Zudane

Turns out.. their embed code can be trimmed down to this:

Code:
<embed src='http://goanimate.com//api/animation/player?utm_source=embed' type='application/x-shockwave-flash' wmode='transparent' width='400' height='286' FlashVars='movieId=0v_Br_7irbl4&movieLid=0&apiserver=http%3A//goanimate.com/&appCode=go&fb_app_url=http%3A//goanimate.com/©able=0&showButtons=1&isEmbed=1&chain_mids=&ctc=go&tlang=en_US&isPublished=1&is_private_shared=0' allowScriptAccess='always' allowFullScreen='true'></embed>



which takes the movieId out of the url:
goanimate.com/movie/0v_Br_7irbl4

and places it into the FlashVars - which I trimmed down all of the other additions they had, including author, movie description, thumbnail, etc.
admin (no pm's please)

You may want to trawl:

http://www.phpbb.com/community/vi...64832b01077bbf482fb3&start=15

in 48 pages someone may have added this one! The way to do it is eluding me at the moment, I just don't do much in the "embed" area.
Zudane

I did a search in the thread and didn't find anything.  This should do it though:

if you just add this to the bottom of the array list, it should work


Correction: What version of the script do you have?

Nevermind, as long as it's the latest version it should work:

Code:
//http://goanimate.com/movie/0v_Br_7irbl4
array ('/goanimate\.com\/movie\/(.*?)/i', "<embed src='http://goanimate.com//api/animation/player?utm_source=embed' type='application/x-shockwave-flash' wmode='transparent' width='400' height='286' FlashVars='movieId={ID_VIDEO}&movieLid=0&apiserver=http%3A//goanimate.com/&appCode=go&fb_app_url=http%3A//goanimate.com/©able=0&showButtons=1&isEmbed=1&chain_mids=&ctc=go&tlang=en_US&isPublished=1&is_private_shared=0' allowScriptAccess='always' allowFullScreen='true'></embed>">,
Zudane

has this been tried yet?

admin (no pm's please)

It is in now.

Says something about expectations around here, that 5 hours after a post outside of office hours people are shocked that the forums have not been recoded to do something!
Zudane

Just used to how fast you work sir!

Zudane

Hey, not sure if this is entirely related... but videos aren't loading, and this is the error I'm getting with firebug (Firefox error console is showing nothing)

Failed to load source for: http://harsh-reality.net/video.php?...

and checking for the page I'm coming up with nothing.

admin (no pm's please)

try now, the code you posted had a bit of an error in it.
Zudane

:x sorry, but it's working now! Thank you!

Zudane

General videos work, but the actual goanimate doesn't

The video_ID isn't being replaced correctly, although the code is loading.


       myfreeforum.org Forum Index -> PhpBB3 General Support
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum