[PHP] BBcode

2007-12-16 Thread Ronald Wiplinger
I tested BBcode (Pear extension) with that code: if (!empty($_POST['bbcode'])) { require_once 'HTML/BBCodeParser.php'; $parser = new HTML_BBCodeParser(parse_ini_file('BBCodeParser.ini')); echo $parser-qParse($_POST['bbcode']); } ? form action=?php echo $_SERVER['PHP_SELF']; ?

Re: [PHP] BBcode - Solved

2007-12-16 Thread Ronald Wiplinger
I copied BBCodeParse.ini to the wrong place, Ronald Wiplinger wrote: I tested BBcode (Pear extension) with that code: if (!empty($_POST['bbcode'])) { require_once 'HTML/BBCodeParser.php'; $parser = new HTML_BBCodeParser(parse_ini_file('BBCodeParser.ini')); echo

[PHP] BBCode?

2002-11-24 Thread Leif K-Brooks
I'm working on adding simple BBCode to my site. I'm currently using the [i] tag for testing, with the following code: ?php function bbcode($text){ $text = ereg_replace('\\[i\\](.{1,})\\[/i\\]','i\\1/i',$text); return $text; } print bbcode('[i]This[/i] is a [i]test[/i].'); ? But it prints

[PHP] bbcode

2002-02-22 Thread Leif K-Brooks
I'm planning to make a forum built into my site. I know all of the forums have bbcode, and I doubt they all programmed it themselves. Is there somewhere I can get the code for bbcode? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bbcode

2002-02-22 Thread Jeff Sheltren
Why not download a forum, such as phpbb (www.phpbb.com) and check out their code? =) Jeff At 03:41 PM 2/22/2002 -0500, Leif K-Brooks wrote: I'm planning to make a forum built into my site. I know all of the forums have bbcode, and I doubt they all programmed it themselves. Is there somewhere