Jump to content

How to install plugin vbLatex for vBulletin.


K19

Recommended Posts

Thank for helping!

1. Create a folder somewhere web-accessible to hold all of your generated images. You need to create two sub-directories called tmp and img inside this folder, and make them both world-writable.

2. Extract the archived ZIP file somewhere. Carefully read through the configuration file and fill in all required sections. Make sure your paths are correct and agree with step 1.

3. Upload the class.latex.php file to the includes directory of your vBulletin installation.

4. Upload the latex.js file to the clientscript directory of your vBulletin includes, and modify your header template to include this JavaScript file. (This will be done automatically in the future at some point).

5. Install the supplied .xml plugin file using the vBulletin admin control panel.

6. Turn on LaTeX rendering in the vBulletin Options.

7. You’re done!

 

I had done step 4 but I didn't know how to modify header template to include this JavaScript file.

and I had done step 5: Import Product: "product-latexvb.xml"

But when I came in "the vBulletin Options" I didn't see where is "Turn on LaTeX". I think I haven't modify header template to include this JavaScript file yet.

:doh:

Link to comment
Share on other sites

Go to the headinclude template in whatever theme you're using and edit it to include this:

 

<script type="text/javascript" src="clientscript/latex.js"></script>

 

As for step 6, I don't think you need to do anything like that. Once you've installed the plugin and included the JavaScript you should be able to post LaTeX in math tags.

Link to comment
Share on other sites

Go to the headinclude template in whatever theme you're using and edit it to include this:

 

<script type="text/javascript" src="clientscript/latex.js"></script>

 

As for step 6, I don't think you need to do anything like that. Once you've installed the plugin and included the JavaScript you should be able to post LaTeX in math tags.

 

Thanks a lot!

 

I had edited my headinclude template. But I didn't see "LaTeX BBCode Tags yet".

I think I have false things in my CONFIGURATION in the class.latex.php

 

My site: http://k19.byteact.com

My LaTeX directory was (Directory Tree: root /htdocs /latex)

I get CONFIGURATION

var $path = array(

// Applications

'latex' => '/usr/bin/latex',

'dvipng' => '/usr/bin/dvipng',

 

// Base directory

'base' => '/latex',

'baseurl' => '/latex'

Could you tell me what wrong is?:doh:

Link to comment
Share on other sites

Try making a post with [math]x^2[/math] in it and see if it works. If not...

 

Do you have latex and dvipng (the programs) installed on your server? If not, what operating system are you using on the server? I might be able to find instructions to install LaTeX and dvipng for you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.