Jump to content

Ok? I Lost Myself


TKW22

Recommended Posts

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

$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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...