[MOD] Google Visit Counter / Google Ziyaretleri Sayacı

EftelyA

Yaşayan Forum Efsanesi
22 Kas 2007
9,097
59
EsEs
Açıklama : index ' te google'dan sitenize yönlenen kullancıları sayaç şeklinde gösterir..




############################################################################
## MOD Ttile : Google Visit Counter
## MOD Author : Dr DLP https://tik.lat/cCH4A
## MOD Description : Adds a google bot visit counter on index
## MOD Version : 1.0.0.
##
## Scripts :
## Google Track : Mojy ( < [email protected] > (J.M.)
## https://tik.lat/MJ8xW ) / Editeur Javascrpit
## Visit Counter : Smartor ( < [email protected] > (Hoang Ngoc Tu) https://tik.lat/qP4GL
##
## Installation level : Easy
## Iinstallation time : 5 Minutes
##
## Files to edit : 3
## -language/lang_french/lang_main.php
## -includes/page_header.php
## -templates/subSilver/index_body.tpl
##
## Files to include : n/a
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################

#
#------[ SQL ]-------
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('google_visit_counter', '1');


#
#-----[ OPEN ]----------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]-----------------------------------
#
//
// That's all, Folks!


#
#-----[ BEFORE , ADD ]-----------------------------
#

$lang['Google_Visit_counter'] = 'Google has come <b>%d</b> times on this board since september 2003';

#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#
//
// Parse and show the overall header.
//
$template->set_filenames(array(
'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
);

#
#-----[ BEFORE , ADD ]-------------------------------------
#
//
// 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++;
}
// ------------------------------------
//


#
#-----[ FIND ]-------------------------------------------
#
'NAV_LINKS' => $nav_links_html)

#
#-----[ BEFORE , ADD ]------------------------------------
#
// Google Counter MOD
'GOOGLE_VISIT_COUNTER' => sprintf($lang['Google_Visit_counter'], $google_visit_counter),

#
#-----[ OPEN ]---------------------------------
#
templates/subSilver/index_body.tpl


#
#-----[ FIND ]---------------------------------
#
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}

#
#-----[ IN-LINE , AFTER , ADD ]-------------------
#
<br />{GOOGLE_VISIT_COUNTER}

#
#-----[ SAVE/CLOSE ALL FILES ]-----------
#
# EoM
 
Üst

Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.