MyBB Community Forums

Full Version: MyBB Code Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've opened one of the php files to do some editing and I was wondering how I would go about parsing the contents of a variable and apply any mybb code found. Anyone know an easy way to do this... perhaps a function? Also, how would I go about striping the data of mybb code as well?
I tried:
preg_replace("/\[(.*?)\](.*?)\[\/(.*?)\]/s","$2",$message);
but its still show some of the bb code
I think i've figured my problem out. You can ignore this topic now. =)