vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Mimetex (https://vborg.vbsupport.ru/showthread.php?t=68116)

Holidazed 09-16-2004 12:29 PM

Can somebody please explain to me what this hack does?

the_sisko 09-16-2004 12:35 PM

Quote:

Originally Posted by bitg
Can somebody please explain to me what this hack does?

Just take a look at the samples in the zip file.
You can post latex codes on your forums which will generate a picture with the formular.

php4dev 06-06-2005 11:11 PM

please attach the compiled mimetex.cgi as a zip file....

and if you want give us more infromations about the installation ...

I am not a profissional like you :tired:

thanks and best regards

the_sisko 06-07-2005 07:21 AM

As I said in my first post, I don't know if I can do this nor do I know if there is anything server specific in my CGI file.
Here a quote from the install README:
Quote:

QUICK START
------------------------------------------------------------------------
To compile and install mimeTeX
* unzip mimetex.zip in any convenient working directory
* to produce an executable that emits anti-aliased
gif images (recommended)
cc -DAA mimetex.c gifsave.c -lm -o mimetex.cgi
-or- for gif images without anti-aliasing
cc -DGIF mimetex.c gifsave.c -lm -o mimetex.cgi
-or- to produce an executable that emits mime xbitmaps
cc -DXBITMAP mimetex.c -lm -o mimetex.cgi
(For Windows, see "Compile Notes" in Section III below.)
* mv mimetex.cgi to your server's cgi-bin/ directory
* mv mimetex.html to your server's htdocs/ directory
* if the relative path from htdocs to cgi-bin isn't
../cgi-bin then edit mimetex.html and change the
few dozen occurrences as necessary.
Then, to quickly learn more about mimeTeX
* point your browser to www.yourdomain.com/mimetex.html
Any problems with the above?
* read the more detailed instructions below,
or see http://www.forkosh.com/mimetex.html

php4dev 06-07-2005 09:12 AM

Quote:

Originally Posted by the_sisko
* to produce an executable that emits anti-aliased
gif images (recommended)
cc -DAA mimetex.c gifsave.c -lm -o mimetex.cgi
-or- for gif images without anti-aliasing
cc -DGIF mimetex.c gifsave.c -lm -o mimetex.cgi
-or- to produce an executable that emits mime xbitmaps
cc -DXBITMAP mimetex.c -lm -o mimetex.cgi
(For Windows, see "Compile Notes" in Section III below.)

This is very complex way .... :cry: :cry: :cry: :cry: :cry:


Can you give me another way to compile the cgi file ? please ?


Thanks & best regards

php4dev 06-10-2005 11:03 AM

:) :)

the_sisko 06-14-2005 05:28 PM

Added the compiled mimetex.cgi file to the first post.

php4dev 06-14-2005 07:29 PM

thank you veeeeery much my friend



:)

edst 08-31-2005 02:30 PM

I've just installed this and have followed the directions thoroughly. Note that there's a missing close quote and ; from line 11 of the functions_mimetex.php in the zip file.

When I try to put an equation in a thread, I now get an error message:

Warning: system() has been disabled for security reasons in /includes/functions_mimetex.php on line 49

How do I address this error message? I see the system() call is what's actually referencing the cgi file, so it's clearly critical to this functionality.

edst 08-31-2005 04:04 PM

Okay, I've found a workaround. So if you cannot use system calls on your system, replace all the lines inside the $do_latex loop as follows:
Code:

    if($do_latex) {
            $mimetex_formula = $tex_matches[1][$i];
          $text = substr_replace($text, "<img src='".$cgi_path."?".$mimetex_formula."' alt='".htmlentities($mimetex_formula, ENT_QUOTES)."' align=absmiddle>",$pos,strlen($tex_matches[0][$i]));
    }

Where $cgi_path is defined at the top as:
Code:

        $cgi_path = "http://yourdomain/cgi-bin/mimetex.cgi";
There are no images stored with this method, so some could be trimmed down from the initial php code too.

edit: cleaned up the img tag a bit.


All times are GMT. The time now is 06:13 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.01018 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete