vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Parsing LaTeX, where to put the code?? (https://vborg.vbsupport.ru/showthread.php?t=80622)

RVSmarter 04-26-2005 10:42 PM

Parsing LaTeX, where to put the code??
 
Hello,

I am trying to add Latex to my math forum. I need to call the code below so that when people post with [tex] [/tex] it will render mathmatical equations.

include_once('/full_path_here_to/latexrender/latex.php');
$latextext=latex_content($latextext);

I just don't know in what php file or where to place the code. I tried putting it under the // end smilies in functions_bbcode but that didn't work.

Any help would be greatly appreciated.

Thanks

Marco van Herwaarden 04-27-2005 03:47 AM

Have a look at the includes/functions_showthread.php and the postbit template.

And probably the includes/functions_bbcodeparse.php

RVSmarter 04-29-2005 03:10 AM

somebody gave me this tip:

"it's fairly easy just to mod the functions_bbcode.php file using something like the [php] code as a template (you'll need to call a function from preg_replace)."

but I don't know where to go from there...


All times are GMT. The time now is 07:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00987 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete