Lack of interest BB Code multiple options

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.


Well-known member
it would be great if we could have the option to allow more then one option in the BB Code. Now you'll need to write a php file to allow this, i think imho that it would be better that Xenforo got this out of the box.
Upvote 1
This suggestion has been closed. Votes are no longer accepted.
Can you give a bit more detail about what you mean? Maybe an example of what 'multiple options in BB Code' would look like, or what you are trying to achieve now but can't currently.
If you take a quote as an example:
[QUOTE="Martok, post: 1042652, member: 46288"]
The option in this case is the bit in quotation marks: "Martok, post: 1042652, member: 46288".

When you use the custom BB code system, it only supports a single option.

So if you wanted a BB code that would produce a div element with certain colours, with the Custom BB Code system you can do:


Which is set up like this:
<div style="border-color: {option}; border-size: 1px;">{text}</div>
Which would produce when used as above:
<div style="border-color: red; border-size: 1px;">Blah</div>

But you may want to do something like this:

[DIV=border-color: X, background-color: Y, color: Z]Blah[/DIV]

But to process that accordingly, you need to write PHP code to do so. I guess what would be nice is something like:
<div style="{option|1:name}: {option|1:value}; {option|2:name}: {option|2:value}; {option|3:name}: {option|3:value}">{text}</div>

There's many challenges and considerations to make here, but that gives you the gist of what is being suggested.
Last edited:
@Martok its just how @Chris D says by implementing this system in the core it gets easier to make better BB Code that only can do so much. Also people like me that can do a bit PHP work it would mean a great deal. Would be awesome to have the same option in TEXT to then you can bring out lots of nice stuff.
Top Bottom