View Full Version : Adding phpbb code to you site

28th September 2006, 08:33 AM
Was wondering if anyone knew how to implement phpbb to a custom php/mysql site. I would assume that it is somesort of module or function that you add to your site. Does anyone know anything about it?

28th September 2006, 09:20 AM
do you mean intergrate it into your site and templates and things? Or sharing databases, or what?

29th September 2006, 11:37 AM
Sorry i completely wrote the wrong thing. I mean BB Code... I want to add BB Code to input boxes so users can use smilies, quote etc.

30th September 2006, 08:41 PM
Perad it isnt' hard to do if you understand how to use Preg replace and a sql database.

1st October 2006, 07:28 PM
you need to be careful when doing that thou its far too easy to end up with some XSS holes in your code. My advice is stick to colours, bold italic and underline maybe font size as well.

4th October 2006, 12:20 PM

when you process the imput in your php code

$text = ereg_replace("yourtag", "htmltag", $text);

for all of the tags you wanna use

4th October 2006, 04:56 PM
no, it's more efficient to use two arrays of regexp replacement terms. And always use preg_replace it is faster than ereg_replace