Foren / Cotonti / Support / youtube , metacafe video's in forum

HarryRag
#8863 25. Februar 2009, 23:26
Thnx Trustmater,
Got these also working now.


For Google video
\[googlevideo\]([^\s"\';&\?\(\[]+)\[/googlevideo\]
<embed style="width:512px; height:392px;" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=$1&hl=en-GB"></embed>

For Gametrailers.com

\[games\]([^\s"\';&\?\(\[]+)\[/games\]
<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="512" height="392"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="true" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=$1"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid=$1" 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="512" height="392"></embed> </object>

For Yahoo Video
\[yahoo\]([^\s"\';&\?\(\[]+)\[/yahoo\]
<object width="512" height="392"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.4" /><param name="allowFullScreen" value="true" /><param name="flashVars" value="id=$1"/>
<embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.4" type="application/x-shockwave-flash" width="512" height="392" allowFullScreen="true" flashVars="id=$1"></embed></object>

For MetaCafe.com
\[metacafe\]([^\s"\';&\?\(\[]+)\[/metacafe\]
<embed style="width:512px; height:392px;" src="http://www.metacafe.com/fplayer/$1" width="512" height="392" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed

For DailyMotion.com
\[dmotion\]([^\s"\';&\?\(\[]+)\[/dmotion\]
<object width="512" height="392"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.dailymotion.com/swf/$1&related=0" /><embed src="http://www.dailymotion.com/swf/$1&related=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="512" height="392"></embed></object>

To add the codes to the Markitup plugin:

Fule plugins/markitup/js/set.js

Add after line 85: {name: L.spoiler, className: 'mSpoiler', openWith:'[spoiler=[![' + L.spoiler_text + ']!]]', closeWith:'[/spoiler]'},

These lines:
{name: L.dmotion, className: 'mDmotion', openWith:'[dmotion]', closeWith:'[/dmotion]'},
			{name: L.games, className: 'mGames', openWith:'[games]', closeWith:'[/games]'},
			{name: L.googlevideo, className: 'mGooglevideo', openWith:'[googlevideo]', closeWith:'[/googlevideo]'},
			{name: L.metacafe, className: 'mMetacafe', openWith:'[metacafe]', closeWith:'.swf[/metacafe]'},
			{name: L.yahoo, className: 'mYahoo', openWith:'[yahoo]', closeWith:'[/yahoo]'},
			{name: L.youtube, className: 'mYoutube', openWith:'[youtube]', closeWith:'[/youtube]'}


Added .swf to the closing of /metacafe cause that needs to be at the end of the line.



And to give them the name needed in the dropdown:
In /plugins/markitup/lang/en.lang.js and/or ru.lang.js

after line 54 yellow:		'Yellow',

add:
        dmotion:	'DailyMotion',
	games:		'GameTrailers',
	googlevideo:    'GoogleVideo',
	metacafe:	'MetaCafe',
	yahoo:		'YahooVideo',
	youtube:	'YouTube'

The only thing missing at this point is the images for the embedded video links, that uses the quote image at this moment.

How to use tutorial[/][/][/][/][/]
[center][url=<a href="">http://www.true-gamers.nl]True</a> &amp; Honest Gamers[/url][/center]

Dieser Beitrag wurde von HarryRag (am 26. Februar 2009, 02:41, vor 16 Jahre) bearbeitet