2010-09-22, 06:50 AM
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:
replacement (yeah, i know it's terrible. im not a coder!):
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)
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/&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/&assetId=44eace1d760b43a293d257d16b33a55e&size=sm&titleColor=%23ffffff"><param name="movie" value="http://exposureroom.com/flash/XRVideoPlayer2.swf?domain=exposureroom.com/&assetId=44eace1d760b43a293d257d16b33a55e&size=sm&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>