vue Joueur fort faible dans le classement
Kommunauty
Connexion
Inscription

Joueur fort faible dans le classement


mexo Messages : 96

Je voudrais savoir commenta afficher les joueurs forts (w) ou joueurs faibles dans le classement a coter de leur pseudo.

Merci

jeudi 20 mars 2014

Tomas117 Messages : 433

up ?

jeudi 20 mars 2014

Homer Messages : 1925

comme dans la vue gaxalie, y'a une fonction qui gère ça

reperer comment ça marche dans la vue galaxie et je vous aide à le mettre dans le classement

samedi 22 mars 2014

Tomas117 Messages : 433

Dans class.galaxyRows, je l'avais déja trouvé :

public function GalaxyRowUser($GalaxyRowPlanet)

{

global $CONF, $USER, $LNG, $db;

$protection = $CONF['noobprotection'];

$protectiontime = $CONF['noobprotectiontime'];

$protectionmulti = $CONF['noobprotectionmulti'];

$CurrentPoints = $USER['total_points'];

$RowUserPoints = $GalaxyRowPlanet['total_points'];

$IsNoobProtec = CheckNoobProtec($USER, $GalaxyRowPlanet, $GalaxyRowPlanet);

if ($GalaxyRowPlanet['banaday'] > TIMESTAMP && $GalaxyRowPlanet['urlaubs_modus'] == 1)

{

$Systemtatus2 = $LNG['gl_v']." <a href=\"game.php?page=banned\"><span class=\"banned\">".$LNG['gl_b']."</span></a>";

$Systemtatus = "<span class=\"vacation\">";

}

elseif ($GalaxyRowPlanet['banaday'] > TIMESTAMP)

{

$Systemtatus2 = "<span class=\"banned\">".$LNG['gl_b']."</span>";

$Systemtatus = "";

}

elseif ($GalaxyRowPlanet['urlaubs_modus'] == 1)

{

$Systemtatus2 = "<span class=\"vacation\">".$LNG['gl_v']."</span>";

$Systemtatus = "<span class=\"vacation\">";

}

elseif ($GalaxyRowPlanet['onlinetime'] < (TIMESTAMP-60 * 60 * 24 * 7) && $GalaxyRowPlanet['onlinetime'] > (TIMESTAMP-60 * 60 * 24 * 28))

{

$Systemtatus2 = "<span class=\"inactive\">".$LNG['gl_i']."</span>";

$Systemtatus = "<span class=\"inactive\">";

}

elseif ($GalaxyRowPlanet['onlinetime'] < (TIMESTAMP-60 * 60 * 24 * 28))

{

$Systemtatus2 = "<span class=\"inactive\">".$LNG['gl_i']."</span><span class=\"longinactive\">".$LNG['gl_I']."</span>";

$Systemtatus = "<span class=\"longinactive\">";

}

elseif ($IsNoobProtec['NoobPlayer'])

{

$Systemtatus2 = "<span class=\"noob\">".$LNG['gl_w']."</span>";

$Systemtatus = "<span class=\"noob\">";

}

elseif ($IsNoobProtec['StrongPlayer'])

{

$Systemtatus2 = $LNG['gl_s'];

$Systemtatus = "<span class=\"strong\">";

}

else

{

$Systemtatus2 = "";

$Systemtatus = "";

}

if (!empty($Systemtatus2))

{

$Systemtatus2 = "<span style=\"color:white\">(</span>".$Systemtatus2."<span style=\"color:white\"></span>";

}

$Result = array(

'id' => $GalaxyRowPlanet['userid'],

'username' => htmlspecialchars($GalaxyRowPlanet['username'],ENT_QUOTES,"UTF-8"),

'rank' => $GalaxyRowPlanet['total_rank'],

'points' => pretty_number($GalaxyRowPlanet['total_points']),

'playerrank' => sprintf($LNG['gl_in_the_rank'], htmlspecialchars($GalaxyRowPlanet['username'],ENT_QUOTES,"UTF-8"), $GalaxyRowPlanet['total_rank']),

'Systemtatus' => $Systemtatus,

'Systemtatus2' => $Systemtatus2,

'isown' => ($GalaxyRowPlanet['userid'] != $USER['id']) ? true : false,

);

return $Result;

}

Mais je n'arrive pas a le mettre dans le classement.

samedi 22 mars 2014

Homer Messages : 1925
$IsNoobProtec = CheckNoobProtec($USER, $GalaxyRowPlanet, $GalaxyRowPlanet);

Faut executer cette fonction pour savoir si faible ou fort, mais pour ça faut inclure la classe dans la page classement (include('....')

dimanche 23 mars 2014

mexo Messages : 96

include('GalaxyRows');

?

dimanche 23 mars 2014

Homer Messages : 1925

oui

dimanche 23 mars 2014

mexo Messages : 96

$IsNoobProtec = CheckNoobProtec($USER, $GalaxyRowPlanet, $GalaxyRowPlanet);

Je met sa par la suite? ou je modifie le code?

dimanche 23 mars 2014

Homer Messages : 1925

heu, je sais pas vraiment, faut essayé, j'ai pas fais donc je suppose que ça vient de là

Essai et vois ce que ça donne

lundi 24 mars 2014

Tomas117 Messages : 433

include('GalaxyRows');

$IsNoobProtec = CheckNoobProtec($USER, $GalaxyRowPlanet, $GalaxyRowPlanet);

je ne vois pas ou mettre cela dans showStatisticsPage.php

lundi 24 mars 2014

Page suivante »