News:

Wondering if this will always be free?  See why free is better.

Main Menu

Googlebot & Spiders 2.0.3 Tr

Started by KraL, December 07, 2006, 03:21:52 AM

Previous topic - Next topic

ghg

index.php DE şu kodları bul;
// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();

sonrasına şu kodları ekle;
//Get rid of ?PHPSESSID in the case is a Googlebot any other Spider. Even if is a user (maybe User-Agent extension), will be redirected. Easier this way.
if ($modSettings['ob_googlebot_redirect_phpsessid'] && ob_googlebot_getAgent($_SERVER['HTTP_USER_AGENT'], $spider_name, $agent))
{
$actualurl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$correcturl = preg_replace('/([?&]PHPSESSID=[^&]*)/', '', $actualurl);
$correcturl = str_replace('index.php&', 'index.php?', $correcturl);

if ($correcturl != $actualurl) {
header("HTTP/1.1 301 Moved Permanently");
header("Location: " . $correcturl);
exit();
}
}


SSI.php de şu kodları bul:
// Load the users online right now.
$result = db_query("

öncesine bunları ekle;
global $modSettings;

şu kodu bul;
lo.ID_MEMBER, lo.logTime,
sonrasına bunu ekle;
lo.url,

şu kodu bul;
while ($row = mysql_fetch_assoc($result))
{
if (!isset($row['realName'

öncesine ekle;
$return['spiders'] = array();
$return['num_spiders'] = 0;


şu kodları bulun;
$return['guests']++;

şununla değiştirin;
{
// Get the request parameters..
$actions = @unserialize($row['url']);

// Is a spider?
$is_spider = ob_googlebot_getAgent($actions['USER_AGENT'], $spider_name, $agent, $row['ID_MEMBER'] == 0);

if (!$is_spider)
$return['guests']++;
else
{
$return['num_spiders']++;

if ($modSettings['ob_googlebot_display_agent'])
$spider_name = $agent;

if ($modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
$return['spiders'][] = $spider_name;
else
$return['spiders'][$agent] = $spider_name;
}


şu kodları bulun;
$return['num_users'] = count($return['users']) + $return['hidden'];
$return['total_users'] = $return['num_users'] + $return['guests'];

öncesine ekle;
// Sort spiders list
ksort($return['spiders']);

// Allowed user to see spiders online?
if (!allowedTo('googlebot_view'))
{
$return['spiders'] = array();
$return['guests'] += $return['num_spiders'];
}

// Don't count all instances of a spider, only 1 for each different spider
if (!empty($return['spiders']) && !$modSettings['ob_googlebot_count_all_instances'])
$return['num_spiders'] = count($return['spiders']);

// Diplay how many instances of each spider
if (!empty($return['spiders']) && $modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
{
$spider_grouped = array_count_values($return['spiders']);

$return['spiders'] = array();
foreach ($spider_grouped as $k => $v)
$return['spiders'][$k] = $k . ($v == 1 ? '' : ' (' . $v . ')');
}


şu kodu bul;
$return['total_users'] = $return['num_users'] + $return['guests'
sonrasına ekle;
+ ($modSettings['ob_googlebot_count_most_online'] ? $return['num_spiders'] : 0 )

şu kodu bul;
$return['guests'], ' ', $return['guests'] == 1
öncesine bu kodları ekle;
(empty($return['spiders']) ? '' : $return['num_spiders'] . ' ' . ($return['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '),

bu kodu bul;
foreach ($return['users'] as $user)
echo $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'], $user['is_last'] ? '' : ', ';

sonrasına ekle;
if (!empty($return['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />';
else
{
if (!empty($return['users']))
echo ', ';
}

echo implode(', ', $return['spiders']);


BoardIndex.php de bu kodları bul;
// Load the users online right now.
$result = db_query("
SELECT
lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,


bununla değiştir.;
// Load the users online right now.
$result = db_query("
SELECT
lo.ID_MEMBER, lo.logTime, lo.url, mem.realName, mem.memberName, mem.showOnline,


şu kodu gör;
$context['num_users_hidden'] = 0;
sonrasına bu kodu ekle;
$context['spiders'] = array();
$context['num_spiders'] = 0;


bu kodu bul;
$context['num_guests']++;
continue;

şununla değiştir;
// Get the request parameters..
$actions = @unserialize($row['url']);

// Is a spider?
$is_spider = ob_googlebot_getAgent($actions['USER_AGENT'], $spider_name, $agent);

if (!$is_spider)
$context['num_guests']++;
else
{
$context['num_spiders']++;

if ($modSettings['ob_googlebot_display_agent'])
$spider_name = $agent;

if ($modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
$context['spiders'][] = $spider_name;
else
$context['spiders'][$agent] = $spider_name;
}

continue;

şu kodu bul;

$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];


şunlarla değiştir;
ksort($context['spiders']);

$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

// Allowed user to see spiders online?
if (!allowedTo('googlebot_view'))
$context['spiders'] = array();

// Don't count all instances of a spider, only 1 for each different spider
if (!empty($context['spiders']) && !$modSettings['ob_googlebot_count_all_instances'])
$context['num_spiders'] = count($context['spiders']);

// Diplay how many instances of each spider
if (!empty($context['spiders']) && $modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
{
$spider_grouped = array_count_values($context['spiders']);

$context['spiders'] = array();
foreach ($spider_grouped as $k => $v)
$context['spiders'][$k] = $k . ($v == 1 ? '' : ' (' . $v . ')');


şu kodu bul;
$total_users = $context['num_guests'] +
sonrasına ekle;
($modSettings['ob_googlebot_count_most_online'] ? $context['num_spiders'] : 0) +

bu kodu gör;
// Set the latest member.
öncesine ekle;
// Allowed user to see spiders online (We change stuff here AFTER stats update). Spiders are displayed as guests again.
if (!allowedTo('googlebot_view'))
$context['num_guests'] += $context['num_spiders'];


ManagePermissions.php de bu kodu gör;
'profile_remote_avatar' => false,

sonrasına ekle;
,
'googlebot' => array(
'googlebot_view' => false,


ModSettings.php de bu kodu gör;
array('rule'),
);

return $config_vars;

öncesine ekle;
array('heading', &$txt['ob_googlebot_modname']),
// General display settings
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
array('rule'),
// Count spiders on most online?
array('check', 'ob_googlebot_count_most_online'),
array('rule'),
// Redirect PHPSESSID URLs?
array('check', 'ob_googlebot_redirect_phpsessid'),



şu kodu gör;
'karma' => 'ModifyKarmaSettings',
sonrasına ekle;'googlebot' => 'ModifyGooglebotSettings',

bu kodu bul;
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
'is_last' => true,
),

öncesine ekle;
'googlebot' => array(
'title' => $txt['ob_googlebot_modname'],
'href' => $scripturl . '?action=featuresettings;sa=googlebot;sesc=' . $context['session_id'],
),


bu kodu gör;
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);


sonrasına ekle;
function ModifyGooglebotSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
// Count all instances of spiders?
array('check', 'ob_googlebot_count_all_instances'),
array('check', 'ob_googlebot_display_all_instances'),
array('check', 'ob_googlebot_display_agent'),
array('check', 'ob_googlebot_display_own_list'),
'',
// Count spiders on most online?
array('check', 'ob_googlebot_count_most_online'),
'',
// Redirect PHPSESSID URLs?
array('check', 'ob_googlebot_redirect_phpsessid'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=googlebot');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=googlebot';
$context['settings_title'] = $txt['ob_googlebot_modname'];

prepareDBSettingContext($config_vars);


Subs.php de bu kodu gör;
function template_footer()
{
global $context, $settings, $modSettings, $time_start, $db_count;]]></search>
<add><![CDATA[
global $user_info, $db_prefix;

//Googlebot stats - Get info for this page
if ($modSettings['ob_googlebot_stats'])
{
if (isset($context['current_topic'])) // We are on a topic
{
$key = 'topic';
$value = "$context[current_topic].$context[start]";
}
elseif (isset($context['current_board'])) // We are on a board
{
$key = 'board';
$value = "$context[current_board].$context[start]";
}
else // We are somewhere else
{
$key = 'url';

// Remove PHPSESSID, just in case that the user has it in his URL, to avoid duplicates
$value = "$_SERVER[REQUEST_URI]";
$value = preg_replace('/([?&]PHPSESSID=[^&]*)/', '', $value);
$value = str_replace('index.php&', 'index.php?', $value);
}

$result = db_query("
SELECT lastvisit, frequency, visits
FROM {$db_prefix}ob_googlebot_stats
WHERE $key = '$value'
AND agent = 'Googlebot'
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($result) == 0) //No stats yet.
$lastvisit = $frequency = $visits = 0;
else
list ($lastvisit, $frequency, $visits) = mysql_fetch_row($result);
mysql_free_result($result);

// Is Googlebot? if so, we will update the stats BEFORE displaying it.
if (ob_googlebot_getAgent($_SERVER['HTTP_USER_AGENT'], $spider_name, $agent))
if ($agent == 'Googlebot')
{
$now = time();
$visits++;

if ($visits == 1) // First time, insert new record
db_query("
INSERT INTO {$db_prefix}ob_googlebot_stats
($key, visits, lastvisit, agent)
VALUES
('$value', $visits, $now, '$agent')
", __FILE__, __LINE__);
else
{
if ($visits == 2)
$frequency = $now - $lastvisit; /* This is the SECOND time Google visits this page */
else
$frequency = (($frequency * ($visits - 1)) + ($now - $lastvisit)) / $visits;

db_query("
UPDATE {$db_prefix}ob_googlebot_stats
SET frequency = $frequency, visits = $visits, lastvisit = $now
WHERE $key = '$value'
AND agent = 'Googlebot'
LIMIT 1", __FILE__, __LINE__);
}

$lastvisit = $now;
}

if ($visits > 0)
$context['ob_googlebot_stats'] = array(
'Googlebot' => array('frequency' => $frequency, 'visits' => $visits, 'lastvisit' => $lastvisit)
);


hemen sonrasına( bitimine ) ekleyin;
//Function to check if the user-agent provided belongs to a spider. Based on getAgent function made by Owdy.
function ob_googlebot_getAgent(&$user_agent, &$spider_name, &$result)
{
$known_spiders = array (
//Search Spiders
array (
'agent' => 'WISENutbot',
'spidername' => 'Looksmart spider',
),
array (
'agent' => 'MSNBot',
'spidername' => 'MSN spider',
),
array (
'agent' => 'W3C_Validator',
'spidername' => 'W3C Validator',
),
array (
'agent' => 'Googlebot-Image',
'spidername' => 'Google-Image Spider',
),
array (
'agent' => 'Googlebot',
'spidername' => 'Google spider',
),
array (
'agent' => 'Mediapartners-Google',
'spidername' => 'Google AdSense spider',
),
array (
'agent' => 'Openbot',
'spidername' => 'Openfind spider',
),

array (
'agent' => 'Yahoo! Slurp',
'spidername' => 'Yahoo spider',
),
array (
'agent' => 'FAST-WebCrawler',
),
array (
'agent' => 'Wget',
),
array (
'agent' => 'Ask Jeeves',
),
array (
'agent' => 'Speedy Spider',
),
array (
'agent' => 'SurveyBot',
),
array (
'agent' => 'IBM_Planetwide',
),
array (
'agent' => 'GigaBot',
),
array (
'agent' => 'ia_archiver',
),
array (
'agent' => 'FAST-WebCrawler',
),
array (
'agent' => 'Inktomi Slurp',
),
array (
'agent' => 'appie',
'spidername' => 'Walhello spider',
),
array (
            'agent' => 'FeedBurner/1.0',
            'spidername' => 'Feedburner',
        ),
        array (
            'agent' => 'Feedfetcher-Google',
        ),
        array (
            'agent' => 'OmniExplorer_Bot/6.68',
            'spidername' => 'OmniExplorer Bot',
        ),
        array (
            'agent' => 'http://www.relevantnoise.com',
            'spidername' => 'relevantNOISE',
        ),
        array (
            'agent' => 'NewsGatorOnline/2.0',
            'spidername' => 'NewsGatorOnline',
        ),
        array (
            'agent' => 'ping.blo.gs/2.0',
        ),
        array (
            'agent' => 'Jakarta Commons-HttpClient/3.0.1',
            'spidername' => 'Amazon',
        ),
          array (
            'agent' => 'Jakarta Commons-HttpClient/3.0-rc2',
            'spidername' => 'Amazon',
        ),
);

foreach($known_spiders AS $poss)
if (strpos(strtolower($user_agent), strtolower($poss['agent'])) !== false)
{
$spider_name = isset($poss['spidername']) ? $poss['spidername'] : $poss['agent'];
$result = $poss['agent'];
return true;
}

return false;
}


Modifications.turkish.php 'nin bitimine (en sona) bunları ekle;
// OB - Googlebot - Begin

// Boardindex Strings Turkce By Kaanoglu
$txt['ob_googlebot_modname'] = 'Googlebot & Orumcekler';
$txt['ob_googlebot_spider'] = 'Arama Motoru';
$txt['ob_googlebot_spiders'] = 'Arama Motoru';
$txt['ob_googlebot_spiders_last_active'] = 'Son ' . $modSettings['lastActive'] . ' Dakikada Aktif olan Arama Motorları';

// ModSettings
$txt['ob_googlebot_count_all_instances'] = 'Aynı Türleri Hesapla';
$txt['ob_googlebot_display_all_instances'] = 'Aynı Türleri Sayıyla Göster <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" Seçili olmalıdır)</div>';
$txt['ob_googlebot_display_agent'] = 'Bot yerinde isim göster';
$txt['ob_googlebot_display_own_list'] = 'Arama Motorlarını Ayrı listede Göster';
$txt['ob_googlebot_count_most_online'] = '"En çok Online" Listesinde hesapla';
$txt['ob_googlebot_redirect_phpsessid'] = 'PHPSESSID Linklerini yonlendir';

// Stats
$txt['ob_googlebot_stats_lastvisit'] = 'Google ve orumceklerin son ziyareti ';

// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'Arama motoru ve Orumcekleri Goster';

// OB - Googlebot - End


index.template.php bu kodları görün;
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';


sonrasına ekle;
if (isset($context['ob_googlebot_stats']))
echo '
<br /><br /><span class="smalltext">', $txt['ob_googlebot_stats_lastvisit'], timeformat($context['ob_googlebot_stats']['Googlebot']['lastvisit']), '</span>';


BoardIndex.template.php bu kodları gör;
$context['num_guests'], ' ', $context['num_guests'] == 1

öncesine ekle;
(empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '),

bu kodu bul;
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

sonrasına ekleyin;
if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}

echo implode(', ', $context['spiders']);
}


MODU İNDİR ZİPTEN  ÇIKAR İÇİNDE install.php dosyası var onuda SQL Sorgusu ile phpmyadmin'den çalıştır.

bookmark

teşekkürler kral paket sorunsuz yüklendi.

borland

Arkadaslar

DilberMC kullanıyorum Smf 1.1.2 kurulu

Bunun için Googlebot & Spiders Mod bulamadım.  :(

Yardım Edin Lütfen...

x5

1.1.2

Musiconica kullaniyorum aynı şekilde manuel kurulum ariyorum :)
ƒσяυм ѕüяüмü: ѕмƒ 1.1.7
güη¢єℓ ѕмƒ ѕüяüмü: ѕмƒ 1.1.7

as_kral

ghg modu yanlış çıkarmışsın onu düzenle yada sil..

as_kral

Aryıca Bu modu Manuel kurmaya Kalmayın Defalarca Denememe Rağmen phpmyadminde Hata veriyor..

son_nefes63

saolasın kardeş kurdum çalışıyo inş. sorun yapmaz! smf ile ilgili bütün dökmanlar zaten bu siteden çıkıyo bunu bilmeyen yoktur heralde???

elenor44

slm öncelikle çok teşekkürler mod için kurulum 1.1.2  ye  hatasız oldu  fakat  ayarları sabit değişmiyo ve ana pencerede görünmüyo belki googleden henüz kimse yok yeni olduğu için ama kafama takılan ayarların üst iki şık sabit ve başka hiç bi ayar işlemiyo sanki 2 ayarı sabitlrmişin ne oynuyo ne değişiyo
yardımcı olursanız sevinirim saygılar

İnzar

Quote from: İnzar on March 05, 2007, 04:34:38 PM
Bu paket kurulumu aşağıdaki eylemleri gerçekleştirecek:  Tip Eylem Açıklama
1. Değişiklik Yapılacak ./index.php Test Başarılı
2. Değişiklik Yapılacak ./SSI.php Test Başarılı
3. Değişiklik Yapılacak ./Sources/BoardIndex.php Test Başarılı
4. Değişiklik Yapılacak ./Sources/ManagePermissions.php Test Başarılı
5. Değişiklik Yapılacak ./Sources/ModSettings.php Test Başarılı
6. Değişiklik Yapılacak ./Sources/Subs.php Test Başarılı
7. Değişiklik Yapılacak ./Themes/default/languages/Modifications.turkish.php Test Başarılı
8. Değişiklik Yapılacak ./Themes/default/index.template.php Test Başarılı
9. Değişiklik Yapılacak ./Themes/default/BoardIndex.template.php Test Başarısız
10. Kod Uygulanacak install.php


boardinindez.php test başarısız dedi

1.1.1 default teme
www.kuranehli.com

teşekürler

nasıl yükleyecem bordindexi analamdım ?


özlem ajans, Dua yayınlılık ve inzar dergisi tanıtım sitesi.
Kuran ehlinin buluşma mekanı.

www.kuranehli.com
kur'an-ı Kerime hizmet etmeye devam ediyoruz
www.kuranyolunda.org

madly

sayfa üstünde bunlar çıktı



// OB - Googlebot - Kod baslangici // Boardindex Strings Turkce By KraL $txt['ob_googlebot_modname'] = 'Googlebot & Orumcekler'; $txt['ob_googlebot_spider'] = 'Arama Motoru'; $txt['ob_googlebot_spiders'] = 'Arama Motoru'; $txt['ob_googlebot_spiders_last_active'] = 'Son ' . $modSettings['lastActive'] . ' Dakikada Aktif olan Arama Motorları'; // ModSettings $txt['ob_googlebot_count_all_instances'] = 'Aynı Türleri Hesapla'; $txt['ob_googlebot_display_all_instances'] = 'Aynı Türleri Sayıyla Göster
("' . $txt['ob_googlebot_count_all_instances'] . '" Seçili olmalıdır)
'; $txt['ob_googlebot_display_agent'] = 'Bot yerinde isim göster'; $txt['ob_googlebot_display_own_list'] = 'Arama Motorlarını Ayrı listede Göster'; $txt['ob_googlebot_count_most_online'] = '"En çok Online" Listesinde hesapla'; $txt['ob_googlebot_redirect_phpsessid'] = 'PHPSESSID Linklerini yonlendir'; // Stats $txt['ob_googlebot_stats_lastvisit'] = 'Google ve orumceklerin son ziyareti '; // Permissions $txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname']; $txt['permissionname_googlebot_view'] = 'Arama motoru ve Orumcekleri Goster'; // OB - Googlebot - Kod Bitisi

BuyCu


cw_imhotep

1,1,2 için bi kurulum yok mu henüz???
hxxp:www.turkboards.com [nonactive]

angmar99

hocam bunu kurdum  ama   üye yerinde bu google bot felan çıkmadı bi yardım edersen sevinirim

RapChoLicK

Quote from: cw_imhotep on May 20, 2007, 01:04:22 PM
1,1,2 için bi kurulum yok mu henüz???

Ben 1,1,2 Kullanıyorum Ve Kurulumu Gayet Başarılı Bir Şekilde Yaptım..

Kendi Temana Göre Editliyeceksin $themedir Felan işte Kendi Tema Yolunu Yaz Sonra Tekrar Kurmayı Dene Bi


  • Hileden uzak bu adama sille vurma yazıktır.
    İlle çile mi çekmem lazım? Nurum yüzüme dargındır
    Bil de gerisi mühim değil, sevgim sana özel ve saftır
    Bugüne dek işlediğim günaha. İstırhamım tekbir aftır.
    Dökmek ister içini içim, anlatmalı mı biçim biçim?...
    Her neşe, bir içim ve içlenişime direnişim.
    Ben, yürüdükçe kalır izim, bitmek bilmez pembe dizim.
    Yüzüm her resimde karanlık, karamsar bir çizim

Ve Birgün memleketten 1084 Km ileri gittim...

ColD_X

Paker kurulumunda Mod Settings.php yi görmüyor sonra o kısmı manual kurduğumda seçeneklerin kısma sürekli modsettins.php hatası veriyor.

prens_nefret

1.1.3 default da sorunsuz çalışıyor teşekkürler ;)

NirvanaTR

1.1.2 dilber mc teması kullanıyorum . Acaba bu manuel kurulum işe yarar mı çok acil lazım yardım edebilir misiniz ?

Yağız...


NirvanaTR


Yağız...

Dosyalarda hata verebilir.Her temanin kodlari ayni degil.

Advertisement: