Ir para conteúdo

[Gesior] Ver Jogadores Vips


walefxavier

Posts Recomendados

Vá em C:\xampp\htdocs e cria um arquivo php chamado : viplist.php,dentro add isso :

 

<?PHP
$zapytanie = $SQL->query('SELECT `player_storage`.`player_id`, `player_storage`.`key`, `player_storage`.`value`, `players`.`id`, `players`.`name`, `players`.`level`, `players`.`online` FROM `player_storage`, `players` WHERE `key` = 13540 AND `player_storage`.`player_id` = `players`.`id` ORDER BY `players`.`level` DESC;')->fetchall();
foreach($zapytanie as $zap) {
$kolor++;
           if(is_int($kolor / 2))
               $bgcolor = $config['site']['lightborder'];
           else
               $bgcolor = $config['site']['darkborder'];

                   if($zap['online'] == 0)
                       $player_list_status = '<font color="red"><b>Offline</b></font>';
                   else
                       $player_list_status = '<font color="green"><b>Online</b></font>';

$tresc .= '<TR BGCOLOR='.$bgcolor.'><TD><center><a href="?subtopic=characters&name='.urlencode($zap['name']).'">'.$zap['name'].'</a></TD><TD><center>'.$zap['level'].'</TD><TD><center>'.$player_list_status.'</center></TD></TR>';

}
$main_content .= '<center><hr/><b>Jogadores Vip Do '.$config['server']['serverName'].'.</b><hr/><br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=white WIDTH=32%><b><center>Name</center></b></TD><TD class="white" WIDTH=32%><b><center>Level</center></b></TD><TD class="white" WIDTH=32%><b><center>Status</center></b></TD></TR>'.$tresc.'</TABLE>';

$main_content .= '<div align="right"><small><b></small></div><br />';

?> 

 

 

Agora vá em C:\xampp\htdocs/index.php e depois de :

 

        case "latestnews":
               $topic = "Novidades";
               $subtopic = "latestnews";
               include("latestnews.php");
       break;

 

 

ADICIONE ISSO :

 

	case "viplist";
	$subtopic = "viplist";
	$topic = "Jogadores Vip";
	include("viplist.php");
break;

 

 

 

 

Agora vá em C:\xampp\htdocs\layouts\tibiacom/layout.php e add o seguinte:

 

 

<a href='?subtopic=viplist'>
 <div id='submenu_viplist' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
   <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
   <div id='ActiveSubmenuItemIcon_experiencetable' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
   <div class='SubmenuitemLabel'><blink><font color=grey>Jogadores VIP</font></blink></div>
   <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
 </div>
</a>

 

 

Simples !

Link para o comentário
Compartilhar em outros sites

Muito Bom! A maioria dos servidores deveriam adicionar isto, irei falar para o Bekman adicionar no Gesior que ele editou.

Rep+

Abraços.

Editado por FezZinN
Link para o comentário
Compartilhar em outros sites

  • 1 month later...
  • 1 month later...
  • 2 weeks later...
  • 2 weeks later...
×
×
  • Criar Novo...