Kunena 6.2.5 & module Kunena Latest 6.0.7 released

The Kunena team has announce the arrival of Kunena 6.2.5 [K 6.2.5] which is now available for download as a native Joomla extension for J! 4.3.x/4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Integration of new BBCode - mimetex

More
14 years 8 months ago #1 by Newbie_Kunena
Hello,

I installed mimetex and the bot_mimetex for joomla. In the normal editor of joomla the bot works well.

Now I want to implement the following:

1.: Next to the button "Code display" I need a button "tex-Display" which opens the environment {tex}...{/tex}

2.: Everything with in the tags {tex}...{/tex} should be send du the mimetex.cgi. I thought maybe it is possible to use the mimetex.php of the bot mimetex for joomla.

Sorry for my bad English. I am not a native speaker. I hope you unterstand my problem.

regards
Marco

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #2 by Newbie_Kunena
Hello,

ok the first problem I solved by editing the smile.class.php at line 304

by the Following:
Code:
<img class = "fb-bbcode" accesskey = "f" name = "tex" alt="TEX-Formeleingabe" onclick = "bbfontstyle('[tex]', '[/tex]');" onmouseover = "javascript:kunenaShowHelp('Öffnet den Bereich TEX für Formeln')" />

Now I have only one Problem:

I want to use everything which inside the environment [tex] In the following way:

[tex]INSIDEBLOCK[/tex]
use the insideblock in the following way:
add the INSIDEBLOCK to the following url:
/cgi-bin/mimetex.cgi?INSIDEBLOCK

and display the result by the following way:
Code:
[img]http://mydomain.de/cgi-bin/mimetex.cgi?INSIDEBLOCK[/img]

regards
Marco

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #3 by Newbie_Kunena
Hello,

i am again B)

I have written a small php-script, which demonstrate my problem.
Code:
<?php error_reporting(E_ALL | E_NOTICE); function parseBBCode2TEX( $TEX ) $TEX = preg_replace('/\[tex\](.*?)\[\/tex\]/', '<img src="http://www.openmaths.org/cgi-bin/mathtex.cgi?$1"', $TEX); return $TEX; } $text = "Das ist ein Test, ob der Pythagoras stimmt: [tex]c^2=a^2+b^2[/tex]."; $formatiert = parseBBCode2TEX( $text ); echo $formatiert; ?>

I have to modify the code in according to the bot_mimetex.

regards
Marco

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #4 by Newbie_Kunena
Ok. now it works. I do not know whether it is the best way:

I edited the file kunena.parser.php at line 383 and added the following lines:
Code:
case 'tex': $tag_new = '<img src="http://www.openmaths.org/cgi-bin/mathtex.cgi?'.$between.'">'; return TAGPARSER_RET_REPLACED; break;

I hope some can use or improve it.

regards
Marco

Please Log in or Create an account to join the conversation.

Time to create page: 0.496 seconds