Ir para conteúdo
  • Cadastre-se

(Resolvido)Me Ajuda Tirar Os Samples do Ranking [ URGENTE ]


Ir para solução Resolvido por Ivens Pontes,

Posts Recomendados

  • Solução
Preciso de ajuda como esconder o Sample do Gesior Acc ... Bom eu ja fiz de tudo deletei eles pela conta e eles ainda continua aparecendo no ranking...
 
 
haha2w.thumb.jpg.06b423d2a3f55ba4daad1fd54e96c42c.jpg
haha2.thumb.jpg.618f9afb99696b99e13ee91ad548c7dc.jpg
Vai na página e veja como a query do select tá, se puder posta aqui, só adicionar um where

Enviado de meu MI 5s usando Tapatalk

Captura de tela de 2016-09-04 18:53:17.png

Em Desenvolvimento 

 

Tutoriais:

[PagSeguro] Novo Método de Retorno Automático

Link para o post
Compartilhar em outros sites
2 minutos atrás, Ivens Pontes disse:

Vai na página e veja como a query do select tá, se puder posta aqui, só adicionar um where

Enviado de meu MI 5s usando Tapatalk
 

 

Certo mas onde posso ver a query e na database? do phpmyadmin?

Link para o post
Compartilhar em outros sites
Spoiler

<?PHP header("Content-Type: text/html; charset=UTF-8",true);
if(!defined('INITIALIZED'))
    exit;

$list = 'experience';
if(isset($_REQUEST['list']))
    $list = $_REQUEST['list'];

$page = 0;
if(isset($_REQUEST['page']))
    $page = min(50, $_REQUEST['page']);

$vocation = '';
if(isset($_REQUEST['vocation']))
    $vocation = $_REQUEST['vocation'];

switch($list)
{
    case "fist":
        $id=Highscores::SKILL_FIST;
        $list_name='Fist Fighting';
        break;
    case "club":
        $id=Highscores::SKILL_CLUB;
        $list_name='Club Fighting';
        break;
    case "sword":
        $id=Highscores::SKILL_SWORD;
        $list_name='Sword Fighting';
        break;
    case "axe":
        $id=Highscores::SKILL_AXE;
        $list_name='Axe Fighting';
        break;
    case "distance":
        $id=Highscores::SKILL_DISTANCE;
        $list_name='Distance Fighting';
        break;
    case "shield":
        $id=Highscores::SKILL_SHIELD;
        $list_name='Shielding';
        break;
    case "fishing":
        $id=Highscores::SKILL_FISHING;
        $list_name='Fishing';
        break;
    case "magic":
        $id=Highscores::SKILL__MAGLEVEL;
        $list_name='Magic';
        break;
    default:
        $id=Highscores::SKILL__LEVEL;
        $list_name='Experience';
        break;
}
$world_name = $config['server']['serverName'];

$offset = $page * 100;
$skills = new Highscores($id, 100, $page, $vocation);
$main_content .= '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD></TD><TD><CENTER><H2>Ranking for '.htmlspecialchars($list_name).' on '.htmlspecialchars($world_name).'</H2></CENTER><BR>';

$main_content .= '<br><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%></TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=whites><B>Rank</B></TD><TD WIDTH=75% CLASS=whites><B>Name</B></TD><TD WIDTH=15% CLASS=whites><b><center>Level</center></B></TD>';
if($list == "experience")
    $main_content .= '<TD CLASS=whites><b><center>Experience</center></B></TD>';
//$main_content .= '</TR><TR>';
$main_content .= '</TR>';
$number_of_rows = 0;
foreach($skills as $skill)
{
    if($list == "magic")
        $value = $skill->getMagLevel();
    elseif($list == "experience")
        $value = $skill->getLevel();
    else
        $value = $skill->getScore();
    $bgcolor = (($number_of_rows++ % 2 == 1) ?  $config['site']['darkborder'] : $config['site']['lightborder']);
    $main_content .= '<tr bgcolor="'.$bgcolor.'"><td style="text-align:left">'.($offset + $number_of_rows).'</td><td><a href="?subtopic=characters&name='.urlencode($skill->getName()).'">'.($skill->getOnline()>0 ? "<font color=\"#004294\">".htmlspecialchars($skill->getName())."</font>" : "<font color=\"#004294\">".htmlspecialchars($skill->getName())."</font>").'</a><br></td><td><center>'.$value.'</center></td>';
    if($list == "experience")
        $main_content .= '<td><center>'.$skill->getExperience().'</center></td>';
    $main_content .= '</tr>';
}
$main_content .= '</TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%>';
if($page > 0)
    $main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.urlencode($list).'&page='.($page - 1).'&vocation=' . urlencode($vocation) . '" CLASS="size_xxs">Previous Page</A></TD></TR>';
if($page < 50)
    $main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.urlencode($list).'&page='.($page + 1).'&vocation=' . urlencode($vocation) . '" CLASS="size_xxs">Next Page</A></TD></TR>';
$main_content .= '</TABLE></TD><TD WIDTH=5%></TD><TD WIDTH=15% VALIGN=top ALIGN=right><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=whites><B>Choose a skill</B></TD></TR><TR BGCOLOR="'.$config['site']['lightborder'].'"><TD><A HREF="?subtopic=highscores&list=experience" CLASS="size_xs">Experience</A><BR><A HREF="?subtopic=highscores&list=magic" CLASS="size_xs">Magic</A><BR><A HREF="?subtopic=highscores&list=shield" CLASS="size_xs">Shielding</A><BR><A HREF="?subtopic=highscores&list=distance" CLASS="size_xs">Distance</A><BR><A HREF="?subtopic=highscores&list=club" CLASS="size_xs">Club</A><BR><A HREF="?subtopic=highscores&list=sword" CLASS="size_xs">Sword</A><BR><A HREF="?subtopic=highscores&list=axe" CLASS="size_xs">Axe</A><BR><A HREF="?subtopic=highscores&list=fist" CLASS="size_xs">Fist</A><BR><A HREF="?subtopic=highscores&list=fishing" CLASS="size_xs">Fishing</A><BR></TD></TR></TABLE></TD><TD></TD></TR></TABLE>';

 

 

Ai esta o highscores.php

Link para o post
Compartilhar em outros sites



Spoiler <?php header("Content-Type: text/html; charset=UTF-8",true);
if(!defined('INITIALIZED'))
    exit;
$list = 'experience';
if(isset($_REQUEST['list']))
    $list = $_REQUEST['list'];
$page = 0;
if(isset($_REQUEST['page']))
    $page = min(50, $_REQUEST['page']);
$vocation = '';
if(isset($_REQUEST['vocation']))
    $vocation = $_REQUEST['vocation'];
switch($list)
{
    case "fist":
        $id=Highscores::SKILL_FIST;
        $list_name='Fist Fighting';
        break;
    case "club":
        $id=Highscores::SKILL_CLUB;
        $list_name='Club Fighting';
        break;
    case "sword":
        $id=Highscores::SKILL_SWORD;
        $list_name='Sword Fighting';
        break;
    case "axe":
        $id=Highscores::SKILL_AXE;
        $list_name='Axe Fighting';
        break;
    case "distance":
        $id=Highscores::SKILL_DISTANCE;
        $list_name='Distance Fighting';
        break;
    case "shield":
        $id=Highscores::SKILL_SHIELD;
        $list_name='Shielding';
        break;
    case "fishing":
        $id=Highscores::SKILL_FISHING;
        $list_name='Fishing';
        break;
    case "magic":
        $id=Highscores::SKILL__MAGLEVEL;
        $list_name='Magic';
        break;
    default:
        $id=Highscores::SKILL__LEVEL;
        $list_name='Experience';
        break;
}
$world_name = $config['server']['serverName'];
$offset = $page * 100;
$skills = new Highscores($id, 100, $page, $vocation);
$main_content .= '

Ranking for '.htmlspecialchars($list_name).' on '.htmlspecialchars($world_name).'


';
$main_content .= '
';
if($list == "experience")
    $main_content .= '';
//$main_content .= '';
$main_content .= '';
$number_of_rows = 0;
foreach($skills as $skill)
{
    if($list == "magic")
        $value = $skill->getMagLevel();
    elseif($list == "experience")
        $value = $skill->getLevel();
    else
        $value = $skill->getScore();
    $bgcolor = (($number_of_rows++ % 2 == 1) ?  $config['site']['darkborder'] : $config['site']['lightborder']);
    $main_content .= '';
    if($list == "experience")
        $main_content .= '';
    $main_content .= '';
}
$main_content .= '
Rank Name
Level
Experience
'.($offset + $number_of_rows).' '.($skill->getOnline()>0 ? "".htmlspecialchars($skill->getName())."" : "".htmlspecialchars($skill->getName())."").'
'.$value.'
'.$skill->getExperience().'
';
if($page > 0)
    $main_content .= '';
if($page     $main_content .= '';
$main_content .= '
Previous Page
Next Page
Choose a skill
Experience
Magic
Shielding
Distance
Club
Sword
Axe
Fist
Fishing
';
 
 
Ai esta o highscores.php


Deve tá em alguma função, sem saber qual é não dá pra mudar, veja se tem alguma classe Highscores

Enviado de meu MI 5s usando Tapatalk

Captura de tela de 2016-09-04 18:53:17.png

Em Desenvolvimento 

 

Tutoriais:

[PagSeguro] Novo Método de Retorno Automático

Link para o post
Compartilhar em outros sites
2 minutos atrás, Ivens Pontes disse:


 

 


Deve tá em alguma função, sem saber qual é não dá pra mudar, veja se tem alguma classe Highscores

Enviado de meu MI 5s usando Tapatalk
 

 

Nao tem nenhuma classe com esse nome na database

Link para o post
Compartilhar em outros sites

Teve um post que eu vi que tava pedindo para adicionar isso aqui... mas nao sei onde coloco isso

Spoiler

elseif(($name == 'Sorcerer Sample') or ($name == 'Druid Sample') or ($name == 'Knight Sample') or ($name == 'Paladin Sample') or ($name == 'Account Manager')){
$main_content .= 'Here you can get detailed information about a certain player on '.$config['server']['serverName'].'.<BR>  <FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Search Character</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>';
}

 

Achei isso aqui no meu config.php

Spoiler

# PAGE: highscores.php
$config['site']['groups_hidden'] = array(2, 3, 4, 5);
$config['site']['accounts_hidden'] = array(1);

 

Conseguir obrigado :D

Coloquei isso aqui

Spoiler

# PAGE: highscores.php
$config['site']['groups_hidden'] = array(2, 3, 4, 5, 6);
$config['site']['accounts_hidden'] = array(233);

No casso 233 seria o ID onde estaria os samples consegui

Link para o post
Compartilhar em outros sites
Teve um post que eu vi que tava pedindo para adicionar isso aqui... mas nao sei onde coloco isso
Spoiler
elseif(($name == 'Sorcerer Sample') or ($name == 'Druid Sample') or ($name == 'Knight Sample') or ($name == 'Paladin Sample') or ($name == 'Account Manager')){$main_content .= 'Here you can get detailed information about a certain player on '.$config['server']['serverName'].'.<BR>  <FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Search Character</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>';}

 
Achei isso aqui no meu config.php
Spoiler # PAGE: highscores.php
$config['site']['groups_hidden'] = array(2, 3, 4, 5);
$config['site']['accounts_hidden'] = array(1);
 
Conseguir obrigado :D
Coloquei isso aqui
Spoiler # PAGE: highscores.php
$config['site']['groups_hidden'] = array(2, 3, 4, 5, 6);
$config['site']['accounts_hidden'] = array(233);
No casso 233 seria o ID onde estaria os samples consegui

Mais fácil kkkk
Ao menos conseguiu
Fica pra quem quer o mesmo

Enviado de meu MI 5s usando Tapatalk

Captura de tela de 2016-09-04 18:53:17.png

Em Desenvolvimento 

 

Tutoriais:

[PagSeguro] Novo Método de Retorno Automático

Link para o post
Compartilhar em outros sites
5 horas atrás, ADM Finzik disse:

E obrigado por me tentar ajudar... Eu lhe dei REP+ :D

 

 

@ADM Finzik vi que você deletou o samples, não tem como criar char novo se não tiver o sample na database !

       112674.gif

 

 

 

Link para o post
Compartilhar em outros sites

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo