Anyway I'll copy-paste the code, as reading it from XML is hard (miss a '}' and it wont work). Use "SELECT ALL" to copy.

**Open:**includes/acp/acp_bbcodes.php

Find (notice the bracket):

Code: Select all

```
if (isset($rowset[$bbcode_id]))
{
```

Code: Select all

```
global $config;
if (isset($rowset[$bbcode_id]))
{
if (!empty($config['mathjax_enable']) && !empty($rowset[$bbcode_id]['is_math']))
{
$template->assign_var('S_ENABLE_MATHJAX', true);
}
```

**Open:**includes/functions.php

Find:

Code: Select all

```
$s_search_hidden_fields['sid'] = $_SID;
}
```

Code: Select all

```
// Start 'building' Mathjax url
if (!empty($config['mathjax_enable']))
{
$mathjax_file = (!empty($config['mathjax_config'])) ? '/MathJax.js?config=' . $config['mathjax_config'] : '/MathJax.js';
if(!empty($config['mathjax_use_cdn']))
{
if(!empty($config['mathjax_cdn_force_ssl']))
{
$mathjax_uri = $config['mathjax_cdn_ssl'];
}
else
{
$server_protocol = ($config['server_protocol']) ? $config['server_protocol'] : (($config['cookie_secure']) ? 'https://' : 'http://');
$mathjax_uri = ($server_protocol === 'http://') ? $config['mathjax_cdn'] : $config['mathjax_cdn_ssl'];
}
$mathjax_uri_fallback = (!empty($config['mathjax_uri'])) ? ($config['mathjax_uri'] . $mathjax_file) : '';
}
else
{
$mathjax_uri = isset($config['mathjax_uri']) ? $config['mathjax_uri'] : '';
}
$mathjax_uri = $mathjax_uri . $mathjax_file;
if(empty($config['mathjax_dynamic_load']))
{
$template->assign_var('S_ENABLE_MATHJAX', true);
}
}
```

Code: Select all

` 'U_FEED' => generate_board_url() . "/feed.$phpEx",`

Code: Select all

```
'U_MATHJAX' => (isset($mathjax_uri)) ? $mathjax_uri : '',
'UA_MATHJAX_FALLBACK' => (isset($mathjax_uri_fallback)) ? $mathjax_uri_fallback : '',
'S_MATHJAX_HAS_FALLBACK'=> (!empty($mathjax_uri_fallback)) ? true : false,
```

Code: Select all

` 'S_SEARCH_HIDDEN_FIELDS' => build_hidden_fields($s_search_hidden_fields),`

Code: Select all

` 'T_ASSETS_PATH' => "{$web_path}assets",`