Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

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 LaTex implementation for Kunena 1.5.5 ?

More
15 years 11 months ago - 15 years 11 months ago #47539 by bonumide
Hello
I get it work well in my educational site even the [tex]\sqrt[3]{x}[/tex] appear well
you can view it after registration at this adress : www.tunisie-mathematiques.com

I only add in kunena.parser.php this code:
Code:
case 'tex': $tempstr = kunena_htmlspecialchars($between, ENT_QUOTES); $tag_new = "<img src=http://latex.codecogs.com/gif.latex?".$tempstr.">"; return TAGPARSER_RET_REPLACED;

So if it is possible i would know how can i add a button to insert the [tex] [/tex] when i click on it?
(sorry all for my poor english)
I hope that i helpt you.
Last edit: 15 years 11 months ago by bonumide.

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

More
15 years 11 months ago #48749 by Assani
If you wanna put a button u must edit the smile.class.php File.

By the newest Version of Kunena you must add following code in line 304
Code:
<img class = "fb-bbcode" src="<?php echo KUNENA_LIVEUPLOADEDPATH.'/editor/'; ?>spacer.png" style="cursor: auto;" /> <img class = "fb-bbcode" src="<?php echo KUNENA_LIVEUPLOADEDPATH.'/editor/'; ?>spacer.png" style="cursor: auto;" /> <!--BUTTON [tex]:--><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')" /> <img class = "fb-bbcode" src="<?php echo KUNENA_LIVEUPLOADEDPATH.'/editor/'; ?>spacer.png" style="cursor: auto;" /> <img class = "fb-bbcode" src="<?php echo KUNENA_LIVEUPLOADEDPATH.'/editor/'; ?>spacer.png" style="cursor: auto;" />

Put it (the code above)after the "showvideotag"
Code:
<?php if ($fbConfig->showvideotag) {?> &nbsp;<span style="white-space:nowrap;"> <a href = "javascript:dE('video');" onmouseover = "javascript:kunenaShowHelp('<?php @print(_KUNENA_EDITOR_HELPLINE_VIDEO);?>')"><img src="<?php echo KUNENA_LIVEUPLOADEDPATH.'/editor/'; ?>film.png" alt="video" /></a> </span> <?php } ?>


I'm not an expert in php or html so i don't give you any guarantee that the code is correct.

It would be smart if you add some Editor-Page to your forum cause not everybody will know how the
latex (or tex etc) commands function.

I would be really happy if kunena in a future version - be able to support latex or "tokens"
like in phpbb 3 Forum

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

More
15 years 11 months ago #48750 by Assani
Sorry the Code Above is the german version

Code:
<img class = "fb-bbcode" src="<?php echo KUNENA_LIVEUPLOADEDPATH.'/editor/'; ?>spacer.png" style="cursor: auto;" /> <img class = "fb-bbcode" src="<?php echo KUNENA_LIVEUPLOADEDPATH.'/editor/'; ?>spacer.png" style="cursor: auto;" /> <!--BUTTON [tex]:--><img class = "fb-bbcode" accesskey = "f" name = "tex" alt="TEX-Formula" onclick = "bbfontstyle('[tex]', '[/tex]'); " onmouseover = "javascript:kunenaShowHelp('Adds TEX Codes for mathematical formulas')" /> <img class = "fb-bbcode" src="<?php echo KUNENA_LIVEUPLOADEDPATH.'/editor/'; ?>spacer.png" style="cursor: auto;" /> <img class = "fb-bbcode" src="<?php echo KUNENA_LIVEUPLOADEDPATH.'/editor/'; ?>spacer.png" style="cursor: auto;" />

I just translated it directly in english with my poor english knowledge, so.... sorry if something sounds wrong in the translated version :blink:

Just correct it manually i think you can guess wich words u have to change/correct even if u don't have any php/html expirience
The following user(s) said Thank You: neebrad

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

Time to create page: 0.243 seconds