The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
HTML image code convert to BBCode?
I'm just beginning to understand the ins and outs of BBCoding, but I do believe that this should be relatively easy, but I just cannot get it to work. Essentially I'm looking tryong to covert an HTML image code to multi-option BBCODE (a couple of different ones actually).
This it a sample of the easier HTML, the : Code:
<img src="http://www.imageurlhere.gif" align=left hspace=10 alt="image description"> Now, I know that it is the {param} and {option} items that I need to use in the BBCode manager, but I simply cannot figure it out for some reason. The items in blue are of primary interest, the items in red are "wishful thinking" options. |
#2
|
||||
|
||||
Have you read the manual on this? Custom BB Codes Basically, you may have two 'options' for your bbcode - a param and an option. That should do for your two blue items.
|
#3
|
|||
|
|||
Quote:
This is what I have entered into the Replacement section Code:
<img src="{param}" align left hspace=10 alt="{option}"> All I get in return is the image url between the BBCode options. |
#4
|
||||
|
||||
Use [option] is set to Yes? And how are you 'calling' your bbcode? [code=option]param[/code] ? Let's see an example.
(and you need a / at the end of your image code.... /> ) |
#5
|
|||
|
|||
Quote:
It is possible to have multiple options in a single code to cover my "wish list items"? |
#6
|
|||
|
|||
Wouldn't it make more sense to have:
<img src="{option}" align=left hspace=10 alt="{param}" /> This way it works by doing: much like the URL BBCode works. Also, I am not understanding your question. Multiple options meaning multiple uses of the {option} tag? {option} tag can be used as many times as you like, but remember you can only have 1 option so it has to be the same value. |
#7
|
|||
|
|||
Quote:
Oh, the swapping the param and option codes is a good idea, thanks again |
#8
|
|||
|
|||
You can only have 1 value of {option} and 1 value of {param}
(for the purpose of this discussion, {option} is image.jpg) <img src="{option}" align="{option)" alt="{param}" /> would result in: <img src="image.jpg" align="image.jpg" alt="Some text" /> |
#9
|
|||
|
|||
Can I step this code up to have two paramaters if two options cannot work?
For example, I would like to display a thumbnail with mouse-over text, but have it link to a full sized image. The HTML i have in place is: Sorry to flip the suggestion back (URL and description), but in this case the two URLs would be param1 and param2, then the description text would be the option. This looks logical to me, but is it a possibility or so I need to place a code in a code? |
#10
|
||||
|
||||
The way the bbcode is, you may only pass two thingiemabobs - one of them is called {param} and the other is called {option}. And when you place them in your code, they get called this way - [code={option}]{param}[/code] So, two is the magic number. You may call them both parameters or both options, but you only get to pass two of these thingiemabobs to the code.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|