######## text formatting ######## $this->bbparse->define_tag("b", FALSE, "%dat", array("MULTILINE_MATCH")); $this->bbparse->define_tag("i", FALSE, "%dat", array("MULTILINE_MATCH")); $this->bbparse->define_tag("u", FALSE, "%dat", array("MULTILINE_MATCH")); ######## URLs ######## $this->bbparse->define_tag("url", FALSE, "%dat", array("NOPASS", "FILTER_TAG" => array("link_force_rel"))); // for normal URLs, pass with link_force_rel $this->bbparse->define_tag("url", TRUE, "%dat", array("MULTILINE_MATCH", "FORCE_ARGUMENT_REGEX" => "http:\/\/" . quotemeta($_SERVER['HTTP_HOST']) . ".*?")); // for urls with the current hostname in the beginning $this->bbparse->define_tag("url", TRUE, "%dat", array("MULTILINE_MATCH")); // special URLs... without them (keep in mind order) ######## QUOTES ######## $this->bbparse->define_tag("quote", FALSE, "
", array("MULTILINE_MATCH")); // normal quote without citation $this->bbparse->define_tag("quote", TRUE, "%dat
", array("MULTILINE_MATCH")); // quote with citation, add then — HTML character. ######## IMAGES ######## $this->bbparse->define_tag("img", FALSE, "%dat\n—%arg
%dat", array("MULTILINE_MATCH", "NOPASS")); // nopass :)
$this->bbparse->define_tag("code", TRUE, "%dat", array("MULTILINE_MATCH", "NOPASS", "FORCE_ARGUMENT_REGEX" => "PHP", "FILTER_TAG" => array("highlight_php"))); // if [CODE=PHP] :)
######## PHP tags ########
$this->bbparse->define_tag("php", FALSE, "%dat", array("MULTILINE_MATCH", "NOPASS", "FILTER_TAG" => array("highlight_php")));
######## Text Size ########
$this->bbparse->define_tag("size", TRUE, "%dat", array("MULTILINE_MATCH", "FORCE_ARGUMENT_REGEX" => "[0-9]{1,2}"));
######## TEXT COLOR ########
$this->bbparse->define_tag("color", TRUE, "%dat", array("MULTILINE_MATCH", "FORCE_ARGUMENT_REGEX" => "aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|purple|red|silver|teal|white|yellow"));
######## No BBCODE ########
$this->bbparse->define_tag("nobb", FALSE, "%dat", array("MULTILINE_MATCH", "NOPASS")); //nopass...