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

XF 1.3 Help for bbcode custom

Discussion in 'XenForo Questions and Support' started by Ben', Mar 7, 2014.

  1. Ben'

    Ben' Member

    Hello guys :)
    I would to add a custom BB Code to my forum for creat an add-on and for this i need to add option. Like this : [tag="red"]text[/tag] I know how to do this but t don't know how to add option.

    Thanks :)
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    What does the bb code do?
    Color the text or the background?
     
  3. Ben'

    Ben' Member

    Background :)
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

  5. Ben'

    Ben' Member

    Can you explain the options, please ?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Just copy what is in the screenshots.
    Replace bg with tag.
     
  7. Ben'

    Ben' Member

    Ok, but if I want to add a number for option ? How to this ?
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    What do you mean, "add a number for option"?
     
  9. Ben'

    Ben' Member

    Yes
     
  10. cclaerhout

    cclaerhout Well-Known Member

    If you want to color the background as you color the text (simply with pressing a button), you can use this editor which has a wysiwyg background bb code.

    If you don't want to change the editor (for some usergroups) but want to have a default color hexa in the bb code option when you click on the button, then you can use this addon with the same above configuration. There's an option to set a default option and/or a defaut content (when you click on the button).
     

Share This Page