Postado Janeiro 14, 2017 8 anos Em 24/09/2016 em 10:51, gobr disse: Script bem simples "não é bem um tutorial" vai em layouts.php procure por <div id="Themeboxes"> e add <?php include($layout_name.'/widget_rank.php'); ?> crie widget_rank.php e add isso dentro. Mostrar conteúdo oculto Mostrar conteúdo oculto <?php $skills = $SQL->query('SELECT * FROM players WHERE deleted = 0 AND group_id < '.$config['site']['players_group_id_block'].' AND account_id != 1 ORDER BY level DESC LIMIT 5'); ?> <style type="text/css" media="all"> .Toplevelbox { position: relative; margin-bottom: 10px; width: 180px; height: 200px; } .top_level { position: absolute; top: 30px; left: 6px; height: 180px; width: 168px; z-index: 20; text-align: center; padding-top: 6px; font-family: Tahoma, Geneva, sans-serif; font-size: 9.2pt; color: #FFF; font-weight: bold; text-align: right; text-decoration: inherit; text-shadow: 0.1em 0.1em #333 } #Topbar a { text-decoration: none; cursor: auto; } a.topfont { font-family: Verdana, Arial, Helvetica; font-size: 13px; color: #0F0; text-decoration: none } a:hover.topfont { font-family: Verdana, Arial, Helvetica; font-size: 13px; color: #CCC; text-decoration:none } </style> <div id="Topbar" class="Toplevelbox" style="background-image:url(<?PHP echo $layout_name; ?>/images/top_level.png);"> <div class="top_level" style="background:url(<?PHP echo $layout_name; ?>/images/bg_top.png)" align="left"> <?php $a = 1; foreach($skills as $skill) { echo '<div align="left"><a href="?subtopic=characters&name='.$skill['name'].'" class="topfont"> <font color="#CCC"> '.$a.' - </font>'.$skill['name'].' <br> <small><font color="white"> Level: ('.$skill['level'].')</font></small> <br> <img src="/images/outfit.php?id='.$skill['looktype'].'&addons='.$skill['lookaddons'].'&head='.$skill['lookhead'].'&body='.$skill['lookbody'].'&legs='.$skill['looklegs'].'&feet='.$skill['lookfeet'].'" width="64" height="64" style="width: 64px; height: 64px; position: absolute; background-position: 0 0; background-repeat: no-repeat; left: -50px; margin-top: -70px;"> </a> </div>'; $a++; } ?> <div class="Bottom" style="background-image:url(http://tremera-global.com/templates/tibia/images/global/general/box-bottom.gif); left:-5px;"> </div> </div> </div> BOM EU VI MUITAS PESSOAS PEDIR ISSO ENTAO EU DEI UMA EDITADINHA E UPEI AQUI. DEEM UMA OLHADA NO MEU OTSERV FIREOT.COM vai em images e descompila isso. Meu site nao mudou nada :s
Postado Janeiro 14, 2017 8 anos @tirso é porque ele só postou o script você precisa da pasta com as img das outfit ou fazer pelo php http://outfit-images.ots.me/
Postado Janeiro 14, 2017 8 anos Em 14/01/2017 em 22:10, Lost666 disse: @tirso é porque ele só postou o script você precisa da pasta com as img das outfit ou fazer pelo php http://outfit-images.ots.me/ Já baixei e nada
Postado Janeiro 14, 2017 8 anos altera a parte da img para essa <img src="http://outfit-images.ots.me/idleOutfits1092/outfit.php?id='.$skill['looktype'].'&addons='.$skill['lookaddons'].'&head='.$skill['lookhead'].'&body='.$skill['lookbody'].'&legs='.$skill['looklegs'].'&feet='.$skill['lookfeet'].'" width="64" height="64" style="width: 64px; height: 64px; position: absolute; background-position: 0 0; background-repeat: no-repeat; left: -50px; margin-top: -70px;">
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.