TWLan Forum
Top 10 - Printable Version

+- TWLan Forum (https://twlan.org)
+-- Forum: Legacy (https://twlan.org/forumdisplay.php?fid=61)
+--- Forum: TWLan 1.x (DSLan) (https://twlan.org/forumdisplay.php?fid=62)
+---- Forum: Deutsche Community (https://twlan.org/forumdisplay.php?fid=65)
+----- Forum: Spielerprojekte (https://twlan.org/forumdisplay.php?fid=9)
+------ Forum: Tools und Spielerprojekte (https://twlan.org/forumdisplay.php?fid=10)
+------ Thread: Top 10 (/showthread.php?tid=5578)



Top 10 - Kevin Silva - 04.12.2012

[Image: topje.png]
-

Good tool, do you think?

move to file for templates

templates/game_ranking.tpl past this:
PHP Code:
{if top==$mode}

                                <
tr>
                                    <
td class="selected" width="120">
                                        <
a href="game.php?village={$village.id}&amp;screen=ranking&amp;mode=top">Top 10</a>
                                    </
td>
                                </
tr>

                                    {else}
                                <
tr>
                                <
td width="120">
                                    <
a href="game.php?village={$village.id}&amp;screen=ranking&amp;mode=top">Top 10</a>
                                </
td>
                            </
tr>
                                    {/if} 

in the end past this:
PHP Code:
{if $mode == 'top'}
                        {include 
file="game_ranking_top.tpl"}
{/if} 

Regards