@yahooooh
If you don't have the mp3 extension in Attachment Manager add it, pick the biggest size that should be allowed for mp3 files, and MIME Type you need to enter is "audio/mpeg".
Now, go to the creation of new BB Codes..
Title: mp3
BB Code Tag Name: mp3
Replacement:
HTML Code:
<script type='text/javascript' src='http://yoursite.com/flashplayer/jwplayer.js'></script>
<div id='mediaspace_$attachment[attachmentid]'>Loading the player...</div>
<script type='text/javascript'>
jwplayer('mediaspace_$attachment[attachmentid]').setup({
'flashplayer': 'http://yoursite.com/flashplayer/player.swf',
'file': 'http://yoursite.com/attachment.php?attachmentid=$attachment[attachmentid]',
'controlbar': 'bottom',
'width': '720',
'height': '24',
'type': 'sound'
});
</script>
Example: [mp3]2948[/mp3]
Description: Use this BB Code to play MP3 files that are uploaded as attachments.
Use {option} : No
Button Image: Optional
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Save...
About this BB Code for vBulletin 4, I'll install vb4 on localhost later, so I'll see what I can do, shouldn't be much different than this one.