Siga-nos em...
Follow us on Twitter Follow us on Facebook Watch us on YouTube
Registro


HGIDC
Página 1 de 2 12 ÚltimoÚltimo
Resultados 1 a 10 de 11
  1. #1

    Avatar de MuEx
    Data de Ingresso
    Jan 2011
    Localização
    Loren Deep
    Posts
    141
    Agradecido
    0
    Agradeceu
    0
    Peso da Avaliação
    8

    Post Rankings no MuSite 1.7x

    Óla pessoal, no momento meu ranking está assim :



    Gostaria de saber como deixar ele assim :



    Apenas trocar os nomes por o Avatar do player no site.
    Eu utilizo o MuSite 1.7x

    Aguardo respostas, Abraços.

    ---------- Post adicionado em 07:04 PM ---------- post anterior foi em 03:16 PM ----------

    ninguem ? DDDDDDDDD:

  2. #2

    Avatar de Mentor
    Data de Ingresso
    Nov 2009
    Localização
    São Mateus ES
    Idade
    40
    Posts
    414
    Agradecido
    98
    Agradeceu
    49
    Peso da Avaliação
    13

    Padrão

    Eu tambem queria muito saber deixar desse jeito , pois fica mais legal mesmo *-*, acho que basta baixar algum site crakeado do daldegan que tenha esse tipo de raking, e catar o script que fica na index.tpl da template...

  3. #3

    Avatar de Mapta
    Data de Ingresso
    Sep 2010
    Localização
    SP
    Idade
    22
    Posts
    342
    Agradecido
    8
    Agradeceu
    5
    Peso da Avaliação
    11

    Padrão

    Se eu nao me engano é isso ..
    Código:
    <div class="legend"> 
    <h3 class="legend-title"><span style="font-size: 13px;">Top Personagems:</span></h3> 
     <div style="margin-bottom: 8px; margin-top: 10px;"> 
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tops"> 
    <tr> 
    <td width="20%" align="center">Top M. Resets</td> 
    <td width="20%" align="center">Top Resets</td> 
    <td width="20%" align="center">Top Semanal</td> 
    <td width="20%" align="center">Top Mensal</td> 
    <td width="20%" align="center">Top PK Killer</td> 
    </tr> 	
    
    <td align="center" valign="middle"><? 
    $Q = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,MResets as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY MResets DESC,cLevel DESC,Name ASC")); 
    if($Q != false) { 
        $img = trim($Q->Image); 
        if(file_exists("modules/avatars/".$img) == false || empty($img) == true) $img = "no-photo.gif"; 
        echo("<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n"); 
        echo('<img src="modules/avatars/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />'); 
        echo(number_format((int)$Q->Temp, 0, null, ".")." M.Resets</a>"); 
    } else { 
        echo("Nenhum Resultado"); 
    } 
    ?></td> 
    <td align="center" valign="middle"><? 
    $Q = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,Resets as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY Resets DESC,cLevel DESC,Name ASC")); 
    if($Q != false) { 
        $img = trim($Q->Image); 
        if(file_exists("modules/avatars/".$img) == false || empty($img) == true) $img = "no-photo.gif"; 
        echo("<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n"); 
        echo('<img src="modules/avatars/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />'); 
        echo(number_format((int)$Q->Temp, 0, null, ".")." Resets</a>"); 
    } else { 
        echo("Nenhum Resultado"); 
    } 
    ?></td>
    <td align="center" valign="middle"><?
    $Q = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,resetsWeek as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY resetsWeek DESC,cLevel DESC,Name ASC"));
    if($Q != false) {
    	$img = trim($Q->Image);
    	if(file_exists("modules/avatars/".$img) == false || empty($img) == true) $img = "no-photo.gif";
    	echo("<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n");
    	echo('<img src="modules/avatars/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />');
    	echo(number_format((int)$Q->Temp, 0, null, ".")." Resets</a>");
    } else {
    	echo("Nenhum Resultado");
    }
    ?></td>
    <td align="center" valign="middle"><?
    $Q = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,resetsMonth as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY resetsMonth DESC,cLevel DESC,Name ASC"));
    if($Q != false) {
    	$img = trim($Q->Image);
    	if(file_exists("modules/avatars/".$img) == false || empty($img) == true) $img = "no-photo.gif";
    	echo("<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n");
    	echo('<img src="modules/avatars/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />');
    	echo(number_format((int)$Q->Temp, 0, null, ".")." Resets</a>");
    } else {
    	echo("Nenhum Resultado"); 
    } 
    ?></td> 
    <td align="center" valign="middle"><? 
    $Q = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,PkCount as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY PkCount DESC,cLevel DESC,Name ASC")); 
    if($Q != false) { 
        $img = trim($Q->Image); 
        if(file_exists("modules/avatars/".$img) == false || empty($img) == true) $img = "no-photo.gif"; 
        echo("<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n"); 
        echo('<img src="modules/avatars/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />'); 
        echo(number_format((int)$Q->Temp, 0, null, ".")." Mortes</a>"); 
    } else { 
        echo("Nenhum Resultado"); 
    } 
    ?></td> 
    </tr> 
    </table> 
    </div> 
    </div> 
    <br /> 
    <div class="legend"> 
    <h3 class="legend-title"><span style="font-size: 13px;">Top Guild Score:</span></h3> 
    <div style="margin-bottom: 8px; margin-top: 10px;"> 
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tops"> 
    <tr> 
    <? 
    $Q = @mssql_query("SELECT TOP 5 G_Name,G_Mark,G_Score FROM MuOnline.dbo.Guild ORDER BY G_Score DESC"); 
    while($row = @mssql_fetch_object($Q)) { 
        echo("<td align=\"center\">"); 
        echo("<a href=\"?page=rankings&guild=".urlencode($row->G_Name)."\">".$row->G_Name." <br />\n"); 
        echo('<img src="modules/gMark.php?m='.bin2hex($row->G_Mark).'" alt="" width="104" height="104" style="border: 2px solid #000000;" /><br />'); 
        echo(number_format((int)$row->G_Score, 0, null, ".")." Pontos</a>"); 
        echo("</td>"); 
    } 
    ?>
    Última edição por Segredo; 10-03-2011 às 10:42 PM.

  4. #4

    Avatar de MuEx
    Data de Ingresso
    Jan 2011
    Localização
    Loren Deep
    Posts
    141
    Agradecido
    0
    Agradeceu
    0
    Peso da Avaliação
    8

    Padrão

    @mapta,
    Valew pelo codigo, mas com esse ai meu ranking na home nem abriu ...

    <div class="contentBox">
    <ul class="rank">
    <li style="margin-left: 7px;">
    <span>Top Resets:</span>
    <ul>
    {#RANK_TOP_RESETS_HOME}
    <li style="text-align: right;"><a href="?page=rankings&amp;type=1&amp;top=10&amp;per iod=0">[Ver ranking]</a></li>
    </ul>
    </li>
    <li>
    <span>Top Resets Semanal:</span>
    <ul>
    {#RANK_TOP_RESETS_WEEK_HOME}
    <li style="text-align: right;"><a href="?page=rankings&amp;type=1&amp;top=10&amp;per iod=1">[Ver ranking]</a></li>
    </ul>
    </li>
    <li>
    <span>Top Resets Mensal:</span>
    <ul>
    {#RANK_TOP_RESETS_MONTH_HOME}
    <li style="text-align: right;"><a href="?page=rankings&amp;type=1&amp;top=10&amp;per iod=2">[Ver ranking]</a></li>
    </ul>
    </li>
    </ul>
    <br style="clear: both" />
    </div>
    <div class="contentBox">
    <ul class="rank">
    <li style="margin-left: 7px;">
    <span>Top Master Resets:</span>
    <ul>
    {#RANK_TOP_MASTER_RESETS_HOME}
    <li style="text-align: right;"><a href="?page=rankings&amp;type=5&amp;top=10">[Ver ranking]</a></li>
    </ul>
    </li>
    <li>
    <span>Top Pk:</span>
    <ul>
    {#RANK_TOP_PK_HOME}
    <li style="text-align: right;"><a href="?page=rankings&amp;type=4&amp;top=10">[Ver ranking]</a></li>
    </ul>
    </li>
    <li>
    <span>Top Level:</span>
    <ul>
    {#RANK_TOP_LEVEL_HOME}
    <li style="text-align: right;"><a href="?page=rankings&amp;type=2&amp;top=10">[Ver ranking]</a></li>
    </ul>
    </li>
    </ul>
    <br style="clear: both" />
    </div>
    <div class="contentBox">
    <ul class="rank">
    <li style="margin-left: 7px; width: 97%;">
    <span>Ranking Guilds</span>
    <ul>
    <center><li><table><tr> {#RANK_TOP_GUILDS_HOME} </tr></table></li>
    <li style="text-align: right;"><a href="?page=rankings&amp;type=3&amp;top=10">[Ver ranking]</a></li></center>
    </ul>
    </li>
    </ul>
    <br style="clear: both" />
    </div>
    Esse é o codigo de meu ranking, não aparece os avatar's de jeito nenhum ... já tentei todas maneiras imaginaveis ;
    Obs ; minhas guild's aparecem as imagens :S
    Última edição por MuEx; 11-03-2011 às 12:36 AM.

  5. #5

    Avatar de Mapta
    Data de Ingresso
    Sep 2010
    Localização
    SP
    Idade
    22
    Posts
    342
    Agradecido
    8
    Agradeceu
    5
    Peso da Avaliação
    11

    Padrão

    se possivel poste sua index que eu coloco o ranking para você.

  6. #6

    Avatar de MuEx
    Data de Ingresso
    Jan 2011
    Localização
    Loren Deep
    Posts
    141
    Agradecido
    0
    Agradeceu
    0
    Peso da Avaliação
    8

    Padrão

    Opa ... possivel sim, ai vai ela completa;

    Código:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />  
    <link href="templates/darkstyle/css/style.css" type="text/css" rel="stylesheet" />
    <title>{#TITLE_SITE}</title>
    <script type="text/javascript" src="templates/darkstyle/js/jquery.js"></script>  
    <script type="text/javascript" src="templates/darkstyle/js/functions.js"></script>  
    <script type="text/javascript" src="templates/darkstyle/js/ajax.js"></script>
    <!--  STEP ONE: insert path to SWFObject JavaScript -->
    <script type="text/javascript" src="js/swfobject/swfobject.js"></script>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
     <!--  STEP TWO: configure SWFObject JavaScript and embed CU3ER slider -->
    <script type="text/javascript">
    var flashvars = {};
    flashvars.xml = "config.xml";
    flashvars.font = "font.swf";
    var attributes = {};
    attributes.wmode = "transparent";
    attributes.id = "slider";
    swfobject.embedSWF("cu3er.swf", "cu3er-container", "500", "190", "9", "expressInstall.swf", flashvars, attributes);
    </script>  
    <style type="text/css">
    <!--
    #cu3er-container {width:500px; outline:0; text-align:center;}
    -->
    </style>
    </head>
    <body>
    <div id="wrap">
    
        <div id="header"></div>
        
        <div id="div_menu">
            <ul id="menu">
                <li><a href="?page=home">Inicio</a></li>
                <li><a href="?page=paneluser">Painel</a></li>
                <li><a href="?page=register">Cadastro</a></li>
                <li><a href="?page=downloads">Downloads</a></li>
                <li><a href="?page=rankings">Rankings</a></li>
                <li><a href="?page=vips">Vips</a></li>
                <li><a href="{#SHOPPING_LINK}">Shop</a></li>
                <li><a href="/forum">Forum</a></li>
    	    <li><a href="http://www.muex.com.br/forum/forumdisplay.php?8-Eventos-em-andamento">Eventos</a></li>
                <li><a href="http://www.orkut.com.br/Main#Community?cmm=110302139">Orkut</a></li>
                <li><a href="/forum">Suporte</a></li>
                <li><a href="?page=contact">Fale Conosco</a></li>
            </ul>
        </div>
        
        <div id="content">
        
        	<div id="sidebar">    
                {#DIV[LOGIN_LOGOUT]} 
                
                <h4>Servidores</h4>    
                <div class="sidebox">
                	<ul>
                        {#GAMESERVERS_ON}
                        <li>Total online: <a href="?page=onlines&amp;room=all"><strong>{#TOTAL_ACCOUNTS_ONLINES}</strong></a></li>
                    </ul>	
                </div>
                
                <h4>Configura&ccedil;&otilde;es</h4>	
                <div class="sidebox">
                	<ul>
                        <li>Vers&atilde;o: <strong>{#SERVER_VERSION}</strong></li>
                        <li>Experi&ecirc;ncia: <strong>{#SERVER_XP}</strong></li>
                        <li>Drops: <strong>{#SERVER_DROP}</strong></li>
                        <li>Bug Bless: <strong>{#SERVER_BUGBLESS}</strong></li>
                        <li>Reset: <strong>Acumulativo</strong></li>
                    </ul>
                </div>   
                
                <h4>Informa&ccedil;&otilde;es</h4>	
                <div class="sidebox">
                    <ul>                
                        <li>Total de Contas: <strong>{#TOTAL_ACCOUNTS}</strong></li>
                        <li>Total de Chars: <strong>{#TOTAL_CHARATERS}</strong></li>
                        <li>Recorde Online: <strong>{#RECORD_ONLINE}</strong></li>
                        <li>{#VIP_NAME_1}: <strong>{#TOTAL_ACCOUNTS_VIP_SILVER}</strong></li>
                        <li>{#VIP_NAME_2}: <strong>{#TOTAL_ACCOUNTS_VIP_GOLD}</strong></li>
                        <li>Personagens Banidos: <a href="?page=banned&amp;type=characters"><strong>{#TOTAL_CHARACTERS_BANNEDS}</strong></a></li>
                        <li>Contas Banidas: <a href="?page=banned&amp;type=accounts"><strong>{#TOTAL_ACCOUNTS_BANNEDS}</strong></a></li>
                    </ul>    
                </div>   
              
                <h4>Enquete</h4>	
                <div class="sidebox">
                    <ul>                
                        {#POLL_OPTIONS} 
                        <li id="pollResult"></li>           
                    </ul>    
                </div>   
              
                <h4>Equipe</h4>	
                <div class="sidebox">
                    <div id='equipe'><a href="void">[Mostrar]</a></div>
                </div>   
              
            </div>
           	<div id="main">
                    <div class="contentBox">
                	<h2 class="noMargin">Últimas Notícias:</h2>
                    <ul class="list">
                        {#LAST_NOTICES_HOME}
                        <li style="text-align: right; margin-bottom: 0;"><a href="?page=readNotice">[Ver todas]</a></li>
                    </ul>
                </div>
                    <div class="contentBox">
                	<h2 class="noMargin">Novidades:</h2>
                    <div id="cu3er-container">
                   	  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="190" id="FlashID">
                    	  <param name="movie" value="cu3er.swf" />
                    	  <param name="quality" value="high" />
                    	  <param name="wmode" value="opaque" />
                    	  <param name="swfversion" value="9.0.45.0" />
                    	  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                    	  <param name="expressinstall" value="Scripts/expressInstall.swf" />
                    	  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                    	  <!--[if !IE]>-->
                    	  <object data="cu3er.swf" type="application/x-shockwave-flash" width="500" height="190">
                    	    <!--<![endif]-->
                    	    <param name="quality" value="high" />
                    	    <param name="wmode" value="opaque" />
                    	    <param name="swfversion" value="9.0.45.0" />
                    	    <param name="expressinstall" value="Scripts/expressInstall.swf" />
                    	    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                    	    <div>
                    	      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                    	      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                  	      </div>
                    	    <!--[if !IE]>-->
                  	    </object>
                    	  <!--<![endif]-->
                  	  </object>
                    </div>
                </div>
                
    			<?php
                global $FORUM_CONFIGS;
                if($FORUM_CONFIGS['ENABLE'] == TRUE)
                {
                ?>
                
            	<div class="contentBox">
                	<h2 class="noMargin">Notícias do Fórum:</h2>
                    <ul class="list">
                        {#LAST_FORUM_HOME}
                        <li style="text-align:right"><a href="<?=$FORUM_CONFIGS['LINK_FORUM'];?>" target="_blank"><em>[Ver todas]</em></a></li>
                    </ul>
                </div>
    			<?php
                }
                
                global $CASTLE_SIEGE;
                if($CASTLE_SIEGE['ENABLE'] == TRUE)
                {
                ?>
                
            	<div class="contentBox">
                	<h2 class="noMargin">Castle siege</h2>
                    <div style="background: url(templates/darkstyle/images/siege.jpg) no-repeat center center; height: 120px; position: relative;">
                        <div style="position: absolute; top: 49px; left: 340px;"><a href="?page=rankings&type=7&name={#CASTLE_SIEGE_OCCUPY_GUILD}">{#CASTLE_SIEGE_OCCUPY_GUILD}</a></div>
                        <div style="position: absolute; top: 78px; left: 340px; color: #FFFFFF;">{#CASTLE_SIEGE_END_DATE}</div>
                    </div>
                </div>
                
                <?php } ?>
                
            	<div class="contentBox">
                    <ul class="rank">
                        <li style="margin-left: 7px;">
                        	<span>Top Resets:</span>
                            <ul>
                                {#RANK_TOP_RESETS_HOME}
                                <li style="text-align: right;"><a href="?page=rankings&amp;type=1&amp;top=10&amp;period=0">[Ver ranking]</a></li>
                            </ul>
                        </li>
                        <li>
                        	<span>Top Resets Semanal:</span>
                            <ul>
                                {#RANK_TOP_RESETS_WEEK_HOME}
                                <li style="text-align: right;"><a href="?page=rankings&amp;type=1&amp;top=10&amp;period=1">[Ver ranking]</a></li>
                            </ul>
                        </li>
                        <li>
                        	<span>Top Resets Mensal:</span>
                            <ul>
                                {#RANK_TOP_RESETS_MONTH_HOME}
                                <li style="text-align: right;"><a href="?page=rankings&amp;type=1&amp;top=10&amp;period=2">[Ver ranking]</a></li>
                            </ul>
                        </li>
                    </ul>
                    <br style="clear: both" />
                </div>
                <div class="contentBox">
                    <ul class="rank">
                        <li style="margin-left: 7px;">
                            <span>Top Master Resets:</span>
                            <ul>
                                {#RANK_TOP_MASTER_RESETS_HOME}
                                <li style="text-align: right;"><a href="?page=rankings&amp;type=5&amp;top=10">[Ver ranking]</a></li>
                            </ul>
                        </li>
                        <li>
                            <span>Top Pk:</span>
                            <ul>
                                {#RANK_TOP_PK_HOME}
                                <li style="text-align: right;"><a href="?page=rankings&amp;type=4&amp;top=10">[Ver ranking]</a></li>
                            </ul>
                        </li>
                        <li>
                            <span>Top Level:</span>
                            <ul>
                                {#RANK_TOP_LEVEL_HOME}
                                <li style="text-align: right;"><a href="?page=rankings&amp;type=2&amp;top=10">[Ver ranking]</a></li>
                            </ul>
                        </li>
                    </ul>
                    <br style="clear: both" />
                </div>
            	<div class="contentBox">
                    <ul class="rank">
                        <li style="margin-left: 7px; width: 97%;">
                        	<span>Ranking Guilds</span>
                            <ul>
                                <center><li><table><tr> {#RANK_TOP_GUILDS_HOME} </tr></table></li>
                                <li style="text-align: right;"><a href="?page=rankings&amp;type=3&amp;top=10">[Ver ranking]</a></li></center>
                            </ul>
                        </li>
                    </ul>
                    <br style="clear: both" />
                </div>
                <?php
                global $SCREENSHOTS;
                if($SCREENSHOTS['HOME'] == TRUE)
                {
                ?> 
                <div class="contentBox">
                    <h3 class="legend-title"><span style="font-size: 13px;">ScreenShots:</span></h3>
                    <div style="margin: 5px; text-align: center;">
                    <table style="width: 100%;"><tr>
                    <?php 
                        new ldModules("screenshots");
                        screenshots::getScreenshots();
                    ?>
                    </tr>
                    <tr><td align="right" colspan="<?php echo $SCREENSHOTS['TOP_HOME']; ?>"><a href="?page=loadModule&amp;module=screenshots&amp;action=viewAll">[Ver todas]</a></td></tr></table>
                    </div>
                </div>
                <?php
                }
                ?>
            </div>
            <br style="clear: both" />
    
    
    
    
    
    
    
    
    
    
    
        </div>
        <div id="footer">
            &copy; {#SERVER_NAME} - <strong>DarkStyle</strong> by <a href="http://www.denislins.com.br/" style="color: #666; font-weight: bold;" target="_blank">Denis Lins</a> - Imagens por Augusto Domingos - Powered by <a href="http://www.daldegamserver.com/" style="color: #666; font-weight: bold;" target="_blank">Leandro Daldegam</a> - Página gerada em {#ResultTime} segundos</div>
        </div>
        
    </div>
    
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FlashID");
    //-->
    </script>
    </body>
    </html>


    Aguardo respostas, abraços .

    EDIT : no sql a tabela referente ao avatar é: Character > imagem
    Última edição por MuEx; 12-03-2011 às 02:18 AM.

  7. #7

    Avatar de Mentor
    Data de Ingresso
    Nov 2009
    Localização
    São Mateus ES
    Idade
    40
    Posts
    414
    Agradecido
    98
    Agradeceu
    49
    Peso da Avaliação
    13

    Padrão

    victorgomesl, acredito que não basta apenas colocar o codigo na index, precisa tambem colocar alguma coluna na tabela character da db MuOnline, tipo por exemplo com o novo imagem, avatar... vou dar uma analizada...vou dar uma analizada no script postado pelo Mapta.

    ______edit

    victor conseguir fazer funcionar Abre index.tpl da template darkstyle e seleciona tudo e apaga, depois você copia os script que postei abaixo e testa. Faça um bekup do arquivo original caso venha ocorrer algum problema.


    Código PHP:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />  
    <link href="templates/darkstyle/css/style.css" type="text/css" rel="stylesheet" />
    <title>{#TITLE_SITE}</title>
    <script type="text/javascript" src="templates/darkstyle/js/jquery.js"></script>  
    <script type="text/javascript" src="templates/darkstyle/js/functions.js"></script>  
    <script type="text/javascript" src="templates/darkstyle/js/ajax.js"></script>  
    </head>
    <body>
    <div id="wrap">

        <div id="header"></div>
        
        <div id="div_menu">
            <ul id="menu">
                <li><a href="?page=home">Inicio</a></li>
                <li><a href="?page=paneluser">Painel</a></li>
                <li><a href="?page=register">Cadastro</a></li>
                <li><a href="?page=downloads">Downloads</a></li>
                <li><a href="?page=rankings">Rankings</a></li>
                <li><a href="?page=vips">Vips</a></li>
                <li><a href="{#SHOPPING_LINK}">Shop</a></li>
                <li><a href="?page=contact">Fale Conosco</a></li>
            </ul>
        </div>
        
        <div id="content">
        
            <div id="sidebar">    
                {#DIV[LOGIN_LOGOUT]} 
                
                <h4>Servidores</h4>    
                <div class="sidebox">
                    <ul>
                        {#GAMESERVERS_ON}
                        <li>Total online: <a href="?page=onlines&amp;room=all"><strong>{#TOTAL_ACCOUNTS_ONLINES}</strong></a></li>
                    </ul>    
                </div>
                
                <h4>Configura&ccedil;&otilde;es</h4>    
                <div class="sidebox">
                    <ul>
                        <li>Vers&atilde;o: <strong>{#SERVER_VERSION}</strong></li>
                        <li>Experi&ecirc;ncia: <strong>{#SERVER_XP}</strong></li>
                        <li>Drops: <strong>{#SERVER_DROP}</strong></li>
                        <li>Bug Bless: <strong>{#SERVER_BUGBLESS}</strong></li>
                    </ul>
                </div>   
                
                <h4>Informa&ccedil;&otilde;es</h4>    
                <div class="sidebox">
                    <ul>                
                        <li>Total de Contas: <strong>{#TOTAL_ACCOUNTS}</strong></li>
                        <li>Total de Chars: <strong>{#TOTAL_CHARATERS}</strong></li>
                        <li>Recorde Online: <strong>{#RECORD_ONLINE}</strong></li>
                        <li>{#VIP_NAME_1}: <strong>{#TOTAL_ACCOUNTS_VIP_SILVER}</strong></li>
                        <li>{#VIP_NAME_2}: <strong>{#TOTAL_ACCOUNTS_VIP_GOLD}</strong></li>
                        <li>Personagens Banidos: <a href="?page=banned&amp;type=characters"><strong>{#TOTAL_CHARACTERS_BANNEDS}</strong></a></li>
                        <li>Contas Banidas: <a href="?page=banned&amp;type=accounts"><strong>{#TOTAL_ACCOUNTS_BANNEDS}</strong></a></li>
                    </ul>    
                </div>   
              
                <h4>Enquete</h4>    
                <div class="sidebox">
                    <ul>                
                        {#POLL_OPTIONS} 
                        <li id="pollResult"></li>           
                    </ul>    
                </div>   
              
                <h4>Equipe</h4>    
                <div class="sidebox">
                    <div id='equipe'><a href="void">[Mostrar]</a></div>
                </div>   
              
            </div>









               <div id="main">
            
                <h1>{#TITLE_SITE}</h1>
                
                <div class="contentBox">
                    <h2 class="noMargin">&Uacute;ltimas notícias:</h2>
                    <ul class="list">
                        {#LAST_NOTICES_HOME}
                        <li style="text-align: right; margin-bottom: 0;"><a href="?page=readNotice">[Ver todas]</a></li>
                    </ul>
                </div>
                
                <?php
                
    global $FORUM_CONFIGS;
                if(
    $FORUM_CONFIGS['ENABLE'] == TRUE)
                {
                
    ?>
                
                <div class="contentBox">
                    <h2 class="noMargin">&Uacute;ltimas notícias:</h2>
                    <ul class="list">
                        {#LAST_FORUM_HOME}
                        <li style="text-align:right"><a href="<?=$FORUM_CONFIGS['LINK_FORUM'];?>" target="_blank"><em>[Ver todas]</em></a></li>
                    </ul>
                </div>
                
                <?php
                
    }
                
                global 
    $CASTLE_SIEGE;
                if(
    $CASTLE_SIEGE['ENABLE'] == TRUE)
                {
                
    ?>
                
                <div class="contentBox">
                    <h2 class="noMargin">Castle siege</h2>
                    <div style="background: url(templates/darkstyle/images/siege.jpg) no-repeat center center; height: 120px; position: relative;">
                        <div style="position: absolute; top: 49px; left: 340px;"><a href="?page=rankings&type=7&name={#CASTLE_SIEGE_OCCUPY_GUILD}">{#CASTLE_SIEGE_OCCUPY_GUILD}</a></div>
                        <div style="position: absolute; top: 78px; left: 340px; color: #FFFFFF;">{#CASTLE_SIEGE_END_DATE}</div>
                    </div>
                </div>
                
                <?php ?>
                
                <div class="contentBox">
                    <ul class="rank">
                        <li style="margin-left: 7px;">
                            <div class="legend"> 
    <h3 class="legend-title"><span style="font-size: 13px;">Top Personagems:</span></h3> 
     <div style="margin-bottom: 8px; margin-top: 10px;"> 
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tops"> 
    <tr> 
    <td width="20%" align="center">Top M. Resets</td> 
    <td width="20%" align="center">Top Resets</td> 
    <td width="20%" align="center">Top Semanal</td> 
    <td width="20%" align="center">Top Mensal</td> 
    <td width="20%" align="center">Top PK Killer</td>  
    </tr>     

    <td align="center" valign="middle"><? 
    $Q 
    = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,MResets as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY MResets DESC,cLevel DESC,Name ASC")); 
    if(
    $Q != false) { 
        
    $img trim($Q->Image); 
        if(
    file_exists("modules/avatars/".$img) == false || empty($img) == true$img "no-photo.gif"
        echo(
    "<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n"); 
        echo(
    '<img src="modules/avatars/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />'); 
        echo(
    number_format((int)$Q->Temp0null".")." M.Resets</a>"); 
    } else { 
        echo(
    "Nenhum Resultado"); 

    ?></td> 
    <td align="center" valign="middle"><? 
    $Q 
    = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,Resets as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY Resets DESC,cLevel DESC,Name ASC")); 
    if(
    $Q != false) { 
        
    $img trim($Q->Image); 
        if(
    file_exists("modules/avatars/".$img) == false || empty($img) == true$img "no-photo.gif"
        echo(
    "<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n"); 
        echo(
    '<img src="modules/avatars/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />'); 
        echo(
    number_format((int)$Q->Temp0null".")." Resets</a>"); 
    } else { 
        echo(
    "Nenhum Resultado"); 

    ?></td>
    <td align="center" valign="middle"><?
    $Q 
    = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,resetsWeek as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY resetsWeek DESC,cLevel DESC,Name ASC"));
    if(
    $Q != false) {
        
    $img trim($Q->Image);
        if(
    file_exists("modules/avatars/".$img) == false || empty($img) == true$img "no-photo.gif";
        echo(
    "<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n");
        echo(
    '<img src="modules/avatars/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />');
        echo(
    number_format((int)$Q->Temp0null".")." Resets</a>");
    } else {
        echo(
    "Nenhum Resultado");
    }
    ?></td>
    <td align="center" valign="middle"><?
    $Q 
    = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,resetsMonth as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY resetsMonth DESC,cLevel DESC,Name ASC"));
    if(
    $Q != false) {
        
    $img trim($Q->Image);
        if(
    file_exists("modules/avatars/".$img) == false || empty($img) == true$img "no-photo.gif";
        echo(
    "<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n");
        echo(
    '<img src="modules/avatars/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />');
        echo(
    number_format((int)$Q->Temp0null".")." Resets</a>");
    } else {
        echo(
    "Nenhum Resultado"); 

    ?></td> 
    <td align="center" valign="middle"><? 
    $Q 
    = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,PkCount as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY PkCount DESC,cLevel DESC,Name ASC")); 
    if(
    $Q != false) { 
        
    $img trim($Q->Image); 
        if(
    file_exists("modules/avatars/".$img) == false || empty($img) == true$img "no-photo.gif"
        echo(
    "<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n"); 
        echo(
    '<img src="modules/avatars/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />'); 
        echo(
    number_format((int)$Q->Temp0null".")." Mortes</a>"); 
    } else { 
        echo(
    "Nenhum Resultado"); 

    ?></td>
    </tr> 
    </table> 
    </div> 
    </div> 
    <br /> 

     

                </div>
                <div class="contentBox">
                    <ul class="rank">
                        <li style="margin-left: 7px; width: 97%;">
                            <span>Top Guilds:</span>
                            <ul>
                                <li><table><tr> {#RANK_TOP_GUILDS_HOME} </tr></table></li>
                                <li style="text-align: right;"><a href="?page=rankings&amp;type=3&amp;top=10">[Ver ranking]</a></li>
                            </ul>
                        </li>
                    </ul>
                    <br style="clear: both" />
                </div>
                <?php
                
    global $SCREENSHOTS;
                if(
    $SCREENSHOTS['HOME'] == TRUE)
                {
                
    ?> 
                <div class="contentBox">
                    <h3 class="legend-title"><span style="font-size: 13px;">ScreenShots:</span></h3>
                    <div style="margin: 5px; text-align: center;">
                    <table style="width: 100%;"><tr>
                    <?php 
                        
    new ldModules("screenshots");
                        
    screenshots::getScreenshots();
                    
    ?>
                    </tr>
                    <tr><td align="right" colspan="<?php echo $SCREENSHOTS['TOP_HOME']; ?>"><a href="?page=loadModule&amp;module=screenshots&amp;action=viewAll">[Ver todas]</a></td></tr></table>
                    </div>
                </div>
                <?php
                
    }
                
    ?>
            </div>
            <br style="clear: both" />











        </div>
        <div id="footer">
            &copy; {#SERVER_NAME} - <strong>DarkStyle</strong> by <a href="http://www.denislins.com.br/" style="color: #666; font-weight: bold;" target="_blank">Denis Lins</a> - Imagens por Augusto Domingos - Powered by <a href="http://www.daldegamserver.com/" style="color: #666; font-weight: bold;" target="_blank">Leandro Daldegam</a> - Página gerada em {#ResultTime} segundos</div>
        </div>
        
    </div>

    </body>
    </html>


    Depois você vai ter que criar uma pasta com o nome avatars e colocar alguma imagem em gif com o nome no-photo. Feito isso copie essa pasta para a dentro da pasta modules do seu site e pronto

    Agradecimento ao Mapta por postar o script, pois ajudou muito.
    Última edição por Mentor; 12-03-2011 às 12:26 PM.

  8. #8

    Avatar de MuEx
    Data de Ingresso
    Jan 2011
    Localização
    Loren Deep
    Posts
    141
    Agradecido
    0
    Agradeceu
    0
    Peso da Avaliação
    8

    Padrão

    ae, muito obrigado cara, ajustei algumas coisas e ficou perfeito ...
    valew mesmo, sem palavras

    Última edição por MuEx; 12-03-2011 às 03:33 PM.

  9. #9

    Avatar de Mentor
    Data de Ingresso
    Nov 2009
    Localização
    São Mateus ES
    Idade
    40
    Posts
    414
    Agradecido
    98
    Agradeceu
    49
    Peso da Avaliação
    13

    Padrão

    blz victorgomesl, o meu tambem é original, tipo realmente o script que o Mapta colocou tava buscando outro caminho^^
    Última edição por Mentor; 12-03-2011 às 04:00 PM.

  10. #10

    Avatar de MuEx
    Data de Ingresso
    Jan 2011
    Localização
    Loren Deep
    Posts
    141
    Agradecido
    0
    Agradeceu
    0
    Peso da Avaliação
    8

    Padrão

    esse é o codigo que estou usando, veja se funciona ai ...

    Código:
    <div class="contentBox">
                    <ul class="rank">
    			<li style="margin-left: 7px; width: 97%;">
                        	<h2 class="noMargin">Ranking:</h2> 
                            <ul>
    
    			<div class="legend">
    			<div style="margin-bottom: 8px; margin-top: 10px;"> 
    			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tops"> 
    <tr> 
    <td width="20%" align="center">Top M.Resets</td> 
    <td width="20%" align="center">Top Resets</td> 
    <td width="20%" align="center">Top Semanal</td> 
    <td width="20%" align="center">Top Mensal</td> 
    <td width="20%" align="center">Top PK Killer</td>  
    </tr>     
    
    <td align="center" valign="middle"><? 
    $Q = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,MResets as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY MResets DESC,cLevel DESC,Name ASC")); 
    if($Q != false) { 
        $img = trim($Q->Image); 
        if(file_exists("modules/uploads/photos/".$img) == false || empty($img) == true) $img = "nophoto.jpg"; 
        echo("<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n"); 
        echo('<img src="modules/uploads/photos/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />'); 
        echo(number_format((int)$Q->Temp, 0, null, ".")." M.Resets</a>"); 
    } else { 
        echo("Nenhum Resultado"); 
    } 
    ?></td> 
    <td align="center" valign="middle"><? 
    $Q = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,Resets as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY Resets DESC,cLevel DESC,Name ASC")); 
    if($Q != false) { 
        $img = trim($Q->Image); 
        if(file_exists("modules/uploads/photos/".$img) == false || empty($img) == true) $img = "nophoto.jpg"; 
        echo("<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n"); 
        echo('<img src="modules/uploads/photos/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />'); 
        echo(number_format((int)$Q->Temp, 0, null, ".")." Resets</a>"); 
    } else { 
        echo("Nenhum Resultado"); 
    } 
    ?></td>
    <td align="center" valign="middle"><?
    $Q = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,resetsWeek as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY resetsWeek DESC,cLevel DESC,Name ASC"));
    if($Q != false) {
        $img = trim($Q->Image);
        if(file_exists("modules/uploads/photos/".$img) == false || empty($img) == true) $img = "nophoto.jpg";
        echo("<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n");
        echo('<img src="modules/uploads/photos/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />');
        echo(number_format((int)$Q->Temp, 0, null, ".")." Resets</a>");
    } else {
        echo("Nenhum Resultado");
    }
    ?></td>
    <td align="center" valign="middle"><?
    $Q = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,resetsMonth as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY resetsMonth DESC,cLevel DESC,Name ASC"));
    if($Q != false) {
        $img = trim($Q->Image);
        if(file_exists("modules/uploads/photos/".$img) == false || empty($img) == true) $img = "nophoto.jpg";
        echo("<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n");
        echo('<img src="modules/uploads/photos/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />');
        echo(number_format((int)$Q->Temp, 0, null, ".")." Resets</a>");
    } else {
        echo("Nenhum Resultado"); 
    } 
    ?></td> 
    <td align="center" valign="middle"><? 
    $Q = @mssql_fetch_object(@mssql_query("SELECT TOP 1 Name,PkCount as Temp,Image FROM MuOnline.dbo.Character WHERE CtlCode<2 ORDER BY PkCount DESC,cLevel DESC,Name ASC")); 
    if($Q != false) { 
        $img = trim($Q->Image); 
        if(file_exists("modules/uploads/photos/".$img) == false || empty($img) == true) $img = "nophoto.jpg"; 
        echo("<a href=\"?page=rankings&char=".urlencode($Q->Name)."\">".$Q->Name." <br />\n"); 
        echo('<img src="modules/uploads/photos/'.$img.'" alt="" width="100" height="100" style="border: 2px solid #000000;" /><br />'); 
        echo(number_format((int)$Q->Temp, 0, null, ".")." Mortes</a>"); 
    } else { 
        echo("Nenhum Resultado"); 
    } 
    ?></td>
    </tr>
    </table> 
    </div> 
    </div> 
    <br />

 

 
Página 1 de 2 12 ÚltimoÚltimo

Informações de Tópico

Usuários Navegando neste Tópico

Há 1 usuários navegando neste tópico. (0 registrados e 1 visitantes)

Tópicos Similares

  1. |Download| Modulo de Rankings para MuSite
    Por OgocX no fórum Sites
    Respostas: 24
    Último Post: 16-09-2016, 03:41 PM
  2. |Dúvida| Problema nos rankings do MuSite Daldegam
    Por RuanMarques19 no fórum Dúvidas
    Respostas: 8
    Último Post: 10-06-2015, 03:07 PM
  3. |Pedido| Rankings Effect web
    Por bilos no fórum Pedidos
    Respostas: 2
    Último Post: 11-05-2014, 02:41 PM
  4. |Dúvida| Rankings no MuSite 1.7x
    Por pavil no fórum Dúvidas|Pedidos
    Respostas: 6
    Último Post: 12-07-2012, 11:38 AM
  5. |Resolvido| Job para Rankings.
    Por fabiobf no fórum Tópicos Resolvidos
    Respostas: 1
    Último Post: 01-12-2011, 10:27 PM

Marcadores

Permissões de Postagem

  • Você não pode iniciar novos tópicos
  • Você não pode enviar respostas
  • Você não pode enviar anexos
  • Você não pode editar suas mensagens
  •