Postado Abril 13, 2018 7 anos Sempre vai dá erro, C:\xampp\htdocs\layouts\tibiarl\layout.phpon line 344 só você abrir o layout.php da um ctrl + f e escrever thora, o nome do layout tá errado '-'
Postado Abril 13, 2018 7 anos Autor 2 minutos atrás, Jobs disse: Sempre vai dá erro, C:\xampp\htdocs\layouts\tibiarl\layout.phpon line 344 só você abrir o layout.php da um ctrl + f e escrever thora, o nome do layout tá errado '-' eu ja mudei e nao funcionou.
Postado Abril 13, 2018 7 anos Cara aqui ta funcionando normalmente, eu só troquei essa parte <div class="well"> <h2><font color="black">Top 5 Guilds</font></h2> <table class="table table-condensed table-content table-striped"> <tbody> <tr><td>1.</td><td><a href="?subtopic=guilds&action=show&guild=26"><img src="guild_image.php?id=26" width="16" height="16" border="0"/> Loneliness</a> <td><span class="label label-danger pull-right">126 kills</td></span></td></tr> <tr><td>2.</td><td><a href="?subtopic=guilds&action=show&guild=30"><img src="guild_image.php?id=30" width="16" height="16" border="0"/> Out Laws</a> <td><span class="label label-danger pull-right">65 kills</td></span></td></tr> <tr><td>3.</td><td><a href="?subtopic=guilds&action=show&guild=39"><img src="guild_image.php?id=39" width="16" height="16" border="0"/> Amfethamine</a> <td><span class="label label-danger pull-right">57 kills</td></span></td></tr> <tr><td>4.</td><td><a href="?subtopic=guilds&action=show&guild=25"><img src="guild_image.php?id=25" width="16" height="16" border="0"/> Daylight</a> <td><span class="label label-danger pull-right">51 kills</td></span></td></tr> <tr><td>5.</td><td><a href="?subtopic=guilds&action=show&guild=15"><img src="guild_image.php?id=15" width="16" height="16" border="0"/> Semicolon Parenthesis</a> <td><span class="label label-danger pull-right">45 kills</td></span></td></tr> </tbody> </table> </div> </div> por essa aqui <div class="well"> <h2><font color="black">Top 5 Guilds</font></h2> <table class="table table-condensed table-content table-striped"> <tbody> <?php $guildsPower = $SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `players` p LEFT JOIN `player_deaths` pd ON `pd`.`killed_by` = `p`.`name` LEFT JOIN `guild_membership` gm ON `p`.`id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id` WHERE `pd`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 0, 4')->fetchAll(); $i = 0; foreach($guildsPower as $guild) { echo ' <tr><td>' . ++$i . '.</td><td><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="guild_image.php?id=' . $guild['id'] . '" width="16" height="16" border="0"/> ' . $guild['name'] . '</a> <td><span class="label label-danger pull-right">' . $guild['frags'] . ' kills</td></span></td></tr>'; } ?> </tbody> </table> </div> </div>
Postado Abril 13, 2018 7 anos Autor 2 minutos atrás, Jobs disse: Cara aqui ta funcionando normalmente, eu só troquei essa parte <div class="well"> <h2><font color="black">Top 5 Guilds</font></h2> <table class="table table-condensed table-content table-striped"> <tbody> <tr><td>1.</td><td><a href="?subtopic=guilds&action=show&guild=26"><img src="guild_image.php?id=26" width="16" height="16" border="0"/> Loneliness</a> <td><span class="label label-danger pull-right">126 kills</td></span></td></tr> <tr><td>2.</td><td><a href="?subtopic=guilds&action=show&guild=30"><img src="guild_image.php?id=30" width="16" height="16" border="0"/> Out Laws</a> <td><span class="label label-danger pull-right">65 kills</td></span></td></tr> <tr><td>3.</td><td><a href="?subtopic=guilds&action=show&guild=39"><img src="guild_image.php?id=39" width="16" height="16" border="0"/> Amfethamine</a> <td><span class="label label-danger pull-right">57 kills</td></span></td></tr> <tr><td>4.</td><td><a href="?subtopic=guilds&action=show&guild=25"><img src="guild_image.php?id=25" width="16" height="16" border="0"/> Daylight</a> <td><span class="label label-danger pull-right">51 kills</td></span></td></tr> <tr><td>5.</td><td><a href="?subtopic=guilds&action=show&guild=15"><img src="guild_image.php?id=15" width="16" height="16" border="0"/> Semicolon Parenthesis</a> <td><span class="label label-danger pull-right">45 kills</td></span></td></tr> </tbody> </table> </div> </div> por essa aqui <div class="well"> <h2><font color="black">Top 5 Guilds</font></h2> <table class="table table-condensed table-content table-striped"> <tbody> <?php $guildsPower = $SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `players` p LEFT JOIN `player_deaths` pd ON `pd`.`killed_by` = `p`.`name` LEFT JOIN `guild_membership` gm ON `p`.`id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id` WHERE `pd`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 0, 4')->fetchAll(); $i = 0; foreach($guildsPower as $guild) { echo ' <tr><td>' . ++$i . '.</td><td><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="guild_image.php?id=' . $guild['id'] . '" width="16" height="16" border="0"/> ' . $guild['name'] . '</a> <td><span class="label label-danger pull-right">' . $guild['frags'] . ' kills</td></span></td></tr>'; } ?> </tbody> </table> </div> </div> pode me passar a database que está usando?
Postado Abril 13, 2018 7 anos Cara, eu to usando a base do gesior2012. https://github.com/gesior/Gesior2012 to usando uma database limpa, zerada. To tentando terminar o powergamers, já arrumei o players online, falta o botão de login tb otserv.sql Editado Abril 13, 2018 7 anos por Jobs (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.