MyBB.de Forum

Normale Version: Video/Image/Audio Player
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Eine neue Erweiterung wurde veröffentlicht: Video/Image/Audio Player

Zitat:Uses JW Player which support the following formats:
FLV, MP4, MP3, AAC, JPG, PNG and GIF.
Get JW Player and upload it to your site or else, this MyCode will not work.
Upload only player.swf to your root directory. Other files in the archive is unnecessary. If you got player-viral.swf, rename it to player.swf.

VIDEO PLAYER
Regular Expression
Code:
\[vid\](.*?)\[/vid\]

Replacement
Code:
<object><embed src="http://worldofanimeotaku.co.cc/player.swf" width='530' height='350' bgcolor="#ffffff" allowscriptaccess='always' allowfullscreen='true' flashvars='file=$1'</embed></object>

Example
Code:
[vid]http://content.longtailvideo.com/videos/flvplayer.flv[/vid]

MP3 PLAYER
Regular Expression
Code:
\[mp3\](.*?)\[/mp3\]

Replacement
Code:
<object><embed src="http://worldofanimeotaku.co.cc/player.swf" width='470' height='20' bgcolor="#ffffff" allowscriptaccess='always' allowfullscreen='true' flashvars='file=$1'</embed></object>

Example
Code:
[mp3]http://www.longtailvideo.com/jw/upload/bunny.mp3[/mp3]

You can use the player to show images too. Use the video player MyCode for videos and images while MP3 MyCode for musics. Wink

Made this on my own, and not based on anyone's player. My

Hope you like it! Big Grin

Vorschau:
http://worldofanimeotaku.co.cc/thread-12-post-25.html