vb.org Archive

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

TheLastSuperman 12-20-2008 10:00 PM

Innovative Small MP3 Player BB Code
 
1 Attachment(s)
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

Quote:

Originally Posted by Mp3 Player Not Working?!?! See Below
Quote:

Originally Posted by brandonroy (Post 1868092)
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 :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

goxy63 12-21-2008 06:10 PM

Nice
Will try this out soon

Thanks
:D

SwollenCranium 12-21-2008 09:37 PM

Your demo is asking for a user name and pass, guy.

TheLastSuperman 12-22-2008 01:17 AM

Quote:

Originally Posted by SwollenCranium (Post 1690640)
Your demo is asking for a user name and pass, guy.

Not anymore!

Thanks for the catch!

:D

joh 12-22-2008 01:07 PM

looks great and it works in fire fox but it does not show up in internet explorer browser.
can you help me out with this?

TheLastSuperman 12-22-2008 02:55 PM

joh - thanks for the catch!!!

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

joh 12-22-2008 05:08 PM

thanks for that quick fix, but what about the adding the button to show up.
when I add the image it mess with the cod and remove the player and show the code.

joh 12-22-2008 05:50 PM

got it fixed, i was using an image that was not on the site, but once i link to an image on my own site it worked.

TheLastSuperman 12-22-2008 06:30 PM

Good to hear Joh, hope you enjoy :D

S-MAN

kmohamed 12-23-2008 02:30 AM

THANK U MAN THIS IS GREAT
I LOVE IT
CAN U TELL WHAT DO I NEED TO DO IF I WANT TO
Use {option} = YES

TheLastSuperman 12-23-2008 11:35 AM

Quote:

Originally Posted by kmohamed (Post 1691672)
THANK U MAN THIS IS GREAT
I LOVE IT
CAN U TELL WHAT DO I NEED TO DO IF I WANT TO
Use {option} = YES

I tried it first using option = yes but nothing yet, tinker away though!

If I get any working differently I'll post them ;)

joh 12-23-2008 09:34 PM

can this be made to detect the .mp3 and than automatically code it?

TheLastSuperman 12-23-2008 09:49 PM

Quote:

Originally Posted by joh (Post 1692381)
can this be made to detect the .mp3 and than automatically code it?

You mean detect the songs in a folder on the server, then create the codes to play each on one page?

Maybe...

franzis 12-28-2008 11:44 AM

Hello,

Several mp3 can play in a row, so with a BB code?

Code:

==> [mp3]song1, song2,song3......[/mp3]
LG Franzis

TheLastSuperman 12-28-2008 05:29 PM

Quote:

Originally Posted by franzis (Post 1695474)
Hello,

Several mp3 can play in a row, so with a BB code?

Code:

==> [mp3]song1, song2,song3......[/mp3]
LG Franzis

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 :D so I gave details on how-to for vb!

S-MAN

franzis 12-29-2008 03:10 PM

Ok, thx, i think i will because what tinker....

LG Franzis

ANGLICO 12-29-2008 05:49 PM

like me!

okay, I uploaded your file to the/public_html/forums root and now I see the mp3 player bar - looks nice and simple!

Tried to link to a couple of mp3 files on the internet, no success

Created a sub-folder under Forums called music and uploaded an mp3 file there - this is my preferred method anyway.
then used a path something like:
[mp3]www.mywebsite/home/anglico1/public_html/forums/music/rokmc-gon_zo_ga.mp3[/mp3]
also tried other locations for the "/home/"

I know this should be simple, but I'm an old fart and just learning, suggestions appreciated!

Thanks

ANGLICO 12-29-2008 06:23 PM

I had used invalid url's

once corrected, the player works great!

Thank you very much.

TheLastSuperman 12-31-2008 02:00 PM

Quote:

Originally Posted by ANGLICO (Post 1696621)
I had used invalid url's

once corrected, the player works great!

Thank you very much.


Good to hear and no problem!

Also in case any of you did not want to use as a BB code and hard code it into a template etc...

Details Here --> https://vborg.vbsupport.ru/showpost....1&postcount=16

S-MAN

fariborz khan 01-08-2009 05:30 PM

thanks i use this bbcode
how can i repeat my mp3(its read 1 time i want it repead my song

Fungsten 01-08-2009 06:25 PM

Is there a URL where the code can be tested? TIA.

TheLastSuperman 01-08-2009 07:19 PM

Hold tight and I'll have something for both of you, have to redo the wifes Itunes real quick ;)

TheLastSuperman 01-08-2009 07:27 PM

Quote:

Originally Posted by Fungsten (Post 1705427)
Is there a URL where the code can be tested? TIA.

Ohh lol, sure just click the demo link and in the post where I tell our members aboutt he code w/ an example URL listed ;) so just use that sample link to test :D

Fungsten 01-08-2009 09:20 PM

Quote:

Originally Posted by TheLastSuperman (Post 1705478)
Ohh lol, sure just click the demo link and in the post where I tell our members aboutt he code w/ an example URL listed ;) so just use that sample link to test :D

I didn't see that! Thanks!

On Edit:

Well now the when I click to play nothing happens. And here's how it shows up in Firefox:


" width="200" height="20" />
http://www.thelastsuperman.com/mymusic/TIWhateverYoulike.mp3" />

TheLastSuperman 01-11-2009 11:26 PM

Quote:

Originally Posted by Fungsten (Post 1705586)
I didn't see that! Thanks!

On Edit:

Well now the when I click to play nothing happens. And here's how it shows up in Firefox:


" width="200" height="20" />
http://www.thelastsuperman.com/mymusic/TIWhateverYoulike.mp3" />

You have something else intalled that conflicts or you need to double check your install again ;)

Fredirector.php is listed in the text that will not display i.e. everyone hit to quote his post and see the code as this:

PHP Code:

Removed Fungsten's Request and no problem at all, as long as you saw the code already and have the info you needed to get it working!! 


Fungsten 01-12-2009 05:56 PM

Quote:

Originally Posted by TheLastSuperman (Post 1709111)
You have something else intalled that conflicts or you need to double check your install again ;)

Fredirector.php is listed in the text that will not display i.e. everyone hit to quote his post and see the code as this:

PHP Code:

[font=Courier New]" width="200" height="20" /> [/font]
25252Fredirector.php%25253Furl%25253Dhttp%2525253A%2525252F%2525252Fwww.thelastsuperman.com%2525252Fmymusic%2525252FTIWhateverYoulike.mp3"
][font=Courier New][color=#ff8000]//www.thelastsuperman.com/mymusic/TIWhateverYoulike.mp3[/color][/font][/url]" /> 


Thank you. Check your PM.

TheLastSuperman 01-12-2009 09:07 PM

No problem! Now, check yours lol ;)

Ch13f 01-13-2009 01:34 AM

thanks!, installed.

TheLastSuperman 01-15-2009 12:10 PM

Quote:

Originally Posted by Ch13f (Post 1710441)
thanks!, installed.

Your Welcome! :D

Fungsten 01-15-2009 03:16 PM

Quote:

Originally Posted by TheLastSuperman (Post 1710196)
No problem! Now, check yours lol ;)

My board has many hacks on it. Could it be the embeded YouTube? I can Admin you if needed.

TheLastSuperman 01-15-2009 05:02 PM

Quote:

Originally Posted by Fungsten (Post 1713483)
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

Fungsten 01-15-2009 06:17 PM

Quote:

Originally Posted by TheLastSuperman (Post 1713608)
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:

TheLastSuperman 01-15-2009 08:29 PM

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

TheLastSuperman 01-16-2009 08:04 PM

Quote:

Originally Posted by Fungsten (Post 1713689)
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

Sworm 01-23-2009 03:06 PM

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?

the stig 01-23-2009 06:10 PM

Quote:

Originally Posted by Sworm (Post 1722452)
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.

TheLastSuperman 01-26-2009 11:08 PM

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

fariborz khan 01-31-2009 09:42 PM

Quote:

Originally Posted by fariborz khan (Post 1705376)
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?

TheLastSuperman 01-31-2009 09:57 PM

Quote:

Originally Posted by fariborz khan (Post 1730361)
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

Fynnon 02-10-2009 12:47 PM

1 Attachment(s)
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


All times are GMT. The time now is 05:49 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.02219 seconds
  • Memory Usage 1,860KB
  • 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
  • (4)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete