MyBB Community Forums

Full Version: JWPlayer MyCode Embed v3[APPROVED]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Remember the old Video/Image/Audio MyCode I did couple years ago? This time, I've improved it with a plugin hook to make the installation easier. Smile

Details
------
A simple MyCode which able you to embed a JWPlayer into your posts easily.

Instructions
-------------
1. Get JWPlayer from here : http://www.longtailvideo.com/
2. Create a folder named "jwplayer"(without '"') at the root of your forum directory and extract player.swf into that folder.
3. Install the plugin(jwplayermycode.php).
4. That's all, and for usage details, read "Usage" below.

Usage
-------
For images/videos, use the following MyCode tag:
[video]linktovideo[/video]

For audios, use the following MyCode tag:
[audio]linktoaudio[/audio]

For more details on what video/images/audios formats are supported, please visit the following page:
http://www.longtailvideo.com/players/jw-...ech-specs/

Notes : Plugin approved, grab it here!
http://mods.mybb.com/view/jwplayer-mycode-embed
Awesome bro.
Forgot to mention that you have to upload the player.swf to your root dir.

And thanks Mark.
I dont get it..sorry for being noob but i want to know what does it do.
I mean any demo please.
I believe it basically plays media using a flash file when the mycode is used.
Looks nice. Can you give a demo?
Here i've uploaded it to my forum...
http://alturl.com/bfdi

I had to do some changes...

Changes:
1.Rename "player-viral.swf" too "player.swf"
2.Change the mycode's...
Video mycode became:
<object><embed src="http://cyberhackers.freehostia.com/player.swf" width='530' height='350' bgcolor="#ffffff" allowscriptaccess='always' allowfullscreen='true' flashvars='file=$1'</embed></object>

Mp3 mycode became:
<object><embed src="http://cyberhackers.freehostia.com/player.swf" width='470' height='20' bgcolor="#ffffff" allowscriptaccess='always' allowfullscreen='true' flashvars='file=$1'</embed></object>
3. In the mycode change <embed src="http://cyberhackers.freehostia.com/player.swf" too <embed src="http://YOURSITE.com/player.swf"
Yes, you had to do some changes to it. I'm sure I've mentioned it right? Anyways, demo can be found at
http://worldofanimeotaku.co.cc
Im trying to add this code and i also downloaded your plug in from http://mods.mybb.com/view/video-image-audio-player
but i am still failing......

I dont know wot im doiing wrong so please help me out i really need it please on this thread

http://community.mybb.com/thread-59696.html
Sorry, I haven't updated the code for a very long time, and I guess it doesn't work with the new MyBB 1.6. You can always get the player from JW Player and try making a code based on this. I haven't mess around with MyBB for a long time now.
Pages: 1 2