https://www.icyphoenix.com/viewtopic.php?f=35&t=7354&p=50163#p50163
-----------------------------------
Mighty Gorgon
Wed 15 Sep, 2010 23:50

Re: LoFi Function
-----------------------------------
If you want to disable globally LoFi try these changes:

[list][*]In [b]templates/default/xs.cfg[/b] leave only these lines:
[codeblock]global $userdata, $board_config, $lofi_bots_parsing;

$replace['index_body.tpl'] = 'xs_index.tpl';
$replace['viewtopic_body.tpl'] = 'xs_topic.tpl';
$replace['viewtopic_kb_body.tpl'] = 'xs_topic.tpl';
$replace['jumpbox.tpl'] = 'xs_jumpbox.tpl';

$lofi_bots_parsing = false;
$lofi_bots_path = '';
$lofi_bots_suffix = '';[/codeblock]
[*]In [b]templates/default/default.cfg[/b] delete these lines:
[codeblock]if (($lofi_bots_parsing == true) || isset($_COOKIE['lofi']) || isset($_GET['lofi']) || isset($_POST['lofi']))
{
    $light_template = ($lofi_bots_parsing == true) ? true : (($_COOKIE['lofi'] == true) ? true : (($_GET['lofi'] == true) ? true : (($_POST['lofi'] == true) ? true : false)));
    //$light_template = true;
}[/codeblock]
[*]In [b]common.php[/b] delete these lines:
[codeblock]if ((isset($_GET['lofi']) && (intval($_GET['lofi']) == 1)) || (isset($_COOKIE['lofi']) && (intval($_COOKIE['lofi']) == 1)))
{
    $lofi = 1;
}[/codeblock][/list]

Let me know if it is enough.


