PDA

View Full Version : Here is a new one for you!



Syxguns
07-07-2012, 07:46 PM
I use to use phpBB, before I got sick of all of the code changes that I had to make. However, there was one item that I needed, and still do need. I'm hoping you can help me remember the BBCode for this.

Step one: Download the MP3 Player to your forum root.
Step two: Create the custom BBCode for the player to work.

Here is the problem. I can't remember the code i used. I know that I had to use both {param} and {option}, if I remember correctly I had {option1} and {option2}. Here is why I need the code.

A new artist uploads music to my site. I then create 20 sec. shorts of each song but place them all on the same track with only a couple second delay between each song sample. I then take the sample song (one track with all of the shorts on it) and place it in a directory in my forum called "sample_music". However, I create separate folders in that sample_music folder based on the style of music, ie: folk, rock, metal, blues, etc.

I'm not 100% sure but I think that the {param} was used to link to the MP3 player and the {option} 1 and 2 were used to link to the song. So in essence I would use:


folk,name_of_sample

Could you help me figure out the HTML to place this in my site? If I don't use it then I would have to have them download the sample to listen to. Many thanks BOP5!

BirdOPrey5
07-08-2012, 06:05 PM
Well it is a limitation of vBulletin that there is at most 1 option and 1 required parameter. There is no true way of getting 3 pieces of information in.

Do you have an mp3 player yet? There are several on vBulletin.org - this was the first in the results:
http://www.vbulletin.org/forum/showthread.php?t=235934

In VB the Option looks like this:

parameter here

One work around would be to have a different bbcode for each style of music- lilke-

[FOLKMP4], [ROCKMP3], etc...

For each MP3 type the directory would be hard coded in the replacement code.

Not ideal but it will work within the vBulletin limitations.

Syxguns
07-09-2012, 01:13 AM
Thanks, I did a lot of searching and found one that will allow me to attach an mp3 file and it will have a player play it. I just got it installed and was trying to test it, but for some reason I can't upload a 3MB file! I'll have to contact my host, as I don't have access to the php.ini file. I could have swore that I had that changed a long time ago! Leaves me scratching my head!! I'll either get that to work, or I'll try the one you suggested.

Thanks

BirdOPrey5
07-11-2012, 06:06 AM
Check out the main page when you log into the Admin CP, below all the "news" if you haven't dismissed it. The settings for various things are listed, included php max upload size (that vbulletin sees.)

Syxguns
07-11-2012, 07:10 PM
Check out the main page when you log into the Admin CP, below all the "news" if you haven't dismissed it. The settings for various things are listed, included php max upload size (that vbulletin sees.)

I figured it out! The max upload was fine, but the setting for the MP3 was not set high enough. I've tried a couple of different MP3 players and still no success. I've got one more to test out and I'm hoping I will get lucky with it. I really wanted that attachment MP3 to work, but I played with the code the best I could but had no success with it. I could just have users download the MP3 file to listen to the samples, but I don't think that would look very professional.

BirdOPrey5
07-13-2012, 07:37 AM
The problem may well be that attached files aren't stored with their native file extensions in vBulletin, so you're not linking to a .mp3 file but a php file with a bunch of code after it.