Log in

View Full Version : add a new videosource for the forum


GE-Tom
09-21-2010, 02:49 PM
Hi all,

i try to find help with a i think small problem. i try to add a new videosource to vB 4 Forum.

i know that i must change the videosource from the template "bbcode_video"

(youtube part of the template)


<vb:elseif condition="$provider == 'youtube'" />
<object class="restrain" type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube.com/v/{vb:raw code}">
<param name="movie" value="http://www.youtube.com/v/{vb:raw code}" />
<param name="wmode" value="transparent" />
<!--[if IE 6]>
<embed width="640" height="385" type="application/x-shockwave-flash" src="http://www.youtube.com/v/{vb:raw code}" />
<![endif]--></object>


more importantly i must change the file bbcode_video_vbulletin.xml

(youtube part of the file)


<provider tagoption="youtube">
<title>YouTube</title>
<url>http://www.youtube.com</url>
<regex_url><![CDATA[http:\/\/www\.youtube\.com\/watch\?.*v=([a-z0-9-_]+)]]></regex_url>
<regex_scrape></regex_scrape>
<embed><![CDATA[<object class="restrain" type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube.com/v/{vb:raw code}">
<param name="movie" value="http://www.youtube.com/v/{vb:raw code}" />
<param name="wmode" value="transparent" />
<!--[if IE 6]>
<embed width="640" height="385" type="application/x-shockwave-flash" src="http://www.youtube.com/v/{vb:raw code}" />
<![endif]--></object>]]></embed>
</provider>


but how i can add videos from the source www.gametrailers.com. The share HTML Code from this side is


<div style="width: 480px;">

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="392">

<param name="allowScriptAccess" value="sameDomain" />

<param name="allowFullScreen" value="true" />

<param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=704827"/>

<param name="quality" value="high" />

<embed src="http://www.gametrailers.com/remote_wrap.php?mid=704827" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="392"></embed>

</object>

<div style="font-size: 10px; font-family: Verdana; text-align: center; width: 480px; padding-top: 2px; padding-bottom: 2px; background-color: black; height: 32px;">

<div><a style="color:#FFFFFF;" href="http://www.gametrailers.com" title="GameTrailers.com">Video Games</a> | <a style="color:#FFFFFF;" href="/game//" title="The Science of Games">The Science of Games</a> | <a style="color:#FFFFFF;" href="" title="The Science of The Force HD">The Science of The Force HD</a></div>

<div style="padding-top: 3px;"><a style="color:#FFFFFF;" href="http://xbox360.gametrailers.com/" title="XBox 360">XBox 360</a> | <a style="color:#FFFFFF;" href="http://ps3.gametrailers.com/" title="PS3">Playstation 3</a> | <a style="color:#FFFFFF;" href="http://wii.gametrailers.com/" title="Wii">Nintendo Wii</a></div>

</div>

</div>


i hope you can help me. its important for my projekt. plz help. thanks.