Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
Innovative Small MP3 Player BB Code Details »»
Innovative Small MP3 Player BB Code
Version: 0.0.1, by TheLastSuperman (Senior Member) TheLastSuperman is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.8.x Rating:
Released: 12-20-2008 Last Update: Never Installs: 82
Supported
Re-useable Code Additional Files  

Innovative Small mp3 Player BB Code

By:


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

Quote:
Originally Posted by Mp3 Player Not Working?!?! See Below
Quote:
Originally Posted by brandonroy View Post
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:

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

Download Now

File Type: zip player_mp3.zip (4.8 KB, 715 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 03-18-2009, 11:48 PM
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
Location: In a cyber world...
Posts: 999
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
Only one song... if you try it how I coded w/o the Option set to yes then you cannot play several as your forums will want to place the [url] tags around the second song url and it errors it out!

If anyone get's it to do such then please post and I'll hug you even

I know there are mods on here for actual players but I wanted something slim and found it so I gave details on how-to for vb!

S-MAN
You could get around this but you would need to change the flashvar upon each mp3 loading, which would require a dynamic playlist, either flash based or PHP. I normally add a flash based playlist unless I require a flashvar version, which is normally associated with a single page load.
Reply With Quote
  #53  
Old 03-18-2009, 11:54 PM
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
Location: In a cyber world...
Posts: 999
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by subvertbeats View Post
Can this play a .m3u stream ?

Thanks!
Some players will play an .m3u stream, but you need to alter the main url, so that the flash player will be forced to thinking it is playing a .mp3 file. Flash mp3 players are normally designed to play just mp3's, unless designed specifically to play streams only - some players will do both, but it depends on how the author has coded the player.
Reply With Quote
  #54  
Old 03-19-2009, 08:46 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by syrus.xl View Post
Some players will play an .m3u stream, but you need to alter the main url, so that the flash player will be forced to thinking it is playing a .mp3 file. Flash mp3 players are normally designed to play just mp3's, unless designed specifically to play streams only - some players will do both, but it depends on how the author has coded the player.
Thanks for your post!

If you can/have time to DL and see about altering the code I'll let you re-release the mod in your name as I believe that would be a big hit... only thing is to everyone there are other mp3 players w/ playlist on here but not a quick and simple one like I found and showed you all so remember the saying... beggers can't be choosers eh?

Let me know Syrus.xl if you can and I appreciate regardless.

S-MAN
Reply With Quote
  #55  
Old 03-19-2009, 10:27 PM
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
Location: In a cyber world...
Posts: 999
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was thinking of re-designing the mp3 player, they are quite easy to design and code, with an optional flashvar controlling the player to accept a playlist or play just a single track. Injecting flashvars in to a flash file is quite easy, and allows quite a lot of control.

We could have '&playlist=1' to activate it within a parameter field, or if set to '0' to play just a single mp3. Streaming radio is quite easy, it's basically just an adjustment to the input url. I designed a SHOUTcast flash player a few days ago, but not released it yet - I need to tidy up the code a bit and write the docs (the part I dread! lol).
Reply With Quote
  #56  
Old 03-22-2009, 10:50 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by syrus.xl View Post
I was thinking of re-designing the mp3 player, they are quite easy to design and code, with an optional flashvar controlling the player to accept a playlist or play just a single track. Injecting flashvars in to a flash file is quite easy, and allows quite a lot of control.

We could have '&playlist=1' to activate it within a parameter field, or if set to '0' to play just a single mp3. Streaming radio is quite easy, it's basically just an adjustment to the input url. I designed a SHOUTcast flash player a few days ago, but not released it yet - I need to tidy up the code a bit and write the docs (the part I dread! lol).
Shoutcast? Hmm interesting... pm me when you release it please and feel free to redesign the player and if so then lots of pretend hugs eh?
Reply With Quote
  #57  
Old 04-03-2009, 11:05 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #58  
Old 04-30-2009, 08:59 PM
mugz mugz is offline
 
Join Date: Feb 2006
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed and working I really like it. I run a ringtone site and want users to preview the song before download the ringtone. What I want is when a user uploads the ringtone it then gives them the option to have the player added or auto does this when ever a .mp3 is uploaded onto the site? Is this possible for this?

Right now I have to upload the ringtone then compy the attachment http address then add the code
Reply With Quote
  #59  
Old 04-30-2009, 09:56 PM
kkingg's Avatar
kkingg kkingg is offline
 
Join Date: Feb 2009
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hava installed but I cant working

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

Title: mp3 ok
Tag: mp3 ok
Replacement: ok
Example: ???

thanks
Reply With Quote
  #60  
Old 05-10-2009, 02:01 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mugz View Post
I have installed and working I really like it. I run a ringtone site and want users to preview the song before download the ringtone. What I want is when a user uploads the ringtone it then gives them the option to have the player added or auto does this when ever a .mp3 is uploaded onto the site? Is this possible for this?

Right now I have to upload the ringtone then compy the attachment http address then add the code
Send me a PM and specify more what you mean! I can do a lot of things but it depends on how your forums are currently setup and what version your running, get back to me via PM and we'll discuss if what your looking for is possible.

Quote:
Originally Posted by kkingg View Post
I hava installed but I cant working

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

Title: mp3 ok
Tag: mp3 ok
Replacement: ok
Example: ???

thanks
Ahh so you mean after you entered it and saved the BB code in admincp it does not show the player when viewing your custom BB codes??

IF that is the case then think about it ....

You uploaded the players .swf file to your forum root right? (you should have so say yes lol) and that means it is ONLY in the root not the folder named admincp eh so it is NOT viewable via admincp, simply go to a private forum or admin only forum and enter in the BB code w/ a valid url and you'll see it works IF again, that was the case.

S-MAN

Edit: Ohh and if anyone sees this edit in the future... you do not have to wait that long for a reply as I simply forget to check up on things sometimes so send me a PM for a quicker answer.
Reply With Quote
  #61  
Old 05-15-2009, 05:42 PM
kkingg's Avatar
kkingg kkingg is offline
 
Join Date: Feb 2009
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:41 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.06961 seconds
  • Memory Usage 2,350KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete