I'm trying to add custom code to a PHP forum. It seems easy enough but for some reason I can't get it to work. The basic idea is that whenever the tags [tex] and [/tex] appear, I want to take whatevery was put between them and make an image like this:
<img src="mysite.com/cgi-bin/mimetex.cgi? the text in between the boxes">
Here's an example of what some of the packaged code looks like:
$bbcode_tpl['code_open'] = str_replace('{L_CODE}', $lang['Code'], $bbcode_tpl['code_open']);
That's to include code, just like this forum actually.
I don't know if anyones really familiar with PHP forums, but I have been working on this for a looonnnggg time and I really need someone's help.
Jameson