I'm trying to add geshi in the minibb forum.
I allready have a working regex and a function to convert al to geshi.
Now I run into a little problem, beqausse I dont know were to put my codes..
I putted my codes into bb_codes.php, but as far as I know now, this file only handles what goes into the database and comes out into the edit screen
, but not in the forums themself.
Since I dont want to waste the database with html garbage, I want to do the geshi parsing when the visitors look at a forum topic....
Where do I put my codes?
I have this so far:
function maak_code( $hlt, $msg)
$geshi = new GeSHi(stripslashes($msg), $hlt);
When I put this in bb_codes, it doesnt make any difference (only in the edit screen, there you will finf your formatted code (clean in the database though)
Any help is appreciated.