• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Adding more than one option to a BBcode

#1
Hello,

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
#2
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
#4
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.