MyBB Community Forums

Full Version: modify for math display and edit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just installed mybb today. My goal is to test if mybb can be modified to host a math discussion site.

I've did such for other forum package namely Discuz! and phpbb, both of them have some difficulties but basically working. Since I'm not a developer of php&forums, I really need some help.

Basically what I need is to insert some lines to the page head (link javascript), added latex tool bar to the post editor (make it hidable), and possibly alter post preview and subject display functions to handle latex content correctly.

The following are some related references about math editing and displaying
http://www.codecogs.com/components/equat...editor.php
http://advisors-online.com/tex_field.html

Thanks
If you want to add some JS code to the page header you can do it in the template header.
Yes. I figured that out. Basically I need to modify the value of \$headerinclude which stored in database xx_templates.template where xx_templates.title = 'headerinclude'.

MyBB is amazing. Manage template using database is a very cool idea. But how this affect the runtime performance? Is there any caching logic for templates?
Yes themes are cached, look for example in the ./cache/themes/ folder.