PDA

View Full Version : Innovative Small MP3 Player BB Code


TheLastSuperman
12-21-2008, 10:00 PM
Innovative Small mp3 Player BB Code

By:
https://vborg.vbsupport.ru/external/2010/08/16.png


This BB Code will allow users to have a small mp3 player in:


Posts in the forums
Signatures i.e. Song of the day/week etc.
anywhere you can use BB Code Tags


I found this while browsing: http://www.phpbb3bbcodes.com as I have some phpBB boards of my own and was tinkering as usual ;). It was rather simple to add as a BB Code to VBulletin and did not take much time to make it work in vB via the {param} tags etc!

Credit for the Code goes to phpbb3codes.com and the creator of the .swf player i.e. djgalix!

Time to install: 1-2 mins

Instructions:


Download the .zip and extract the SWF player
Upload the player_mp3.swf into your forum root folder
Add new BB code:


AdminCP --> Custom BB Codes --> Add New BB Code

Title: mp3
Tag: mp3
Replacement: <object type="application/x-shockwave-flash"
data="player_mp3.swf?mp3={param}" width="200" height="20" />
<param name="movie" value="player_mp3.swf?mp3={param}" />
<param name="wmode" value="transparent">
</object>

Use {option} = NO

*The Player .swf file HAS to be in your forums ROOT folder, this will make it NOT visible in AdminCP as that is another folder i.e. admincp folder BUT it will display FINE in the forums via FireFox and Internet Explorer! (Thanks for the catching that bug where it did not display joh (https://vborg.vbsupport.ru/member.php?u=134381)!)

Now use the tags Full Song URL Here!

*Experienced Users can take the code replacement and hard code into forums where desired!

Demo (http://www.tournamentgamingworld.com/online/showthread.php?t=981)

Enjoy!

TheLastSuperman :rolleyes:
http://www.innovationbyinstinct.com

dej
03-07-2011, 08:14 PM
When I use your replacement code:

<object type="application/x-shockwave-flash"
data="player_mp3.swf?mp3={param}" width="200" height="20" />
<param name="movie" value="player_mp3.swf?mp3={param}" />
<param name="wmode" value="transparent">
</object>


I get this error when trying to save the bbcode:


The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.

* <object type="application/x-shockwave-flash" data="player_mp3.swf?mp3={param}" width="200" height="20" /> <param name="movie" value="player_mp3.swf?mp3={param}" /> <param name="wmode" value="transparent"> </object>r:

TheLastSuperman
03-08-2011, 01:09 AM
When I use your replacement code:

<object type="application/x-shockwave-flash"
data="player_mp3.swf?mp3={param}" width="200" height="20" />
<param name="movie" value="player_mp3.swf?mp3={param}" />
<param name="wmode" value="transparent">
</object>


I get this error when trying to save the bbcode:


The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.

* <object type="application/x-shockwave-flash" data="player_mp3.swf?mp3={param}" width="200" height="20" /> <param name="movie" value="player_mp3.swf?mp3={param}" /> <param name="wmode" value="transparent"> </object>r:

3.5 forum? I don't have one lying around to test on however should work fine, same code for 3.6/7/8 and no issues.

Did you enter it in correctly?

dej
03-08-2011, 03:41 PM
3.5 forum? I don't have one lying around to test on however should work fine, same code for 3.6/7/8 and no issues.

Did you enter it in correctly?

Actually, I tried it on 4.1.2 :o

But, before I did, I checked the code and couldn't find a reason why it wouldn't work on 4x - but guess I was wrong =/

I really wanted to use your bb because your swf is exactly the same one our forum used *before* migrating to VB. And, I think it's the best looking one (yours).

Any way this can be adapted to 4x?

Thanks