solved Disable Stats tab on jrMediaPro Light

hansd007
@hansd007
10 years ago
50 posts
Hi,

I want to disable the Stats tab which appears on the right sidebar.

And make the Categories tab show by default.

Any ideas. Tried commenting out some code, which made the stats themselves go away, but couldn't get the Stats menu tab to go away.

http://pulse.bamradionetwork.com/music

updated by @hansd007: 04/14/14 12:56:25AM
brian
@brian
10 years ago
10,148 posts
You'll find that section in the "side_home.tpl" file.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
hansd007
@hansd007
10 years ago
50 posts
@Brian,

Even tho it's on the music page?
brian
@brian
10 years ago
10,148 posts
hansd007:
@Brian,

Even tho it's on the music page?

Yeah - you'll see that that file is "included" on a number of pages.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
hansd007
@hansd007
10 years ago
50 posts
@brian,

Thanks for the help.

One last question. I managed to remove it, however not I can't get the Categories (Genres) tab to be active on page load. It only loads the drop down if I click on it.

Do I need to edit this code above the search form?

{if isset($_post.search_area) && $_post.search_area == 'audio_genre'}
brian
@brian
10 years ago
10,148 posts
If you look in the site_home.tpl file, below where the "stats" header was, you want to replace this:

        {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="hl-3" style="width:5%;display:table-cell;text-align:right;">{$_stat.count}</div>
                </div>
                {/foreach}
            {/literal}
        {/capture}

        {jrCore_stats template=$stats_tpl}

With this:

{include file="music_genres.tpl"}

And that should do it.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
hansd007
@hansd007
10 years ago
50 posts
Hmm yeah unfortunately that breaks the page, sidebar doesn't appear at all...
douglas
@douglas
10 years ago
2,791 posts
I'm guessing you've got this figured out because I'm seeing the category search on the side here:

http://pulse.bamradionetwork.com/music

Or are you still needing assistance with this?

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
hansd007
@hansd007
10 years ago
50 posts
@douglas

Thanks for the follow up, yes I did figure it out late last night.
douglas
@douglas
10 years ago
2,791 posts
Glad to hear it. :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags