[ABD] MathJax phpBB Integration extension

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
Mauron
Registered User
Posts: 342
Joined: Wed Jul 16, 2014 11:25 am

Re: [RC] MathJax phpBB Integration extension

Post by Mauron »

You may want to refer to Extension development forum rules, in particular paragraph 3 (e. and f.) concerning topic tags.

User avatar
yasser33311
Registered User
Posts: 266
Joined: Sat Jul 27, 2013 1:27 pm
Location: algeria
Name: yasser ghe
Contact:

Re: [CDB] MathJax phpBB Integration extension

Post by yasser33311 »

marcovo wrote:We've arrived at version 1.0.0 . The extension is compatible with phpBB 3.1.3 through 3.1.5 . (Well I only tested 3.1.3 and 3.1.5 but I assume 3.1.4 works just fine as well...)

I'll submit the extension to the customisation database.
thank you :D
PhpBB Services - install, update, upgrade, customize: PM

marcovo
Registered User
Posts: 239
Joined: Fri Nov 16, 2012 12:19 pm
Location: The Netherlands
Name: Marco

Re: [RC] MathJax phpBB Integration extension

Post by marcovo »

Thanks Mauron. After your former post I indeed re-read that paragraph to be sure. I read it about a year ago and I assumed my memory about this RC <-> CDB was still right.. but I had remembered it wrong.. so too bad. Next time I'll read the page to make sure I don't do stupid things :P .

User avatar
Mauron
Registered User
Posts: 342
Joined: Wed Jul 16, 2014 11:25 am

Re: [RC] MathJax phpBB Integration extension

Post by Mauron »

I have actually a question, now that I recall.
I tested the extension and it works fine, except for the fact that \underline{} doesn't seem to be supported: this code

Code: Select all

[latex]\begin{equation}
\left[
{\bf X} + {\rm a} \ \geq\
\underline{\hat a} \sum_i^N \lim_{x \rightarrow k} \delta C
\right]
\end{equation}[/latex]
gives this result
Image

I assume it to be a MathJax issue and not extension related; do you confirm?

marcovo
Registered User
Posts: 239
Joined: Fri Nov 16, 2012 12:19 pm
Location: The Netherlands
Name: Marco

Re: [RC] MathJax phpBB Integration extension

Post by marcovo »

Try to break in into pieces ;) . \underline{a} works just fine. It's the backslash after \geq that breaks your formula. Remove it and you have a beautiful formula with underlined a. If you add another backslash (so \geq \\) it will insert a newline (as always).
What did you intend to do with the single backslashes?

EDIT: I see that "\ " (backslash + space) inserts a somewhat wider space. Was that your intention? Then the space was missing :P

User avatar
Mauron
Registered User
Posts: 342
Joined: Wed Jul 16, 2014 11:25 am

Re: [RC] MathJax phpBB Integration extension

Post by Mauron »

Now it works!
Anyway, I just copied that formula from somewhere for testing purpose; thanks for suggestion anyway (I'll take some time to learn LaTeX properly someday).

User avatar
DevMakoto
Registered User
Posts: 65
Joined: Tue Jun 23, 2015 3:38 pm
Name: Carlos Mayorga
Contact:

Re: [RC] MathJax phpBB Integration extension

Post by DevMakoto »

diference in bbcode [latex] & [math] ¿???

Translate Spanish

Code: Select all

<?php
/** 
*
* @package MathJax
* @copyright (c) 2014 Sérgio Faria and Marco van Oort
* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2 
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
// ACP Vars
	'ACP_MATHJAX'					=> 'MathJax',
	'ACP_MATHJAX_CAT'				=> 'MATHJAX',
	'ACP_MATHJAX_SETTINGS'			=> 'Configuración General',
	'ACP_MATHJAX_BBCODES'			=> 'Configuración BBCode',
	'ACP_MATHJAX_EXTENSIONS'		=> 'Extensiones',
	'LOG_CONFIG_MATHJAX'			=> '<strong>Ajustes mathjax alterados</strong>',
	
// Errors
	'ERROR_BBCODE_EXISTS'		=> 'Tag %s ya existe.',
	'ERROR_BBCODE_INVALID'		=> 'Etiqueta no válida %s.',
	'TOO_MANY_BBCODES'			=> 'Usted no puede crear más BBCodes. Por favor, elimine uno o más BBCodes vuelva a intentarlo.',
	'NO_BBCODE_ID'				=> 'No BBCode id was sent in the request.',
	'BBCODE_DOESNT_EXIST'		=> 'El BBCode math solicitado no existe',
	'BBCODE_NOT_MATH_TPL'		=> 'La solicitud bbcode no parece ser un bbcode math aunque está marcado como tal.',
	'INVALID_MATHJAX_PATH'		=> 'La ruta introducida no contiene una instalación mathjax válida',
	'MUST_CONFIGURE_MATHJAX'	=> 'La ruta introducida no contiene una instalación mathjax válido y el <abbr title="Content Distribution Network">CDN</abbr> está desactivado. Por favor, introduzca una ruta válida a su instalación local mathjax o utilizar el <abbr title="Content Distribution Network">CDN</abbr>',
	
// Confirm boxes & notice msg
	'BBCODE_DELETE_CONFIRM'		=> '¿Seguro que quieres eliminar el bbcode %s?',
	'BBCODE_DELETED'			=> 'BBCode eliminado correctamente.',
	'BBCODE_CREATED'			=> 'BBCode creado correctamente.',
	'BBCODE_MODIFIED'			=> 'BBCode modificado correctamente.',
	
// Page titles and "legend" titles
	'MATHJAX_SETTINGS'				=> 'MathJax Configuración general',
	'MATHJAX_SETTINGS_EXPLAIN'		=> 'Aquí puede configurar Integración phpBB con mathjax.',
	'MATHJAX_BBCODE'				=> 'BBCode Math configuración',
	'MATHJAX_BBCODE_EXPLAIN'		=> 'Aquí puede ajustar los BBCodes para usar con phpBB2jax.',
	
	'GENERAL_SETTINGS'				=> 'Configuración General',
	'SERVER_SETTINGS'				=> 'Configuración del servidor',
	'BBCODE_EDITOR'					=> 'BBCode Editor',

// General Settings
	'MATHJAX_ENABLE'				=> 'Habilitar MathJax',
	'MATHJAX_USE_CDN'				=> 'Utilice el mathjax <abbr title="Content Distribution Network">CDN</abbr>',
	'MATHJAX_USE_CDN_EXPLAIN'		=> 'Al seleccionar esta opción, usted está de acuerdo con sus <a href="http://www.mathjax.org/download/mathjax-cdn-terms-of-service/"><abbr title="Terms of Service">TOS</abbr></a>.',
	'MATHJAX_CDN_FORCE_SSL'			=> 'Forzar una conexión segura a la <abbr title="Content Distribution Network">CDN</abbr>',
	'MATHJAX_CDN_FORCE_SSL_EXPLAIN'	=> 'Fuerza HTTPS, incluso si su foro no utiliza una conexión segura.',
	'MATHJAX_URI'					=> 'Ruta de instalación mathjax',
	'MATHJAX_URI_EXPLAIN'			=> 'Si usted no utiliza el <abbr title="Content Distribution Network">CDN</abbr>, que necesitará para entrar en la ruta de su instalación local, por ejemplo,. <samp>assets/javascript/MathJax</samp>. <br /> Si usted hace uso de la <abbr title="Content Distribution Network">CDN</abbr>, esto va a ser usada para fines de retorno.',
	'MATHJAX_DYNAMIC_LOAD'			=> 'Cargar Dinámicamente mathjax',
	'MATHJAX_DYNAMIC_LOAD_EXPLAIN'	=> 'Sólo carga mathjax si hay un bbcode math para ser procesados.',
	'MATHJAX_CONFIG'				=> 'Archivo de configuración',
	'MATHJAX_CONFIG_EXPLAIN'		=> 'Nombre del archivo de configuración mathjax o url ejemplo <samp>TeX-AMS-MML_HTMLorMML</samp>. Los valores válidos son explicados en la  <a href="http://docs.mathjax.org/en/latest/config-files.html">documentación</a>.',
	
// BBCode Settings
	'MATHJAX_BBCODE_TYPE'				=> 'Math type',
	'MATHJAX_BBCODE_TAG'				=> 'BBCode tag',
	'MATHJAX_BBCODE_DISPLAY'			=> 'Mostrar en mensajes',
	'MATHJAX_BBCODE_DISPLAY_EXPLAIN'	=> 'Si es así, esta BBCode se mostrará en el editor del usuario al publicar.',
	'MATHJAX_BBCODE_HELPLINE'			=> 'Texto de la línea de ayuda', 
	'MATHJAX_BBCODE_HELPLINE_EXPLAIN'	=> 'Este campo contiene el puntero del ratón sobre el texto del BBCode en el editor.',
	'MATHJAX_PREVIEW'					=> 'Texto de vista previa',
	'MATHJAX_PREVIEW_EXPLAIN'			=> 'Por defecto se muestra el código de usuario, mientras que las math está prestando. Usted puede cambiar el texto de vista previa para por ejemplo. <samp>[Math Procesamiento ...]</samp>. Si usted no quiere un texto de vista previa ni el código de matemáticas que se muestra, utilice <samp>{NONE}</samp>.',
	'MATH_TYPE_TEX'						=> 'LaTeX',
	'MATH_TYPE_MML'						=> 'MathML',
	'BBCODE_TAG'						=> 'TAG',
	'ADD_BBCODE'						=> 'Añadir un nuevo BBCode', 
));

marcovo
Registered User
Posts: 239
Joined: Fri Nov 16, 2012 12:19 pm
Location: The Netherlands
Name: Marco

Re: [RC] MathJax phpBB Integration extension

Post by marcovo »

Thanks for translating!

The difference between the pre-installed [latex] and [math] bbcodes is that [latex] renders latex code, and [math] renders mathml code. Of course you can change this behaviour in any way you'd like.

EDIT: Language has been added

gibsonsdad
Registered User
Posts: 3
Joined: Tue Aug 04, 2015 1:58 am

Re: [RC] MathJax phpBB Integration extension

Post by gibsonsdad »

Need Help With Permissions

marcovo,

Apparently, I haven't yet posted enough times to be allowed to email you. First, thanks 1.00 x 10^6 for the MathJax extension. I thought I would have to abandon phpBB 3.1.x, and find some other bulletin board application. You have saved the day.

I have everything working to use MathJax on the phpbb, except, I am quite certain, the permissions are set improperly. I have all of the folders set to 755, and all individual files, except the initial .json file, set to 644. The .json file is set to 755.

When I type in a formula in LaTeX, surrounding it with [latex]\frac{a}{b}[\latex], I get [math] as an output. You can see this at http://forums.emptypotato.com/viewtopic.php?f=6&t=7.

Would it be possible for you to send me a listing of the permission settings for each folder, and for each file? We are quite anxious to get this board active.

mailto: removed

Thank you,

Mark Russell, the Equivalent
Earl of All Bananas
Last edited by Paul on Fri Oct 16, 2015 8:22 pm, edited 1 time in total.
Reason: Mail address removed.

sergio91pt
Registered User
Posts: 62
Joined: Thu Jul 07, 2011 11:03 am

Re: [RC] MathJax phpBB Integration extension

Post by sergio91pt »

gibsonsdad,

It seems the path to the MathJax library is wrong. You can change it in the control panel.

marcovo
Registered User
Posts: 239
Joined: Fri Nov 16, 2012 12:19 pm
Location: The Netherlands
Name: Marco

Re: [RC] MathJax phpBB Integration extension

Post by marcovo »

Indeed, as sergio91pt points out, you'll have to set the path to the MathJax library. Either download the Mathjax library and upload it to your board, or use the copy provided by CDN. Both are explained at the bottom of the initial post.

User avatar
Mauron
Registered User
Posts: 342
Joined: Wed Jul 16, 2014 11:25 am

Re: [RC] MathJax phpBB Integration extension

Post by Mauron »

marcovo wrote:[...]
Hello,
I added a PR for Italian translation as well.

beejewel
Registered User
Posts: 8
Joined: Fri Oct 24, 2014 6:22 am
Name: Steven Sesselmann

Re: [RC] MathJax phpBB Integration extension

Post by beejewel »

Hi Guys, I am on 3.6 and have installed the Extension according to instructions, but it's not working.

http://www.gammaspectacular.com/phpBB3/

Under extensions in ACP I have the MathJax BBcode setttings but can't see any reference to accepting the terms of use.

I am sure there is a simple fix..

Steven

marcovo
Registered User
Posts: 239
Joined: Fri Nov 16, 2012 12:19 pm
Location: The Netherlands
Name: Marco

Re: [RC] MathJax phpBB Integration extension

Post by marcovo »

Hi,

I haven't tested the extension yet on 3.1.6, but I guess nothing should have changed here since 3.1.5. In the ACP, you don't have to accept the terms of use, but by activating the CDN you implicitly state you accept them. I assume that activating the CDN is still available in the ACP; otherwise something is messed up since 3.1.6.

beejewel
Registered User
Posts: 8
Joined: Fri Oct 24, 2014 6:22 am
Name: Steven Sesselmann

Re: [RC] MathJax phpBB Integration extension

Post by beejewel »

I must be blind, I cant find any reference to CDN in the ACP ?

Has it been moved or renamed?

beejewel

Locked

Return to “Abandoned Extensions”