2008-06-02, 03:29 PM
i want to deactive some mycodes (not all of them) how can i do that?
$forum = $db->fetch_array($db->query("SELECT allowhtml, allowmycode, allowimgcode, allowsmilies FROM ".TABLE_PREFIX."forums WHERE fid='".$thread['fid']."' AND active!='no'"));
$post = $db->fetch_array($db->query("SELECT t.*, p.* FROM ".TABLE_PREFIX."threads t LEFT JOIN ".TABLE_PREFIX."posts p ON (t.tid = p.tid) WHERE t.tid='".$thread['tid']."' AND p.pid=t.firstpost "));
$parser_options = array(
'allow_html' => $forum['allowhtml'],
'allow_mycode' => $forum['allowmycode'],
'allow_smilies' => ($post['smilieoff'] == "yes") ? "no" : $forum['allowsmilies'],
'allow_imgcode' => $forum['allowimgcode'],
'filter_badwords' => 'yes',
4 example in that script all of mycodes can be actived or deactived