MyBB Community Forums

Full Version: [REQ] MyCode: Exposure Room
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having a lot of trouble trying to get the embed code working properly with the Exposure Room videos. the viddler code was easier to figure out.

this is what I have for the regular expression:
\[video=xr\](.*?)\[/video\]

replacement (yeah, i know it's terrible. im not a coder!):
<object width="400" height="400" "http://exposureroom.com/flash/XRVideoPlayer2.swf?" domain="exposureroom.com/&amp;assetId=$32";>
<param name="movie" value="http://exposureroom.com/$32">
<embed src="$1" width="400" height="400" type="application/x-shockwave-flash"></embed>
</object>

from the site; object id always starts with xr followed by 32 unique digits. there's also an assetid (which is the same 32 digit code)

<object id="xrP44eace1d760b43a293d257d16b33a55e" width="480" height="270" type="application/x-shockwave-flash" data="http://exposureroom.com/flash/XRVideoPlayer2.swf?domain=exposureroom.com/&amp;assetId=44eace1d760b43a293d257d16b33a55e&amp;size=sm&amp;titleColor=%23ffffff"><param name="movie" value="http://exposureroom.com/flash/XRVideoPlayer2.swf?domain=exposureroom.com/&amp;assetId=44eace1d760b43a293d257d16b33a55e&amp;size=sm&amp;titleColor=%23ffffff" /><param name="allowNetworking" value="all" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="True" /><param name="wmode" value="opaque" /></object><div><div class="viewOnXRDiv"><a href="http://exposureroom.com/44eace1d760b43a293d257d16b33a55e" class="viewOnXRLink" title="Flat World Dreams by Craig McCourry - View it on ExposureRoom" target="_blank">View on ExposureRoom</a></div></div>
w00t I love making MyCodes xD

Was a simple one.

Regular Expression:
\[ER\](.*?)\[/ER\]

Replacement:
<object id="xrP$1" width="640" height="360" type="application/x-shockwave-flash" data="http://exposureroom.com/flash/XRVideoPlayer2.swf?domain=exposureroom.com/&amp;assetId=$1&amp;size=md&amp;titleColor=%23ffffff"><param name="movie" value="http://exposureroom.com/flash/XRVideoPlayer2.swf?domain=exposureroom.com/&amp;assetId=$1&amp;size=md&amp;titleColor=%23ffffff" /><param name="allowNetworking" value="all" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="True" /><param name="wmode" value="opaque" /></object><div><div class="viewOnXRDiv">

How to use:
Just goto a video, the random numbers at the end of the link, put that between the [ER] [/ER] tags. For example [er]a353125deca24cd3b04e0aafc42f623a[/er]
that's great! thanks!