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

Custom BB Code

Discussion in 'XenForo Pre-Sales Questions' started by v8td, Mar 30, 2016.

Thread Status:
Not open for further replies.
  1. v8td

    v8td Member


    Where i can define the new class and function for PHP Callback?

    Please explain me this help line:
    "This callback will receive these parameters: array $tag, array $rendererStates, XenForo_BbCode_Formatter_Base $formatter."

    - $tag = is the tag of the custom bb code? ... So i can define a generic class, and function where i use a php switch (if($tag == "tag1"){}... else if($tag == "tag2")....) ?

    I must echo the restul, or just use return $result?

    - what is $redererStates?

    - how to pass parameters? As json?
    - can i define as many params as i need?

    Some example for a more complicated custom bb code?

    Thank you!
  2. Chris D

    Chris D XenForo Developer Staff Member

    If you require support please add you forum username to the Forum Users page while logged in to your license Customer Area and then post in the correct forum.
Thread Status:
Not open for further replies.

Share This Page