solved Flashback Index Page Stats

ukdenny
@ukdenny
6 years ago
304 posts
Although this is unchecked in the Global Config Index >show stats. They still display. I have cleared catch and done integrity check.
I want to just disable them until I get a few more people on my site.
Is there a fix for this please.
updated by @ukdenny: 07/17/18 12:56:47AM
nate
@nate
6 years ago
917 posts
What product are you using? I assume this is a skin.
updated by @nate: 02/27/18 03:48:07PM
ukdenny
@ukdenny
6 years ago
304 posts
Flashback issue as screenshot
ukdenny
@ukdenny
6 years ago
304 posts
Screen shot
statsScreenshot.jpg
statsScreenshot.jpg  •  235KB

brian
@brian
6 years ago
10,148 posts
Your screenshot is very chunky so it is hard to see any values - what is the issue? Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
nate
@nate
6 years ago
917 posts
He says stats continue to show tho he's unchecked the setting. I'll test it out.
nate
@nate
6 years ago
917 posts
OK I got this fixed. If you know how to edit templates, the code is below.. Just but the stats section inside that code.

If not, we will post an update in a few days.

{if isset($_conf.jrFlashback_show_stats) && $_conf.jrFlashback_show_stats == 'on'}

{/if}

updated by @nate: 02/27/18 04:12:30PM
ukdenny
@ukdenny
6 years ago
304 posts
Thanks Nate, I will hang on for the update.
ukdenny
@ukdenny
6 years ago
304 posts
It appears that the update hasn't been done yet to solve this issue. Could you please tell be which template to add the above code and I will try to resolve it myself.
Thanks.
douglas
@douglas
6 years ago
2,790 posts
Hello,

That setting is for the profile stats... it wasn't ever really setup for the home page stats so isn't really a bug or something that needs to be fixed.

If you want to hide home page stats, you'll have to modify the side.tpl and add the if statement Nate posted around the code for the stats.

Change this:

{* STATS *}
    <div class="title">{jrCore_lang skin=$_conf.jrCore_active_skin id="36" default="stats"}</div>
    <div class="body_3 mb10">
        <div style="width:90%;display:table;margin:0 auto;">

            {capture name="template" assign="stats_tpl"}
            {literal}
                {foreach $_stats as $title => $_stat}
                <div style="display:table-row">
                    <div class="capital bold" style="display:table-cell">{$title}</div>
                    <div class="hilite" style="width:5%;display:table-cell;text-align:right;">{$_stat.count}</div>
                </div>
                {/foreach}
            {/literal}
            {/capture}

            {jrCore_stats template=$stats_tpl}

        </div>
    </div>

to this:

{* STATS *}
{if isset($_conf.jrFlashback_show_stats) && $_conf.jrFlashback_show_stats == 'on'}
    <div class="title">{jrCore_lang skin=$_conf.jrCore_active_skin id="36" default="stats"}</div>
    <div class="body_3 mb10">
        <div style="width:90%;display:table;margin:0 auto;">

            {capture name="template" assign="stats_tpl"}
            {literal}
                {foreach $_stats as $title => $_stat}
                <div style="display:table-row">
                    <div class="capital bold" style="display:table-cell">{$title}</div>
                    <div class="hilite" style="width:5%;display:table-cell;text-align:right;">{$_stat.count}</div>
                </div>
                {/foreach}
            {/literal}
            {/capture}

            {jrCore_stats template=$stats_tpl}

        </div>
    </div>
{/if}

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
ukdenny
@ukdenny
6 years ago
304 posts
Thank you Douglas, it helped perfectly.

Tags