vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   BB Code Enhancements - Innovative Small MP3 Player BB Code (https://vborg.vbsupport.ru/showthread.php?t=199439)

TheLastSuperman 12-20-2008 10:00 PM

Innovative Small MP3 Player BB Code
 
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:
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>

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!)

Now use the tags [mp3]Full Song URL Here![/mp3]

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

Demo

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:20 AM

Demo does not require registration/log-in anymore!

Sorry & Thanks!

S-MAN

soundbarrierpro 12-22-2008 12:27 PM

Sorry, I responded in the 3.6 forum by accident. I just get a blank spot where the player should be. if I click around on the spot a blue box appears as it's highlighted. once I click off though it disappears again.

I'm using 3.7.4

I fixed the problem......your code needs to be fixed see bolded below

Quote:

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

TheLastSuperman 12-22-2008 03:02 PM

I fixed it in IE per joh's post in the 3.8 thread, please check the new method and compare to yours and see which one works better in your opinion 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 12-22-2008 03:09 PM

Actually, use the update I provided as your work-around is not required and the simpler the better IMO :D

Thanks though for the attempt, seriously ;)

S-MAN

veenuisthebest 12-22-2008 05:09 PM

This looks sweet superman :) Will try it out.

Btw, I hope the code is similar for all 3 versions of vb.

And what happens if user enters a url which does not point to a .mp3

Thank you

TheLastSuperman 12-22-2008 06:56 PM

Quote:

Originally Posted by veenuisthebest (Post 1691256)
This looks sweet superman :) Will try it out.

Btw, I hope the code is similar for all 3 versions of vb.

And what happens if user enters a url which does not point to a .mp3

Thank you

It's identical but most members here on vB.org are not experienced in coding at all so you have to post your mods even if compatible for all versions in each forum for add-ons etc else they will never even look for it eh? ;)

Url w/o mp3 = nothing.

Did you want a video player?

There are other mods for that but I can whip you up one real quick?

Or a download BB code?
The Box w/ the DL folder and green arrow button shown here --> http://www.tournamentgamingworld.com...read.php?t=988

At the very bottom just above my sig is a BB Code!

Lemme know!

easyzuddin 12-24-2008 01:06 AM

work good but can it play all the mp3 list in the root folder?

TheLastSuperman 12-24-2008 01:34 AM

Quote:

Originally Posted by easyzuddin (Post 1692516)
work good but can it play all the mp3 list in the root folder?

Only the one you list in the between the [mp3]http://www.yoursite.com/yourmusicfolder/yoursong.mp3[/mp3] tags! You can create a folder instead of using root, try to keep your root folder clean to make it easy on you, name the folders where you know what they do or have in them etc.

It will not play song after song or loops as it's just a simple BB code for use ;).

xXEsEtUlOnXx 12-25-2008 05:07 PM

Thank you, installed!
Tested on Firefox, Safari and Camino (on Mac OS X) it works perfectly!

chjp 12-29-2008 10:37 AM

Thank you.
I have another file flash player mp3. Please help me change your flash player to my file flash.

goxy63 12-29-2008 11:30 AM

Can it be that mine is not working cuz I have 'passiveVid' installed
https://vborg.vbsupport.ru/showthrea...ght=passiveVid

Or Iam doing something wrong!?

Mp3 is just not displayed, just flickers and shows nothing, in bb code list player is there
In BB Code Manager player is not displayed if I use this code you gave us, but using
'soundbarrierpro' (post 3 here) it shows up in bb custom menager

But any of these two replacement cdes just dont work for me
Vb 3.7.4

Any Ideas ?
Thanks

1320Nation 12-29-2008 06:23 PM

I have a heavily modified 3.7.3 board and this mod installed correctly works perfectly.

Thanks!

ANGLICO 12-30-2008 12:05 AM

Even though I'm not a programmer (last language I was proficient at was FORTRAN IV in the 70's) and very new to vBulletin, it worked for me.

THANK YOU very much.

goxy63 12-30-2008 09:23 PM

Was wondering why this simple code didnt work out for me, the thing is that linked external mp3 cuz I was thinking ..... but this mod only supports internal mp3 files
Does anyone know how to modify this code for external, or is there any othe mode for mp3 similar to this one ? (for external linx of course)

Thanks a lot for any pointers

TheLastSuperman 12-30-2008 11:16 PM

Quote:

Originally Posted by goxy63 (Post 1697448)
Was wondering why this simple code didnt work out for me, the thing is that linked external mp3 cuz I was thinking ..... but this mod only supports internal mp3 files
Does anyone know how to modify this code for external, or is there any othe mode for mp3 similar to this one ? (for external linx of course)

Thanks a lot for any pointers

Ok, so you read the part about hard coding into your site and you do not want to use it as a bb code or?

Here's the breakdown...

It up as a simple bb code now per the instructions above. You can use this yourself after entering in the custom bb code via admincp by placing the songs url location INCLUDING the .mp3 extension in between the [mp3]http://www.thesitesnamethesongison.com/songname.mp3[/mp3] and it will play!

IF you want to hard code it you have to take the code back to it's roots i.e. remove the {param} and place the url of the song there, example:

BB Code 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>

For use if hard-coding into forums/templates etc:

Code:

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

Also, remember to upload the player swf file to your forum root and you should be done ;)

If you were actually trying it as a bb code then delete what you have and read the above carefully and try again, it will work :D.

S-MAN

CMGU 01-01-2009 12:49 AM

thank u very much

Bawtneez 01-01-2009 02:23 AM

Installed.

Any hope of this working on Safari or Google Chrome?

TheLastSuperman 01-01-2009 02:50 PM

Quote:

Originally Posted by Bawtneez (Post 1698275)
Installed.

Any hope of this working on Safari or Google Chrome?

Yeap ;)

Quote:

Originally Posted by xXEsEtUlOnXx (Post 1693512)
Thank you, installed!
Tested on Firefox, Safari and Camino (on Mac OS X) it works perfectly!


Thelonius Beck 01-01-2009 04:30 PM

**Disregard**

Bawtneez 01-02-2009 03:03 AM

Quote:

Originally Posted by TheLastSuperman (Post 1698552)
Yeap ;)

Perfect bro. Thank you =]

TheLastSuperman 01-08-2009 01:04 PM

Quote:

Originally Posted by Bawtneez (Post 1698978)
Perfect bro. Thank you =]

No problem!

Quote:

Originally Posted by Thelonius Beck (Post 1698626)
**Disregard**

If you have a ? just pm ;)

Yuvraj420 01-15-2009 12:48 AM

thankyou

TheLastSuperman 01-15-2009 12:11 PM

Quote:

Originally Posted by Yuvraj420 (Post 1712784)
thankyou

Your Welcome! :D

TheLastSuperman 04-03-2009 11:06 PM

I have had a few members ask about a playlist w/ this MP3 player... nope, not yet but I did edit this mod's first post/description w/ a link to one released by Macc!

Quote:

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

stevebullman 03-15-2010 08:42 PM

I cannot play anything http://. If I erase the http, it shows up fine. what is the problem no it does not play. Using chrome btw.

TheLastSuperman 03-17-2010 11:26 AM

Quote:

Originally Posted by stevebullman (Post 2004310)
I cannot play anything http://. If I erase the http, it shows up fine. what is the problem no it does not play. Using chrome btw.

Chrome might be the issue err the two working together rather... please post your code below and I'll check it in chrome myself ;).

dej 04-27-2011 02:05 PM

I'm getting this error:

Code:

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>

:confused:

nfaesnet 08-08-2011 11:12 PM

we can use this icon for thise service

https://vborg.vbsupport.ru/external/2011/08/25.gif

or thise:

https://vborg.vbsupport.ru/

or thise:

https://vborg.vbsupport.ru/external/2011/08/26.gif


All times are GMT. The time now is 05:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02248 seconds
  • Memory Usage 1,811KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete