MyBB Community Forums

Full Version: How to embed Adult Swim video?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm pretty new to this whole MyBB thing, so any help would be appreciated.

Embed code:
<object type="application/x-shockwave-flash" width="425" height="350" data="http://i.adultswim.com/adultswim/video3/tools/swf/viralplayer.swf"><param name="allowFullScreen" value="true" /><param name="movie" value="http://i.adultswim.com/adultswim/video3/tools/swf/viralplayer.swf"/><param name="FlashVars" value="id=8a250ba135c9e5000135e965ff4e01b1" /><embed src="http://i.adultswim.com/adultswim/video3/tools/swf/viralplayer.swf" type="application/x-shockwave-flash" FlashVars="id=8a250ba135c9e5000135e965ff4e01b1" allowFullScreen="true" width="425" height="350"></embed></object>
And that was for this video: http://video.adultswim.com/loiter-squad/...ionel.html

Once again, I'd really appreciate it if anyone could help me with this, thanks in advance.
41 views and not a reply :/

Hopefully somebody can help me out.
Well, in this code movie id is stored as a sequence of numbers and chars so I guess the only way to do MyCode is use this id thingy.

So regular expression:
\[adultswimid\]([A-Za-z0-9]+)\[/adultswimid\]

Replacement:
<object type="application/x-shockwave-flash" width="425" height="350" data="http://i.adultswim.com/adultswim/video3/tools/swf/viralplayer.swf"><param name="allowFullScreen" value="true" /><param name="movie" value="http://i.adultswim.com/adultswim/video3/tools/swf/viralplayer.swf"/><param name="FlashVars" value="id=$1" /><embed src="http://i.adultswim.com/adultswim/video3/tools/swf/viralplayer.swf" type="application/x-shockwave-flash" FlashVars="id=$1" allowFullScreen="true" width="425" height="350"></embed></object>

Use (in this example):
[adultswimid]8a250ba135c9e5000135e965ff4e01b1[/adultswimid]

Try it. It will probably work but it's inefficient because you need to get always the id from movie.
Thanks Destroy, members won't like it but I'll see if I can figure the rest out.