PDA

View Full Version : BB Code Enhancements - Innovative Small MP3 Player BB Code


TheLastSuperman
12-20-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)

That doesn't seem to work either. Hmmm. I'm using hostgator - I don't know what the problem is.

Oh well!

Ahh HostGator, I bet it's the mod securities they have enabled on your server, if you have had other problems (specifically with vBa CMPS or vBa Links etc) then you must have them disable the mod securities. This mod also will not work if you have DJ's AME Mod installed.

For some who cannot get the mod to work etc, it is usally the AME mod, a Mod Security enabled on your server per your host OR something in your .htaccess file.

If you have an htaccess file add this to it:

RewriteEngine On
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoururl.com/.*$ [NC]

Replace the yoururl with your url, note I left the .com so if you are .net or .org change that, also leave the www as-is unless you have something setup like forums.yoursite.com etc etc.

Hope that helps some, and remember to always PM me if I do not reply promptly to your posts.

S-MAN

Enjoy!

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

EDIT: If your looking for an MP3 Player that can handle a playlist please check out Macc's new release in April 09 --> https://vborg.vbsupport.ru/showthread.php?t=210115

TheLastSuperman
12-22-2008, 01:21 AM
Demo does not require registration/log-in anymore!

Sorry & Thanks!

S-MAN

soundbarrierpro
12-22-2008, 12:17 PM
Not working. After adding the link and wrapping the tags it disappears.

TheLastSuperman
12-22-2008, 03:05 PM
Redo the BB code and thanks for the post soundbarrierpro!

I fixed it in IE per joh's post in the 3.8 thread, please REDO the BB Code and thanks for the help!

It works now in IE and FF!

Basically redo the BB code per the updated info above, making sure the .swf player file is in your forum ROOT folder!

Thanks again Joh!

S-MAN

TheLastSuperman
04-03-2009, 11:07 PM
I have had a few members ask about a playlist w/ this MP3 player (3.7 & 3.8 Releases)... nope, not yet but I did edit this mod's first post/description w/ a link to one released by Macc!

EDIT: If your looking for an MP3 Player that can handle a playlist please check out Macc's new release in April 09 --> https://vborg.vbsupport.ru/showthread.php?t=210115


See if it's to your liking!

S-MAN

MSA
07-12-2009, 04:09 PM
not working with me ?

TheLastSuperman
07-12-2009, 06:35 PM
not working with me ?

AME mod installed? Have you modified your htaccess files??

Let me know, I have had to host this for a few sites but currently you must make a $5 donation for me to host the player.

Tom Finley
07-18-2009, 06:44 AM
Thanks very much. Installed slick as a whistle. Just what I was looking for.

Tom

TheLastSuperman
07-18-2009, 03:03 PM
Thanks very much. Installed slick as a whistle. Just what I was looking for.

Tom

Your welcome & Enjoy!

(Please note the credits :D)

brandonroy
08-14-2009, 08:07 AM
It doesn't work for me. Installed as directed (with the player_mp3.swf file in my forums root) and the player doesn't show up at all in the posts.

I viewed source on the thread page and this is the code that shows, which appears to be correct when comparing to your demo - and your demo works for me so I'm not sure what the problem is.

<object type="application/x-shockwave-flash" data="player_mp3.swf?mp3=http://www.bluesrockworld.com/musicfiles/guitarsolo1.mp3" height="20" width="200">
<param name="movie" value="player_mp3.swf?mp3=http://www.bluesrockworld.com/musicfiles/guitarsolo1.mp3">
<param name="wmode" value="transparent">
</object>

TheLastSuperman
08-15-2009, 02:19 AM
It doesn't work for me. Installed as directed (with the player_mp3.swf file in my forums root) and the player doesn't show up at all in the posts.

I viewed source on the thread page and this is the code that shows, which appears to be correct when comparing to your demo - and your demo works for me so I'm not sure what the problem is.

<object type="application/x-shockwave-flash" data="player_mp3.swf?mp3=http://www.bluesrockworld.com/musicfiles/guitarsolo1.mp3" height="20" width="200">
<param name="movie" value="player_mp3.swf?mp3=http://www.bluesrockworld.com/musicfiles/guitarsolo1.mp3">
<param name="wmode" value="transparent">
</object>

Try adding / before the folder locations, that affects this on some sites/servers etc.

<object type="application/x-shockwave-flash" data="/player_mp3.swf?mp3=http://www.bluesrockworld.com/musicfiles/guitarsolo1.mp3" height="20" width="200">
<param name="movie" value="/player_mp3.swf?mp3=http://www.bluesrockworld.com/musicfiles/guitarsolo1.mp3">
<param name="wmode" value="transparent">
</object>

Let me know if that remedies this if not a simple Support Developer $5 donation will have this hosted for you off one of my sites and provide an alternate code to use w/ updated URL's as I have had to do in the past just too many now from the 3.8 thread to keep giving away bandwidth :p

It is not the site you snagged the URL from I can tell you that, I tried the song via the bb code on the gaming site I help run and... http://www.tournamentgamingworld.com/online/showthread.php?p=21363

S-MAN

brandonroy
08-15-2009, 07:32 PM
That doesn't seem to work either. Hmmm. I'm using hostgator - I don't know what the problem is.

Oh well!

TheLastSuperman
09-11-2009, 01:26 PM
That doesn't seem to work either. Hmmm. I'm using hostgator - I don't know what the problem is.

Oh well!

Ahh HostGator, I bet it's the mod securities they have enabled on your server, if you have had other problems (specifically with vBa CMPS or vBa Links etc) then you must have them disable the mod securities. This mod also will not work if you have DJ's AME Mod installed.

For some who cannot get the mod to work etc, it is usally the AME mod, a Mod Security enabled on your server per your host OR something in your .htaccess file.

If you have an htaccess file add this to it:

RewriteEngine On
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoururl.com/.*$ [NC]

Replace the yoururl with your url, note I left the .com so if you are .net or .org change that, also leave the www as-is unless you have something setup like forums.yoursite.com etc etc.

Hope that helps some, and remember to always PM me if I do not reply promptly to your posts.

S-MAN