Ce code permet d afficher le nombre de fois que Google est passe sur votre forum PHPBB
Perso je l ai teste avec la version 2.0.11 Patche et ca fonctionne
CITATION
MOD Titre : Google Visit Counter
MOD Auteur : Dr DLP
MOD Description : Ajoute un compteur de bots Google sur l'index
MOD Version : 1.0.0.
Scripts :
Google Track : Mojy (J.M.) / Editeur Javascrpit
Visit Counter : Smartor
Niveau d'installation : Facile
Temps d'installation : 5 Minutes
Fichiers à éditer : 3
-language/lang_french/lang_main.php
-includes/page_header.php
-templates/subSilver/index_body.tpl
-Fichiers à inclure : n/a
#
#------[ SQL ]-------
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('google_visit_counter', '1');
#
#-----[ OUVRIR ]----------------------------------------
#
language/lang_french/lang_main.php
#
#-----[ RECHERCHER ]-----------------------------------
#
//
// That's all, Folks!
#
#-----[ AVANT AJOUTER ]-----------------------------
#
$lang['Google_Visit_counter'] = 'Google est venu <b>%d</b> fois vous visiter.';
#
#-----[ OUVRIR ]------------------------------------------
#
includes/page_header.php
#
#-----[ RECHERCHER ]------------------------------------------
#
//
// Parse and show the overall header.
//
$template->set_filenames(array(
'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
);
#
#-----[ AVANT AJOUTER ]-------------------------------------
#
//
// Dr DLP's Google Visit Counter MOD
//
$google_visit_counter = $board_config['google_visit_counter'];
$tmp_list = explode(".", $REMOTE_ADDR);
if (($tmp_list[0] == "64" && $tmp_list[1] == "68" && $tmp_list[2] == "82") || ($tmp_list[0] == "216" && $tmp_list[1] == "239" && $tmp_list[2] == "46"))
{
$sql = "UPDATE " . CONFIG_TABLE . "
SET config_value = '" . ($google_visit_counter + 1) . "'
WHERE config_name = 'google_visit_counter'";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update google counter information', '', __LINE__, __FILE__, $sql);
}
$google_visit_counter++;
}
// ------------------------------------
//
#
#-----[ RECHERCHER ]-------------------------------------------
#
'NAV_LINKS' => $nav_links_html)
#
#-----[ AVANT AJOUTER ]------------------------------------
#
// Google Counter MOD
'GOOGLE_VISIT_COUNTER' => sprintf($lang['Google_Visit_counter'], $google_visit_counter),
#
#-----[ OUVRIR ]---------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ RECHERCHER ]---------------------------------
#
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}
#
#-----[ A LA FIN DE LA LIGNE AJOUTER ]-------------------
#
<br />{GOOGLE_VISIT_COUNTER}
#
#-----[ SAVEGARDER / FERMER / UPLOAD LES FICHIERS ]-----------
#