PDA

View Full Version : Multiple Options BBCode


noteviz
12-04-2010, 11:34 PM
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}">

http://.........

Thanks a lot.

Greets

BirdOPrey5
12-05-2010, 03:27 PM
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: http://... url ...

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.

noteviz
12-05-2010, 06:07 PM
It doen't work. You have to write width="100" and this isn't allowed to...

BirdOPrey5
12-05-2010, 06:11 PM
you can use single quotes ' instead of " around the numbers, per my example.

--------------- Added 1291580188 at 1291580188 ---------------

I've tested this on 4.0.8 and it works fine.

noteviz
12-05-2010, 06:18 PM
Oh sorry, I had forgotten to activate {option}, it's working now, thanks ;)