vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   About Mathjax (https://vborg.vbsupport.ru/showthread.php?t=299386)

jackvb2013 06-22-2013 02:59 PM

About Mathjax
 
I'd like to ask where I have to insert the code described in this page

http://docs.mathjax.org/en/latest/platforms/index.html

in order to write LaTex in our vbulletin 4 forum.

the guidelines are "Most web-based content-management systems include a theme or template layer that determines how the pages look, and that loads information common to all pages. Such theme files provide one popular way to include MathJax in your web templates in the absence of MathJax-specific plugins for the system you are using. To take advantage of this approach, you will need access to your theme files..."

Where can I find this vbulletin file in order to paste the MathJax code?

Thanks

kh99 06-22-2013 03:05 PM

You can add it to your headinclude template, by editing the template or by creating a plugin that adds it to $template_hook['headinclude_javascript'].

jackvb2013 06-22-2013 03:59 PM

Thank you very much for the response. Since I'm new in vbulletin where can I find headinclude template in order to insert this code. I'd like please to tell me the exact path via ftp in order to download , add the code and then upload it back to the server.

PS. I use the default template of vbulletin4.2.1

Thanks again!!

snakes1100 06-22-2013 04:01 PM

Its not a file.

AdminCP --> Style Manager --> Select "Edit Templates", from the drop down menu & click Go.

jackvb2013 06-22-2013 04:05 PM

Thanks a lot!
I'll try to insert the code there and I'll post about the result.

TheLastSuperman 06-23-2013 01:13 AM

Not all scripts "automagically" run after pasting in code in fact some software require plugins/extensions to be made - check this plugin page out:
http://www.mathjax.org/community/mat...ugins-scripts/

^ You can clearly see that those were developed for a reason i.e. the software they wanted MathJax to work in simply would not cooperate like basic websites and requires a custom script to integrate and make MathJax work properly.

This mod will work fine:
https://vborg.vbsupport.ru/showthread.php?t=230589

So long as you have compiled MathJax properly onto the server. If its not compiled properly then it will seem as if the modification will not work, once compiled correctly everything should work fine and after reviewing the modifications code and interface it seems as if they have thought out possible security issues and addressed with a blacklist in the settings as well.


All times are GMT. The time now is 02:46 PM.

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.00914 seconds
  • Memory Usage 1,719KB
  • 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
  • (6)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