vue
Destiny Messages : 357 | il n'y a aucun message d'erreur ??? |
samedi 13 septembre 2014
| |
izi57430 Messages : 39 | non pas de message d'erreur sur la pga est sa ne fonctione pas |
samedi 13 septembre 2014
| |
Destiny Messages : 357 | -- Quand tu implante une nouvelle fonction, elle doit être appelée par un autre programme (celui qui s'en sert Ex: affichage des ressources), donc, tu as plusieurs modification a faire pour la faire fonctionner (autrement, elle sert à rien) par exemple pour l'affichage des ressources au topnav, ouvrir ShowTopNavigationBar.php puis changer "pretty_number" devant les ressources en "shortly_number" |
samedi 13 septembre 2014 (Dernière édition samedi 13 septembre 2014)
| |
izi57430 Messages : 39 | oki je vais le faire sa tout de suit je te tien au courent merci encore |
samedi 13 septembre 2014
| |
izi57430 Messages : 39 | sa fonctionne niquel un grands merci destiny jai une autre question je veut passer la sourie sur les resource pour voir combien de resource jai |
samedi 13 septembre 2014
| |
izi57430 Messages : 39 | comment je peut faire pour voir les ressource maintenant car des que je passe la sourie sur les resource rien est afficher |
samedi 13 septembre 2014
| |
Destiny Messages : 357 | tu peut montrer le fichier ShowTopNavigationBar.php modifier |
samedi 13 septembre 2014
| |
izi57430 Messages : 39 | oui bien sur /** * Tis file is part of XNova:Legacies * * @license http://www.gnu.org/licenses/gpl-3.0.txt * @see http://www.xnova-ng.org/ * * Copyright (c) 2009-Present, XNova Support Team <http://www.xnova-ng.org> * All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * --> NOTICE <-- * This file is part of the core development branch, changing its contents will * make you unable to use the automatic updates manager. Please refer to the * documentation for further information about customizing XNova. * */ function ShowTopNavigationBar ( $CurrentUser, $CurrentPlanet ) { global $lang, $_GET; if ($CurrentUser) { if ( !$CurrentPlanet ) { $CurrentPlanet = doquery("SELECT * FROM {{table}} WHERE `id` = '". $CurrentUser['current_planet'] ."';", 'planets', true); } // Actualisation des ressources de la planete PlanetResourceUpdate ( $CurrentUser, $CurrentPlanet, time() ); $NavigationTPL = gettemplate('topnav'); $dpath = (!$CurrentUser["dpath"]) ? DEFAULT_SKINPATH : $CurrentUser["dpath"]; $parse = $lang; $parse['dpath'] = $dpath; $parse['image'] = $CurrentPlanet['image']; // Genearation de la combo des planetes du joueur $parse['planetlist'] = ''; $ThisUsersPlanets = SortUserPlanets ( $CurrentUser ); while ($CurPlanet = mysql_fetch_array($ThisUsersPlanets)) { if ($CurPlanet["destruyed"] == 0) { $parse['planetlist'] .= "\n"; } } $energy = pretty_number($CurrentPlanet["energy_max"] + $CurrentPlanet["energy_used"]) . "/" . pretty_number($CurrentPlanet["energy_max"]); // Energie if (($CurrentPlanet["energy_max"] + $CurrentPlanet["energy_used"]) < 0) { $parse['energy'] = colorRed($energy); } else { $parse['energy'] = $energy; } // Metal $metal = shortly_number($CurrentPlanet["metal"]); if (($CurrentPlanet["metal"] > $CurrentPlanet["metal_max"])) { $parse['metal'] = colorRed($metal); } else { $parse['metal'] = $metal; } // Cristal $crystal = shortly_number($CurrentPlanet["crystal"]); if (($CurrentPlanet["crystal"] > $CurrentPlanet["crystal_max"])) { $parse['crystal'] = colorRed($crystal); } else { $parse['crystal'] = $crystal; } // Deuterium $deuterium = shortly_number($CurrentPlanet["deuterium"]); if (($CurrentPlanet["deuterium"] > $CurrentPlanet["deuterium_max"])) { $parse['deuterium'] = colorRed($deuterium); } else { $parse['deuterium'] = $deuterium; } // Message if ($CurrentUser['new_message'] > 0) { $parse['message'] = "<a href=\"messages.php\">[ ". $CurrentUser['new_message'] ." ]</a>"; } else { $parse['message'] = "0"; } // Le tout passe dans la template $TopBar = parsetemplate( $NavigationTPL, $parse); } else { $TopBar = ""; } return $TopBar; } ?> |
samedi 13 septembre 2014
| |
Destiny Messages : 357 | le fichier est correct, bizarre, avant, quand tu survolait avec la souris, tu voyait les ressources ??? |
samedi 13 septembre 2014
| |
izi57430 Messages : 39 | non |
samedi 13 septembre 2014
|
Aperçu (pas encore publié) | |
Kommunauty © Tous droits réservés
Contact /
Charte & Mentions légales /
Hebergement gratuit /
Bon plan hébergement /
Aide B2i