XF 1.3 Adding more than one option to a BBcode


I am creating a custom BBcode using the BBcode manager in XenForo. However I need to have more than one option in the bbcode.

For instance [bbcode id="50" color="75]

Is this possible?

Chris D

XenForo developer
Staff member
It's not possible using a simple replacement.

Using a PHP callback you can use PHP to split the option into different parts, just like the default QUOTE bb code:
[QUOTE="dmurphy, post: 775798, member: 67106"]

Chris D

XenForo developer
Staff member
If you look at the file:

library/XenForo/BbCode/Formatter/Base.php and look for the function renderTagQuote you will see an example of how the option string is split into multiple options.