Jump to content

Ok? I Lost Myself


TKW22
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...