solved Online - Stats - Feeds: Menu and Default Active Tab Order

DFN
DFN
@dfn
8 years ago
35 posts
How do I code a change to the menu and default active tab order from:

Stats - Feeds - Online

To:

Online - Stats - Feeds

I am using the Media Pro (Light) Skin.

Thanks!
Online-Stats-Feeds.jpg


updated by @dfn: 05/22/16 04:13:34PM
douglas
@douglas
8 years ago
2,791 posts
In your skins/YOURSKIN/side_home.tpl file, find this:

{* STATS | ONLINE *}
<table class="menu_tab">
    <tr>
        <td>
            <div id="default" class="p_choice" onclick="jrLoad('#stats','{$jamroom_url}/stats');jrSetActive('#default');">{jrCore_lang skin=$_conf.jrCore_active_skin id="36" default="stats"}</div>
        </td>
        <td class="spacer">&nbsp;</td>
        <td>
            <div id="rss_feeds" class="p_choice" onclick="jrLoad('#stats','{$jamroom_url}/site_feeds');jrSetActive('#rss_feeds');">{jrCore_lang skin=$_conf.jrCore_active_skin id="134" default="Feeds"}</div>
        </td>
        <td class="spacer">&nbsp;</td>
        <td>
            <div id="online" class="p_choice" onclick="jrLoad('#stats','{$jamroom_url}/online');jrSetActive('#online');">{jrCore_lang skin=$_conf.jrCore_active_skin id="113" default="online"}</div>
        </td>
    </tr>
</table>

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

        {jrCore_stats template=$stats_tpl}

    </div>
</div>

and change it to this:

{* STATS | ONLINE *}
<table class="menu_tab">
    <tr>
        <td>
            <div id="default" class="p_choice" onclick="jrLoad('#stats','{$jamroom_url}/online');jrSetActive('#default');">{jrCore_lang skin=$_conf.jrCore_active_skin id="113" default="online"}</div>
        </td>
        <td class="spacer">&nbsp;</td>
        <td>
            <div id="rss_feeds" class="p_choice" onclick="jrLoad('#stats','{$jamroom_url}/site_feeds');jrSetActive('#rss_feeds');">{jrCore_lang skin=$_conf.jrCore_active_skin id="134" default="Feeds"}</div>
        </td>
        <td class="spacer">&nbsp;</td>
        <td>
            <div id="statistics" class="p_choice" onclick="jrLoad('#stats','{$jamroom_url}/stats');jrSetActive('#statistics');">{jrCore_lang skin=$_conf.jrCore_active_skin id="36" default="stats"}</div>
        </td>
    </tr>
</table>

<div id="stats" class="body_2 mb20">
    <div style="width:90%;display:table;margin:0 auto;">

        {jrUser_whos_online template="whos_online.tpl"}

    </div>
</div>



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
DFN
DFN
@dfn
8 years ago
35 posts
Thanks @douglas - your code above helped me tweak this like I wanted!
douglas
@douglas
8 years ago
2,791 posts
Glad to hear it. :)


--

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