Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mimetex Details »»
Mimetex
Version: 1.00, by the_sisko the_sisko is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-07-2004 Last Update: Never Installs: 15
Is in Beta Stage  
No support by the author.

As I promised in this thread some time ago, I will post a short install note on how to get mimetex to work on vB.

1.
You need to download the mimeTex source files to compile and install mimeTeX. I don't know if it is allowed to attached the compied mimetex.cgi file, nor do I know if there is something server specific in my file. So you have to do this on your own. Compile and installation instruction can be found in the mimetex source files.
http://moodle.org/download/mimetex/source/mimetex.html
EDIT (2005-06-14):Added the mimetex.cgi file as attachment

2.
Upload the mimetex.cgi file to a folder on your server where it could be used. As we don't wanted our users or anybody else to access this file, we put it outside the webserver root.

3. Create a folder on your webserver where the mimeTex images should be stored.

4.
Open the atteched functions_mimetex.php and alter the three variables at the beginning to your needs. Upload the attached functions_mimetex.php file to your /includes/ folder.

5.
Open /includes/functions_bbcodeparse.php
Find:
PHP Code:
    // end smilies 
below add:
PHP Code:
  // Latex Hack by CDK
    
require_once('functions_mimetex.php');   
    
$bbcode mimetex($bbcode); 
upload altered file.

6. If everything went right you should now can use [tex]\frac{x^3 + 2 x^2 - 6 x + 7}{x^2+1}[/tex] which results in http://www.chemieonline.de/images/fo...97a0d49e15.gif


I've put up some samples in the zip file. More samples by one of our Moderators can be found here: http://www.studenten-city.de/forum/s...91&postcount=1


It was a hack made for our forum, I have no further interest in developing this into a real stabel hack. Its working for us. I posted this, just to give other users who needed this a start into the right direction.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 09-01-2005, 06:30 AM
the_sisko's Avatar
the_sisko the_sisko is offline
 
Join Date: Oct 2001
Location: Hamburg,Germany
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see you found a solution fpr your self, just wanted to answer to your warining message:

system() has been disabled for security reasons

You or your host disabled the system function or even all execute function of php. This is done on a shared server to protect the server and clients in a better way.

Your workaround is nice. Images won't be stored and rendered everytime a user visits a post. This could be a problem on big boards...
Reply With Quote
  #23  
Old 09-01-2005, 11:37 AM
edst edst is offline
 
Join Date: Aug 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're right -- the re-rendering could be an issue for larger boards. In this case, you could build a new version of mimetex.cgi that uses the -DCACHEPATH=\"path/\" argument and still cache the images locally. This probably makes sense to do whenever the workaround is needed.

On that note, if you're building your own mimetex.cgi anyway, I'd recommend using the -DREFERER=\"domain\" argument too. This will add some level of security so that others cannot make use of the engine if it's located in a public area of your server.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03988 seconds
  • Memory Usage 2,214KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete