'; $coded_comment = preg_replace($img_patter,$img_replace,$comment); $bbcodes = array ( '/\[b\]/','/\[i\]/','/\[u\]/','/\[quote\]/','/\[url\](.*)\[\/url\]/', '/\[\/b\]/','/\[\/i\]/','/\[\/u\]/','/\[\/quote\]/','/\[url=(.*)\](.*)\[\/url\]/' ); $HTMLcodes = array ( '','','','
','$1', '','','','
','$2', ); $coded_comment = preg_replace($bbcodes,$HTMLcodes,$coded_comment); return $coded_comment; } } //Registering Action that will be applied while displaying comment and or description register_action(array('bb_to_html'=>array('comment','description','pm_compose_box','before_topic_post_box','private_message'))); $hints = "
*Following bbcodes can be used
[b]for bold letters[/b]
[i]for italic letters[/i]
[u]for underline[/u]
[quote]for quotations[/quote]
[url]for link[/url] or [url=link]title[/url]
"; //Registerin Anchors , that will be displayed before compose boxes register_anchor($hints,'after_compose_box'); register_anchor($hints,'after_reply_compose_box'); register_anchor($hints,'after_desc_compose_box'); register_anchor($hints,'after_pm_compose_box'); register_anchor($hints,'after_topic_post_box'); ?>