assign('BBC_'.$key, true); } // edit field has different id // if ( // (isset($_GET['action']) AND $_GET['action'] == 'edit_comment') // OR (isset($page['body_id']) AND $page['body_id'] == 'theCommentsPage') // ) { // $template->assign('bbcode_texarea', 'contenteditid'); // } else { // $template->assign('bbcode_texarea', 'contentid'); // } $template->assign('bbcode_texarea', 'contentid'); // smilies if (isset($pwg_loaded_plugins['SmiliesSupport'])) { $template->assign('BBC_smilies', true); } $template->assign('BBCODE_PATH', BBcode_PATH); $template->set_prefilter('picture', 'set_bbcode_bar_prefilter'); // smilies support > 2.2.f ## must be parsed after bbcode_bar, because the javascript must be after bbc's one if (isset($pwg_loaded_plugins['SmiliesSupport']) AND strcmp($pwg_loaded_plugins['SmiliesSupport']['version'], '2.2.f') != -1) { set_smiliessupport(); } } function set_bbcode_bar_prefilter($content, &$smarty) { $search = "