Pronto! Para não falar bambiarra, vou dizer que fiz uma solução inteligente de baixo custo.
NÃO SUBSTITUA NADA ANTES DE FAZER BACKUP
Este código abaixo ficará no lugar do código que você postou do template .-.
Código:
{#INCLUDE:header}
<?php include_once 'newRank.php'; ?>
<div id="main">
<div id="rightbar">
{#INCLUDE:menuRight}
</div>
<div id="center">
<div class="box">
<h1>Rankings</h1>
<div class="spacing">
<script type="text/javascript">
function checkType()
{
var period = document.getElementById('period').value;
if (period > 0)
document.getElementById('type').value = 1;
}
function checkPeriod()
{
var type = document.getElementById('type').value;
if (type > 1)
document.getElementById('period').value = 0;
}
</script>
<form action="" method="get"><input type="hidden" name="page" value="rankings" />
<strong> Rankings em geral</strong>
<hr />
<table border='1' width='600px'>
<tr>
<td><strong>Período: </strong>
<select name="period" id="period" onchange="checkType();" class="ipt-text">
<option value="0">Tempo real</option>
<option value="1">Semanal</option>
<option value="2">Mensal</option>
</select>
</td>
<td><strong>Tipo: </strong>
<select name="type" id="type" onchange="checkPeriod();" class="ipt-text">
<option value="0">Mata-Mata</option>
<option value="1">Resets</option>
<option value="5">Master Resets</option>
<option value="2">Level</option>
<option value="4">Pk (Mortes)</option>
<option value="3">Guilds</option>
<option value="6">Pega-Pega</option>
<option value="7">Trade Winner</option>
<option value="10">Rei do PVP</option>
<option value="11">Esconde-Esconde</option>
<?php global $RANKING_CONFIGS;
echo ($RANKING_CONFIGS['GENS'] == true ? "<option value=\"8\">Gens - Familia Duprian</option><option value=\"9\">Gens - Familia Vanert</option>" : NULL); ?>
</select>
</td>
<td><strong>Quantidade:</strong>
<select name="top" class="ipt-text">
<option value="10">10</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="200">200</option>
</select>
</td>
<td>
<input type="hidden" name="carregar" value="0"/>
<input type="submit" value="Carregar" class="button" />
</td>
</tr>
</table>
</form>
<br /><br />
<form action="" method="get">
<strong>Busca por nome exato: </strong>
<hr />
<table border='0' width='100%'>
<tr>
<td width="29%"><strong>Tipo: </strong>
<select name="type" id="type" class="ipt-text">
<option value="6">Personagem</option>
<option value="7">Guild</option>
</select>
</td>
<td width="40%"><strong>Nome:</strong>
<input type="text" name="name" value="" />
</td>
<td width="31%">
<input type="hidden" name="page" value="rankings" />
<input type="submit" value="Buscar" class="button" />
</td>
</tr>
</table>
</form>
<br /><br /><br />
<?php
if($_GET['carregar'] === '0'){
newRank($_GET['period'], $_GET['type'], $_GET['top'], $_GET['page']);
}
?>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="clearfix"></div>
</div>
{#INCLUDE:footer}
Substituído o mesmo, não sei qual a forma que o LD usa pra fazer as requisições de arquivo, por isso indico que coloque o arquivo newRank.php na pasta raiz, ou seja, onde fica a index.php principal do site, caso venha ocasionar erro, só postar que digo como resolver(ou ao menos tento :P )
Abra o arquivo, leia o que eu escrevi, e você mesmo pode personalizá-lo, já que o arquivo está unpack, e está bem simples de ser compreendido. Está comentado com algumas coisas que devem ser feitas antes de mais nada!
Bom, espero que resolva, por gentileza peço que testem e postem os resultados, pois não possuo a web para os teste...