Komentarz z pliku: admin/sources/classes/bbcode/core.php
* Basic usage examples
* <code>
* $parser = new parseBbcode( $registry );
*
* # If you wish convert posted text to store in the database
* $parser->parse_smilies = 1;
* $parser->parse_bbcode = 1;
* $parser->parsing_section = 'your section key';
* $bbcode_text = $parser->preDbParse( $_POST['text'] );
*
* # If you wish to display this content
* $parser->parse_html = 0;
* $parser->parse_nl2br = 1;
* $parser->parsing_section = 'your section key';
* $parser->parsing_mgroup = 'member group id of poster';
* $parser->parsing_mgroup_others = 'member other group ids of poster';
* $ready_to_print = $parser->preDisplayParse( $bbcode_text );
*
* # If you wish to convert already converted BBCode back into the raw format
* # (for use in an editing screen, for example) use this:
* $raw_post = $parser->preEditParse( $parsed_text );
*
* # Of course, if you're using the rich text editor (WYSIWYG) then you don't want to uncovert the HTML
* # otherwise the rich text editor will show unparsed BBCode tags, and not formatted HTML. In this case use this:
* $raw_post = $parser->convert_ipb_html_to_html( $parsed_text );
* </code>
*
*/