Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 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.6.x Rating:
Released: 12-20-2008 Last Update: Never Installs: 4
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

Show Your Support

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

Comments
  #2  
Old 12-22-2008, 01:21 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Demo does not require registration/log-in anymore!

Sorry & Thanks!

S-MAN
Reply With Quote
  #3  
Old 12-22-2008, 12:17 PM
soundbarrierpro soundbarrierpro is offline
 
Join Date: Nov 2007
Posts: 767
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working. After adding the link and wrapping the tags it disappears.
Reply With Quote
  #4  
Old 12-22-2008, 03: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

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
Reply With Quote
  #5  
Old 04-03-2009, 11:07 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 (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!

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
  #6  
Old 07-12-2009, 04:09 PM
MSA MSA is offline
 
Join Date: Aug 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working with me ?
Reply With Quote
  #7  
Old 07-12-2009, 06:35 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 MSA View Post
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.
Reply With Quote
  #8  
Old 07-18-2009, 06:44 AM
Tom Finley's Avatar
Tom Finley Tom Finley is offline
 
Join Date: Mar 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much. Installed slick as a whistle. Just what I was looking for.

Tom
Reply With Quote
  #9  
Old 07-18-2009, 03:03 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 Tom Finley View Post
Thanks very much. Installed slick as a whistle. Just what I was looking for.

Tom
Your welcome & Enjoy!

(Please note the credits )
Reply With Quote
  #10  
Old 08-14-2009, 08:07 AM
brandonroy brandonroy is offline
 
Join Date: Dec 2008
Location: Louisiana
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Code:
<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>
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 07:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08022 seconds
  • Memory Usage 2,302KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete