The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Multiple Options BBCode
Hello,
I've found this for another VB version, but not for vers. 4.x.x. I would like to mention the following example: <img src="{param}" width="{option1}" height="{option2}"> [imgsize=100;200]http://.........[/imgsize] Thanks a lot. Greets |
#2
|
||||
|
||||
This code was for a BB Code mod here: https://vborg.vbsupport.ru/showthread.php?t=90869
But that doesn't work for VB 4 and it hasn't been updated. By default you can't use multiple options in vBulletin BB Codes, but if you want to control height and width you could make the following: imgsize Replacement: <img {option} src="{param}" /> Example: [imgsize="width='100' height='200'"]http://... url ...[/imgsize] You will get a warning from vBulletin but you can hit continue and it will work. Warning though- this could be a little dangerous- someone who knew what they were doing could exploit it to run arbitrary HTML. |
#3
|
|||
|
|||
It doen't work. You have to write width="100" and this isn't allowed to...
|
#4
|
||||
|
||||
you can use single quotes ' instead of " around the numbers, per my example.
--------------- Added [DATE]1291580188[/DATE] at [TIME]1291580188[/TIME] --------------- I've tested this on 4.0.8 and it works fine. |
#5
|
|||
|
|||
Oh sorry, I had forgotten to activate {option}, it's working now, thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|