April 27, 201214 yr comment_96572 Bonsoir, Un ami au boulot ma parler de votre communauté et de votre forum et m'a dit que vous pourriez surement m'aidez, donc me voici. J'aurais voulu savoir sous ip board, comment créer un bloc sur le coté (de l'index du forum) avec les informations du débug stats (nombres de requêtes, charge du serveur, temps d'exécution et GZIP activé ou non) ps : en m'inscrivant sur le forum j'ai vu que y'avait un petit bug sur une traduction et que les termes d'inscriptions sont en anglais ^^ Voilà je vous souhaite une bonne soirée en espérant une réponse de votre part. Report
April 27, 201214 yr comment_96575 cela ce passe dans le panel admin dans Paramètres système > System Settings > System > General Configuration il te suffit de mettre au level 1 Report
April 27, 201214 yr Author comment_96606 Merci, mais j'aimerais le mettre dans un block sur l'index du forum (la où il y'a les sujets récents etc) et je ne trouves pas comment je peux faire. Report
April 28, 201214 yr comment_96737 Oui, t'edit le skin voila le code qui te concerne: <if test="showdebuglevel:|:$this->memberData['member_id'] and $this->settings['debug_level']"> <div id='ipsDebug_footer'> <strong>{$this->lang->words['time_now']}</strong> {$footer_items['time']} <if test="lastvisit:|:$this->memberData['member_id'] AND $this->memberData['last_visit']"><strong>{$this->lang->words['you_last_visit']}</strong> {parse date="$this->memberData['last_visit']" format="short"}</if> <strong>{$this->lang->words['stat_exec']}</strong> {$stats['ex_time']} <if test="isfloat:|:is_float($stats['ex_time'])">{$this->lang->words['stats_sec']}</if> <strong>{$this->lang->words['stat_load']}</strong> {$stats['server_load']} <strong>{$this->lang->words['stat_queries']}</strong> {$stats['queries']} <if test="sqldebuglink:|:IPS_SQL_DEBUG_MODE"><a href='{parse url="{$this->settings['query_string_safe']}&debug=1" base="public"}'></if>{$this->lang->words['stats_queries']}<if test="closesqldebuglink:|:IPS_SQL_DEBUG_MODE"></a></if> <strong>{$this->lang->words['stat_gzip']}</strong> {$stats['gzip_status']} </div> </if> T'en fait ce que tu veux après Report
April 28, 201214 yr Author comment_96761 Bonjour et merci de ta réponse, J'ai fait quelques test mais c'est pas très concluant.. <!-- SIDEBAR BLOCK MANUAL BEGIN --> <div class='ipsSideBlock clearfix'> <h3>Informations</h3> <if test="showdebuglevel:|:$this->memberData['member_id'] and $this->settings['debug_level']"> <div id='_sbcollapsable'> <strong>{$this->lang->words['stat_exec']}</strong> {$stats['ex_time']} <if test="isfloat:|:is_float($stats['ex_time'])">{$this->lang->words['stats_sec']}</if><br /> <strong>{$this->lang->words['stat_queries']}</strong> {$stats['queries']} <if test="sqldebuglink:|:IPS_SQL_DEBUG_MODE"><a href='{parse url="{$this->settings['query_string_safe']}&debug=1" base="public"}'></if>{$this->lang->words['stats_queries']}<if test="closesqldebuglink:|:IPS_SQL_DEBUG_MODE"></a></if><br /> <strong>{$this->lang->words['stat_gzip']}</strong> {$stats['gzip_status']} </div> </if> </div> <!-- SIDEBAR BLOCK MANUAL END --> Et j'obtiens sa :http://img11.hostingpics.net/pics/161353701.png Je comprends pas, j'ai repris ton code, modifier pour la mise en page, j'ai mon débug level à 1...Tu peux me dire ce qui va pas dans le code ? Car là je suis perdu.. Report
April 29, 201214 yr comment_96923 Apparement il ne reconnait pas les valeurs que tu lui demande, comme: {$stats['ex_time']} Cherches de ce côté Report
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.