PDA

View Full Version : Statistic box



Gatis
September 22, 2021, 03:45 PM
Hello,
Is there any quick solution how to move the Olx theme Statistic block between the footer and newsletter block just like in the picture? It should be visible on all pages.
4348

Rudi
September 22, 2021, 04:36 PM
Hello,

- Disable the Statistics box via admin panel

- go to templates > general_olx > tpl > footer.tpl

before the line:


<footer class="page-footer content-padding">


add:


{include file=$componentDir|cat:'statistics/_statistics.tpl'}



- then in general_olx > components > statistics > _statistics.tpl

remove this part:


{if !$side_bar_exists && !$block.Tpl && ($block.Side == 'top' || $block.Side == 'middle' || $block.Side == 'bottom')}
...
leave the code inside
...
{/if}



- also go to includes > controllers > common.inc.php

and replace:


if ($block_keys['statistics']) {
$rlListingTypes->statisticsBlock();
}


with:


$rlListingTypes->statisticsBlock();

Gatis
September 22, 2021, 06:45 PM
Looks like it doesn't work.
If the Statistic box is not disabled then it is visible in both places.
If the Statistic box is disabled as suggested then the following message is visible between the footer and newsletter box: "Statistics are unavailable".
4349

Rudi
September 23, 2021, 02:29 AM
I've modified my post

Peter Jonsson
February 17, 2022, 07:45 PM
Looks awsome to have it on all pages :)