Forum de test

Bienvenue, vous n'êtes pas connecté. ( Se connecter - S'enregistrer )

Forum de test > Forum de test > Groupe de sujets de test > Modifications pour le MOD statistiques

RSS >  Modifications pour le MOD statistiques
Admin #1 22/04/2010 - 03h01

Groupe : Administrateur
Messages : 15
Enregistré le : 13/02/2009

Hors ligne

Nouveaux fichiers :
- include/lib/lib.stats.php
- include/parts/part.stats.php
- lang/fr/stats.lang
- templates/Official/part_stats.php

Fichiers à éditer :
- index.php
- include/lib/lib.cb.php
- admin/admin.config.php
- admin/templates/


Ouvrir index.php

Chercher
    'rules'    => 'rules',

Après, ajouter
    'stats'    => 'stats', //Page des statistiques


Ouvrir include/lib/lib.cb.php

Chercher
define('CB_CACHE_CLASSES',    CB_PATH . 'data/classes.cache.php');    // Fichier de cache pour les groupes d'utilisateurs

Après, ajouter
define('CB_CACHE_STATS',    CB_PATH . 'data/stats.cache.php');      // Fichier de cache pour la page des stats


Ouvrir admin/admin.config.php

Chercher

$GLOBALS['cb_tpl']->assign('g_subtitle','pa_settings');

$GLOBALS['cb_tpl']->assign('g_part','admin_config.php');
?>


Avant, ajouter
//BEGIN Advanced stats MOD
$GLOBALS['cb_tpl']->assign('pa_c_statsauth_admin_checked',(($GLOBALS['cb_cfg']->config['stats_auth']=='admin')?'checked="checked" ':''));
$GLOBALS['cb_tpl']->assign('pa_c_statsauth_mod_checked',(($GLOBALS['cb_cfg']->config['stats_auth']=='mod')?'checked="checked" ':''));
$GLOBALS['cb_tpl']->assign('pa_c_statsauth_reg_checked',(($GLOBALS['cb_cfg']->config['stats_auth']=='registered')?'checked="checked" ':''));
$GLOBALS['cb_tpl']->assign('pa_c_statsauth_all_checked',(($GLOBALS['cb_cfg']->config['stats_auth']=='all')?'checked="checked" ':''));
//END Advanced stats MOD



Ouvrir admin/templates/admin_config.php

Chercher
            <tr>
               <td class="cfg_name">
                   <?php echo lang('pa_postguest'); ?>
               </td>
               <td class="cfg_explane">
                   <?php echo lang('pa_postguest_info'); ?>
               </td>
               <td class="cfg_param">
                   <?php echo lang('yes'); ?> <input type="radio" name="postguest" value="yes" <?php echo $pa_c_postguest_yes_checked; ?> /> <?php echo lang('no'); ?> <input type="radio" name="postguest" value="no" <?php echo $pa_c_postguest_no_checked; ?> />
               </td>
           </tr>


Après, ajouter
            <!-- BEGIN Advanced stats MOD -->
            <tr>
                <td class="cfg_name">
                    <?php echo lang('pa_statsauth'); ?>
                </td>
                <td class="cfg_explane">
                    <?php echo lang('pa_statsauth_info'); ?>
                </td>
                <td class="cfg_param">
                    <?php echo lang('pa_stats_all'); ?> <input type="radio" name="stats_auth" value="all" <?php echo $pa_c_statsauth_all_checked; ?> /> <?php echo lang('pa_stats_reg'); ?> <input type="radio" name="stats_auth" value="registered" <?php echo $pa_c_statsauth_reg_checked; ?> /> <?php echo lang('pa_stats_mod'); ?> <input type="radio" name="stats_auth" value="mod" <?php echo $pa_c_statsauth_mod_checked; ?> /> <?php echo lang('pa_stats_admin'); ?> <input type="radio" name="stats_auth" value="admin" <?php echo $pa_c_statsauth_admin_checked; ?> />
                </td>
            </td>
            <!-- END Advanced stats MOD -->


Sauvegarder et fermer tous les fichiers

 >  Réponse rapide

Composez votre message

Forum de test > Forum de test > Groupe de sujets de test > Modifications pour le MOD statistiques

 >  Informations du forum

1 personne(s) présente(s) durant une période de 10 minutes (0 membre(s) et 1 invité(s)).