assign('BBC_'.$key, true); } $template->assign('BBCODE_PATH', BBcode_PATH); $template->set_prefilter('picture', 'set_bbcode_bar_prefilter'); // smilies support > 2.3 ## must be parsed after bbcode_bar, because the javascript must be after bbc's one if (isset($pwg_loaded_plugins['SmiliesSupport'])) { $template->assign('BBC_smilies', true); set_smiliessupport(); } } function set_bbcode_bar_prefilter($content, &$smarty) { $search = '
'; $replace = file_get_contents(BBcode_PATH.'/template/bbcode_bar.tpl').$search; return str_replace($search, $replace, $content); } // check tags and eventually close malformed tags, return BBCoded String function CheckTags($str) { //storage stack $tags = array(); for ($pos = 0; $pos