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

How do I extend XenForo_Helper_String::bbCodeStrip() ?

Discussion in 'XenForo Development Discussions' started by mizter1nho, Feb 14, 2011.

  1. mizter1nho

    mizter1nho Well-Known Member

    ./library/xenforo/helper/* not extendable?
  2. mizter1nho

    mizter1nho Well-Known Member

    for me needed create extended class for function bbCodeStrip becouse my addon use advanced bb codes and this function need update.
  3. Kier

    Kier XenForo Developer Staff Member

    XenForo_Helper_String::bbCodeStrip() is called only by the {xen:helper, snippet, $text} template syntax function.

    The functionality of this function can be overriden with a callback using the init_dependencies code event, with a static function like this:
    public static function addTemplateHelper()
    XenForo_Template_Helper_Core::$helperCallbacks['snippet'] = array('MyAddOn_MyClassName''bbCodeStrip');
    mizter1nho likes this.
  4. mizter1nho

    mizter1nho Well-Known Member

    Big Thanks Kier. [​IMG]

Share This Page