Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #32  
Old 01-15-2009, 05:02 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 Fungsten View Post
My board has many hacks on it. Could it be the embeded YouTube? I can Admin you if needed.
Never ever ever ever offer that lofl.... you guys kill me sometimes with handing out admin access like candy...

Try once more making sure the .swf player file is in your FORUM ROOT folder on your ftp and the code is exactly the same... also test via a post, why? Is it just not viewable in admincp?? If so then the reason why is simple... the swf file is in your forums root folder not your admincp folder.

So if all that's correct when you do the test via the
PHP Code:
[mp3]http://www.thesitesname.com/thesongsname.mp3[/mp3] 
mp3 tags for the new bbcode you will see it

Hope that helps

S-MAN
Reply With Quote
  #33  
Old 01-15-2009, 06:17 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
Never ever ever ever offer that lofl.... you guys kill me sometimes with handing out admin access like candy...

Try once more making sure the .swf player file is in your FORUM ROOT folder on your ftp and the code is exactly the same... also test via a post, why? Is it just not viewable in admincp?? If so then the reason why is simple... the swf file is in your forums root folder not your admincp folder.

So if all that's correct when you do the test via the
PHP Code:
[mp3]http://www.thesitesname.com/thesongsname.mp3[/mp3] 
mp3 tags for the new bbcode you will see it

Hope that helps

S-MAN
Here's what I have:

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>


Example:

[mp3]http://www.thelastsuperman.com/mymusic/TIWhateverYoulike.mp3[/mp3]

I also tried:

[mp3]http://www.MyForum.com/forum/Misunderstood.mp3[/mp3]

Title: mp3
Code Name: mp3

:erm::erm:

Still doesn't work. :erm:
Reply With Quote
  #34  
Old 01-15-2009, 08:29 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Allright... now that makes no sense... I guess your stumped so IF you can ignore my post saying such this one time then admin access if you want me to check it out but if that's what you have it SHOULD work... let me know what you want to do! Anything regarding access simply PM and I'll get to it tomorrow after work, tonight IF I have time but the wife did not have to go into work so most likely movie night
Reply With Quote
  #35  
Old 01-16-2009, 08:04 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 Fungsten View Post
Here's what I have:

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>


Example:

[mp3]http://www.thelastsuperman.com/mymusic/TIWhateverYoulike.mp3[/mp3]

I also tried:

[mp3]http://www.MyForum.com/forum/Misunderstood.mp3[/mp3]

Title: mp3
Code Name: mp3

:erm::erm:

Still doesn't work. :erm:
YOU had it right! I double-checked all settings and then tested and it works fine... possibly how you copied the text for the test URL or maybe your editor choice in vb... but it is working, check your admin forums on your site and your inbox on here.

(ohh and one more reminder to delete that account as it's a security risk etc etc)

S-MAN
Reply With Quote
  #36  
Old 01-23-2009, 03:06 PM
Sworm Sworm is offline
 
Join Date: Feb 2008
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will be great if the users can upload in a pre-dedicated webserver space theyre list of mp3.....

Without only the admins or who have the webserver access can upload the mp3 files.

Anybody want to post a site that offer a space for direct files (in this case mp3) uploads?
Reply With Quote
  #37  
Old 01-23-2009, 06:10 PM
the stig's Avatar
the stig the stig is offline
 
Join Date: Sep 2008
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sworm View Post
Will be great if the users can upload in a pre-dedicated webserver space theyre list of mp3.....

Without only the admins or who have the webserver access can upload the mp3 files.

Anybody want to post a site that offer a space for direct files (in this case mp3) uploads?
+1. IS there a site you guys can suggest where members can download their mp3s from their computers and use it? Not everyone has server access you know.
Reply With Quote
  #38  
Old 01-26-2009, 11:08 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guys I'm not sure if talking about things like this are the best idea on vB.. I mean I know the basic rules but past that there is so much on here to "know" lol...

I pretty much use I Tunes and that way it's legal, sometimes I rename the songs etc but not saying I don't have one or two by mistake or some transfer in the past but you know?! Also I have my own server err well rent looooooooottttttttssssss of hosting space so I can upload what I want as long as your not DL'ing it eh and I do not speak, type, or give permission to do so... so... we should be safe in theory from all the twisted copyright loopholes etc.

I would simply Google it if you need more info.
Edit: I do know many of the members on the TGW site have input site links where the file/song was and they have been enjoying it so I say google once more!

S-MAN
Reply With Quote
  #39  
Old 01-31-2009, 09:42 PM
fariborz khan's Avatar
fariborz khan fariborz khan is offline
 
Join Date: Jul 2007
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fariborz khan View Post
thanks i use this bbcode
how can i repeat my mp3(its read 1 time i want it repead my song)
no body can say my answer?
Reply With Quote
  #40  
Old 01-31-2009, 09:57 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 fariborz khan View Post
no body can say my answer?
I tried the normal code to repeat the song and it did not take, I do not have photoshop or cs3 so no program to modify or even view the .swf contents to see if it can be done there. If you wish to look up similar code and tinker then let us know if you get it working!

S-MAN
Reply With Quote
  #41  
Old 02-10-2009, 12:47 PM
Fynnon Fynnon is offline
 
Join Date: Jul 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It`s working but i have a strange black line above the player...anyone knows why ?
Seems like its something that separates the post content from the signature content but i would like to not have it htere! 10x

See screenshot:
Attachment 94562
Reply With Quote
Reply


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 11:28 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.07586 seconds
  • Memory Usage 2,358KB
  • 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
  • (2)bbcode_php
  • (8)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