TKW22 Posted March 27, 2009 Share Posted March 27, 2009 ok im making a forum like phpbb<not the same>.its going good so far.but im trying to make bbcodes but i cant seem to do it.i get this in the data base [font color="#0f0"]something[/font] and on the page.how do you convert this to html though the page? Link to comment Share on other sites More sharing options...
jlhaslip Posted March 27, 2009 Share Posted March 27, 2009 $text = preg_replace("/\[b\](.*?)\[\/b\]/is", '<b>$1</b>', $text); Sample of a bbcode parsing for Bold tags.Download a copy of AEF 1.08 and check out the file {root}/main/functions/bbc_functions.php Link to comment Share on other sites More sharing options...
Synook Posted March 27, 2009 Share Posted March 27, 2009 Also, http://www.php.net/manual/en/book.bbcode.php Link to comment Share on other sites More sharing options...
TKW22 Posted March 29, 2009 Author Share Posted March 29, 2009 $text = preg_replace("/\[b\](.*?)\[\/b\]/is", '<b>$1</b>', $text); Sample of a bbcode parsing for Bold tags.Download a copy of AEF 1.08 and check out the file {root}/main/functions/bbc_functions.php Also, http://www.php.net/manual/en/book.bbcode.php thanks for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.