The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Using Multiple param in BBCode
Okay, I'm not a coder! I tend to search, try, copy, paste, and follow examples! LOL
So I've been searching forever for an MP3 player to embed in my forum posts. I finally found one that works great, but I need a little help with the BBCode Manager on it. This is the code I'm using: Code:
<object type="application/x-shockwave-flash" data="https://www.mysite.com/music/MP3Player/button/musicplayer.swf?&song_url=https://www.mysite.com/music/sample_songs/{param1}/{param2}.mp3" width="17" height="17"> <param name="movie" value="https://www.mysite.com/music/MP3Player/button/musicplayer.swf?&song_url=https://www.mysite.com/music/sample_songs/{param1}/{param2}.mp3&" /> <img src="noflash.gif" width="17" height="17" alt="" /> </object> The item was downloaded from here: [URL=http://musicplayer.sourceforge.net/]Button Version 0.1[URL] There is a test page for the item and that is where I got the code from. The test page is here: Test Page so you don't have to read it all. My primary problem is that my site requires a ton of sample songs that will go into designated folders, "{param1}", and within that folder is a specific MP3, "{param2}. The following are the test I've done so far. 1) typed entire URL - worked 2) used {param}.mp3 - worked 3) used {param1}{param2}.mp3 and typed: [MP3]Folder_Name/Song_Name[/MP3] - fail 4) used {param1}/{param2}.mp3 - failed 5) used {param1}{param2} and added the ".mp3" at the end of the text - failed I've probably tried a couple of other ways of doing it as well. I tried no space between folder name and MP3. I've tried "/" between the two, I've even tried using a comma between the folder and MP3 name. The darn thing is that I've done this before, I just can't remember how I did it. Any help you can provide will be greatly appreciated. This may mean that I have to use the {option} command, but I don't think I did that last time. Many thanks! |
#2
|
|||
|
|||
You only get one parameter and one option. In this example:
Code:
[mytag=option]This is the parameter[/mytag] |
#3
|
||||
|
||||
Thanks kh99, but is there a way for me to accomplish this by using the {option}? Something like this maybe?
Code:
https://www.mysite.com/music/sample_songs/{option}/{param}.mp3 |
#4
|
|||
|
|||
Quote:
I think you could just do this: Code:
[MP3]Folder_Name/Song_Name[/MP3] |
#5
|
||||
|
||||
Appreciate the assistance. I will use the idea you just suggested.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|