genics Posted March 28, 2007 Share Posted March 28, 2007 Hey folks I'm creating a small web app in PHP/MySQL and I'm building the backend. At the moment when one of my novice users enter some news via the form it enters it as a text string into the database. However I need that string styled and as my users are experienced with BBCode I thought they might as well be able to use that. So what I need is for their BBCode to be converted to HTML attributes either when it's being added to the db or when it's being displayed. I can find plenty of scripts, but as I'm a bit of a rookie - I need some installation instructions too! Has anybody dealt with bbCode in your apps before? Does anybody have any ideas? Thanks you in advance! gen Quote Link to comment https://forums.phpfreaks.com/topic/44627-help-bbcode/ Share on other sites More sharing options...
wildteen88 Posted March 28, 2007 Share Posted March 28, 2007 If you are using BBCode only convert the bbcode when you are displaying the formatted text to the page and not when you enter it in the database. I would recommend you to look in the Regex within PHP board. There are many posts on this subject. Note: search for my posts in that forum in one of my replies I linked to a site that had a simple pre-made BBCode parser. Quote Link to comment https://forums.phpfreaks.com/topic/44627-help-bbcode/#findComment-216932 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.