• Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
[RetroPHP]Règler la page Staff après avoirs modifiés les ranks
#1
Bonjour,

Vous avez un problème, vous avez changer les ID des ranks votre page staff ne ressemble plus à rien...

Pas de panique ! je vais vous apprendre à la régler ! Et si vous êtes sages vous aurez un bonus.



Imaginons, vous avez mis les Fondateurs sur le ranks d'ID 99. Cependant forcément dans votre page staff, il n'est pas mis !


Rendez vous dans votre ftp ou www ou htdocs etc... Et ouvrez :
Code :
staff.php
Une fois ceci cherchez par exemple :
Code :
Fondateurs
Vous aurez ceci :
Code :
<h2 class="title"><span style="float:left">Fondateurs</span>

Pas loin après vous pourrez voir ceci :
Code :
<?php $staff = $bdd->query("SELECT * FROM users WHERE rank = '10'"); while($s = $staff->fetch()) { ?>
Si vous avez mis l'ID 99 remplacez par :
Code :
<?php $staff = $bdd->query("SELECT * FROM users WHERE rank = '99'"); while($s = $staff->fetch()) { ?>
Voilà !

Votre page de staff est maintenant configuré !


Bon jeu !

Cordialement !


Ah non, la surprise... Bah allez, vous l'avez mériter ! Voici une page de staff que j'ai un peu modifié, que j'ai beaucoup :
Rendu :
[Image: 142936Capture.PNG]

Code à copier coller dans votre staff.php en remplaçant tout le reste :

Code :
<?php
include './init.php';
    
$pagename = "L'équipe";
$pageid = "staff";
?>
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
   <meta charset="utf-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php echo Settings('Name'); ?>: <?php echo $pagename; ?></title>

<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>

<link rel="shortcut icon" href="<?php echo Settings('Url_Images'); ?>/v2/favicon.ico?<?php echo $update; ?>" type="image/vnd.microsoft.icon" />
<link rel="stylesheet" href="<?php echo Settings('Url_Images'); ?>/static/styles/common.css?<?php echo $update; ?>" type="text/css" />
<link rel="stylesheet" href="<?php echo Settings('Url_Images'); ?>/static/styles/community.css?<?php echo $update; ?>" type="text/css" />
<script src="<?php echo Settings('Url_Images'); ?>/static/js/libs2.js?<?php echo $update; ?>" type="text/javascript"></script>
<script src="<?php echo Settings('Url_Images'); ?>/static/js/visual.js?<?php echo $update; ?>" type="text/javascript"></script>
<script src="<?php echo Settings('Url_Images'); ?>/static/js/libs.js?<?php echo $update; ?>" type="text/javascript"></script>
<script src="<?php echo Settings('Url_Images'); ?>/static/js/common.js?<?php echo $update; ?>" type="text/javascript"></script>
<script src="<?php echo Settings('Url_Images'); ?>/static/js/fullcontent.js?<?php echo $update; ?>" type="text/javascript"></script>
<link href='//fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic|Ubuntu+Medium' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="<?php echo Settings('Url_Images'); ?>/static/styles/lightweightmepage.css?<?php echo $update; ?>" type="text/css" />

<script src="<?php echo Settings('Url_Images'); ?>/static/js/lightweightmepage.js?<?php echo $update; ?>" type="text/javascript"></script>

<?php include './templates/meta.php'; ?>

<!--[if IE 8]>
<link rel="stylesheet" href="<?php echo Settings('Url_Images'); ?>static/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="<?php echo Settings('Url_Images'); ?>static/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?php echo Settings('Url_Images'); ?>static/styles/ie6.css" type="text/css" />
<script src="<?php echo Settings('Url_Images'); ?>static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>

<style type="text/css">
body { behavior: url(/js/csshover.htc); }
</style>
<![endif]-->
</head>

<body id="home" class=" ">

<?php include("./templates/header.php"); ?>

<style type="text/css">
div.diamond h2.title {
background-color: #F0C755;
}
div.brown h2.title {
background-color: #999087;
}
div.pixelskysky h2.title {
background-color: #8FA3AD;
}
</style>

<div id="container">
<div id="content" style="position:relative" class="clearfix">
<div id="column2" class="column">
<div class="habblet-container ">
<div class="cbb clearfix pixelskysky">
<h2 class="title"><span style="float:left">Fondateurs</span>
</h2>
<div class="box-content">
<?php $staff = $bdd->query("SELECT * FROM users WHERE rank = '10'"); while($s = $staff->fetch()) { ?>
<table width="107%" style="padding:5px;margin-left:-15px;background-color:#fff">
<tbody>
<tr>
<td valign="middle" width="25">
</td>
<td valign="top">
<tbody>
<tr>
<td valign="middle" width="10">
<div style="width:64px;height:70px;margin-bottom:-8px;margin-top:-22px;margin-left:-10px;float:right;background:url(<?php echo Settings('Avatarimage'); ?>avatarimage?figure=<?php echo $s['look'] ?>&amp;action=null&amp;direction=2&amp;head_direction=3&amp;gesture=sml&amp;size=big&amp;img_format=gif)"></div>
</td>
<td valign="top">
<b style="font-size:110%"><a href="<?php echo Settings('Url'); ?>/home/<?php echo $s['username']; ?>"><?php echo $s['username'] ; ?></a></b><br/>
Mission: <i style="color:#888"><?php if(!empty($s['motto'])) { echo htmlspecialchars(utf8_encode(stripslashes($s['motto']))); } ?></i><br/>
<i style="color:#888">Dernière connexion: <?php echo date_fr("d M. Y", $s['last_offline']); ?></i><br/>
<?php if ($s['online'] == 0) { ?>
<img alt="offline" src="<?php echo Settings('Url'); ?>/images/offline.gif" />
<?php } elseif ($s['online'] == 1) { ?>
<img alt="offline" src="<?php echo Settings('Url'); ?>/images/online.gif" />
<?php } ?>
<br/></td>
</tr>
</tbody>
</table>
</td>
<div>
</div>
</tr>
</tbody>
</table>
<?php } ?>
</div>
</div>
</div>
<script type="text/javascript">if(!$(document.body).hasClassName('process-template')){Rounder.init();}</script>

</div>
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix red ">
</center><h2 class="title"><span style="float:left">Hotel Managers</span>
</h2>
<div class="box-content">
<?php $staff = $bdd->query("SELECT * FROM users WHERE rank = '9'"); while($s = $staff->fetch()) { ?>
<table width="107%" style="padding:5px;margin-left:-15px;background-color:#fff">
<tbody>
<tr>
<td valign="middle" width="25">
</td>
<td valign="top">
<tbody>
<tr>
<td valign="middle" width="10">
<div style="width:64px;height:70px;margin-bottom:-8px;margin-top:-22px;margin-left:-10px;float:right;background:url(<?php echo Settings('Avatarimage'); ?>avatarimage?figure=<?php echo $s['look'] ?>&amp;action=null&amp;direction=2&amp;head_direction=3&amp;gesture=sml&amp;size=big&amp;img_format=gif)"></div>
</td>
<td valign="top">
<b style="font-size:110%"><a href="<?php echo Settings('Url'); ?>/home/<?php echo $s['username']; ?>"><?php echo $s['username'] ; ?></a></b><br/>
Mission: <i style="color:#888"><?php if(!empty($s['motto'])) { echo htmlspecialchars(utf8_encode(stripslashes($s['motto']))); } ?></i><br/>
<i style="color:#888">Dernière connexion: <?php echo date_fr("d M. Y", $s['last_offline']); ?></i><br/>
<?php if ($s['online'] == 0) { ?>
<img alt="offline" src="<?php echo Settings('Url'); ?>/images/offline.gif" />
<?php } elseif ($s['online'] == 1) { ?>
<img alt="offline" src="<?php echo Settings('Url'); ?>/images/online.gif" />
<?php } ?>
<br/></td>
</tr>
</tbody>
</table>
</td>
<div>
</div>
</tr>
</tbody>
</table>
<?php } ?>
</td>
<div>
</div>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script type="text/javascript">if(!$(document.body).hasClassName('process-template')){Rounder.init();}</script>
<script type="text/javascript">if(!$(document.body).hasClassName('process-template')){Rounder.init();}</script>
</div>
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix brown ">
<h2 class="title"><span style="float:left">Game Managers</span> </h2>
<div class="box-content">
<?php $staff = $bdd->query("SELECT * FROM users WHERE rank = '8'"); while($s = $staff->fetch()) { ?>
<table width="107%" style="padding:5px;margin-left:-15px;background-color:#fff">
<tbody>
<tr>
<td valign="middle" width="25">
</td>
<td valign="top">
<tbody>
<tr>
<td valign="middle" width="10">
<div style="width:64px;height:70px;margin-bottom:-8px;margin-top:-22px;margin-left:-10px;float:right;background:url(<?php echo Settings('Avatarimage'); ?>avatarimage?figure=<?php echo $s['look'] ?>&amp;action=null&amp;direction=2&amp;head_direction=3&amp;gesture=sml&amp;size=big&amp;img_format=gif)"></div>
</td>
<td valign="top">
<b style="font-size:110%"><a href="<?php echo Settings('Url'); ?>/home/<?php echo $s['username']; ?>"><?php echo $s['username'] ; ?></a></b><br/>
Mission: <i style="color:#888"><?php if(!empty($s['motto'])) { echo htmlspecialchars(utf8_encode(stripslashes($s['motto']))); } ?></i><br/>
<i style="color:#888">Dernière connexion: <?php echo date_fr("d M. Y", $s['last_offline']); ?></i><br/>
<?php if ($s['online'] == 0) { ?>
<img alt="offline" src="<?php echo Settings('Url'); ?>/images/offline.gif" />
<?php } elseif ($s['online'] == 1) { ?>
<img alt="offline" src="<?php echo Settings('Url'); ?>/images/online.gif" />
<?php } ?>
<br/></td>
</tr>
</tbody>
</table>
</td>
<div>
</div>
</tr>
</tbody>
</table>
<?php } ?>
</td>
<div>
</div>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script type="text/javascript">if(!$(document.body).hasClassName('process-template')){Rounder.init();}</script>
<div class="habblet-container ">
<div class="cbb clearfix yellow ">
</center><h2 class="title"><span style="float:left">Modérateurs</span>
</h2>
<div class="box-content">
<?php $staff = $bdd->query("SELECT * FROM users WHERE rank = '7'"); while($s = $staff->fetch()) { ?>
<table width="107%" style="padding:5px;margin-left:-15px;background-color:#fff">
<tbody>
<tr>
<td valign="middle" width="25">
</td>
<td valign="top">
<tbody>
<tr>
<td valign="middle" width="10">
<div style="width:64px;height:70px;margin-bottom:-8px;margin-top:-22px;margin-left:-10px;float:right;background:url(<?php echo Settings('Avatarimage'); ?>avatarimage?figure=<?php echo $s['look'] ?>&amp;action=null&amp;direction=2&amp;head_direction=3&amp;gesture=sml&amp;size=big&amp;img_format=gif)"></div>
</td>
<td valign="top">
<b style="font-size:110%"><a href="<?php echo Settings('Url'); ?>/home/<?php echo $s['username']; ?>"><?php echo $s['username'] ; ?></a></b><br/>
Mission: <i style="color:#888"><?php if(!empty($s['motto'])) { echo htmlspecialchars(utf8_encode(stripslashes($s['motto']))); } ?></i><br/>
<i style="color:#888">Dernière connexion: <?php echo date_fr("d M. Y", $s['last_offline']); ?></i><br/>
<?php if ($s['online'] == 0) { ?>
<img alt="offline" src="<?php echo Settings('Url'); ?>/images/offline.gif" />
<?php } elseif ($s['online'] == 1) { ?>
<img alt="offline" src="<?php echo Settings('Url'); ?>/images/online.gif" />
<?php } ?>
<br/></td>
</tr>
</tbody>
</table>
</td>
<div>
</div>
</tr>
</tbody>
</table>
<?php } ?>
</td>
<div>
</div>
</tr>
</tbody>
</table>
</div>
</div>
</div>


<script type="text/javascript">    document.observe("dom:loaded", function() { PromoSlideShow.init(); });</script>


<script type="text/javascript">
   HabboView.add(function () {
       if ($("overlay")) {
           $(document.body).appendChild($("safety-question-dialog"));
           Utils.showDialogOnOverlay($("safety-question-dialog"));
       } else {
           $("safety-question-dialog").setStyle({position:'relative', display:'block', margin:'0 auto 2em auto'});
       }
   });
</script>

                         
                <div class="habblet-container ">        
    
                        <div class="ad-container">

</div>

                        
                    
                </div>
                <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
            
</div>
<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]-->
</div>

<!-- FOOTER -->
<?php include './templates/footer.php'; ?>
<!-- FIN FOOTER -->

</body>
</html>


Cordialement.
[Image: 313435TakumaB.png]
Modérateur à la retraite.
Webdesign/Python en pv.
  Répondre
#2
Bonjour,


Petit changement au niveau de la page staff offerte :
  • Changement de la page des staffs pour rendre plus facile à charger la page. 
  • Correction d'une box pour un meilleur rendue.

Cordialement.
[Image: 313435TakumaB.png]
Modérateur à la retraite.
Webdesign/Python en pv.
  Répondre




Utilisateur(s) parcourant ce sujet : 1 visiteur(s)