[Banxix] Multiple Options For BBCode

xF2 Add-on [Banxix] Multiple Options For BBCode 1.0.0

No permission to download
Compatible XF Versions
  1. 2.0
  2. 2.1
Xenforo does not support BBCode having multiple options. This is a great feature for me when I was using vBulletin, so I write this addon.

Xenforo gives you two default parameters to create BBCode: {option} and {text}
HTML:
<span style="color: {option}">{text}</span>
[color=option]text[/color]

But since there is only one {option}, it limits the variety of BBCode.
You can still do something below. However the above can risk your site, and it does not actually work because BBCode system automatically sanitizes {option} and remove malformed characters.
HTML:
<span {option}>{text}</span>

With this addon, you have a better way
HTML:
<span style="color: {option1}; font-size: {option2}; font-family: {option3}">{text}</span>
[SPAN=red|20|Arial]Text[/SPAN]

You can also omit one or more options if you don't need them.
HTML:
[SPAN=red||]Something here[/SPAN]

Advanced usage with more complicated css, you could have this. No need for actual html.
HTML:
<div style="background: {option1}; border: {option3}px solid {option2}; border-radius: {option4}px {option5}px; -moz-border-radius: {option4}px {option5}px; -o-border-radius: {option4}px {option5}px;">{text}</div>
Screenshot at 30-12-18 10_26_22.png
Author
AnimeHaxor
Size
13.1 KB
Extension
zip
Downloads
7
Views
1,393
First release
Last update

More resources from AnimeHaxor

Similar resources

0.00 star(s) 0 ratings
Downloads
7
Updated
0.00 star(s) 0 ratings
Downloads
2
Updated
Auto generate threads thumbnail in thread list
0.00 star(s) 0 ratings
Downloads
12
Updated
[OzzModz/Banxix] Bump Thread Admin
Update thread to appear in latest posts without replying
0.00 star(s) 0 ratings
Downloads
22
Updated
Send multiple account reports to conversations
0.00 star(s) 0 ratings
Downloads
0
Updated