Ayrıntılı Konu Bilgileri
Sayfa BaşlığıKonu: smf 2.x Ful İstatislik
Mesaj SayısıMesaj Sayısı: 1 cevap var
OkumaGösterim: 1055
Google Özel Arama

Gönderen Konu: smf 2.x Ful İstatislik  (Okunma sayısı 1055 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

    sevdaligul

  • Administrator
  • *

  • İleti: 13121
  • Nerden: Konya
  • Rep: +6511/-0
  • Cinsiyet: Bay
  • GüLe SeVDaLı Bir GeNç
    • MSN Messenger - sevdaligul@gmail.com
    • Profili Görüntüle GüLe SeVDaLı BiR GeNçLiK
  • Çevrimdışı
smf 2.x Ful İstatislik
« : 13 Haziran 2013, 07:50:55 »


 

Resimlerin Görüntülenmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap

Full top 10 istatistik 2.x
 2.0.2 Test edildi..
   Daha önce kullandığım ama kimseyle paylaşmadığım top 10 bir çok kişi bunun için baya bi istekte bulunmuştu,
Bende yeniden düzenledim table  taglarını kullanmadım tablosuz bir çalışma oldu bazı sorunlar çıkartabilir  belki sorun buldugunuzda
resim ile bildirirseniz düzeltmeye çalışırım.
   Aynı konuya gönderilen mesajları birleştir  ve flood engeller. Cevap sayısını ve hit i gösterir.
   Şuan ki hali ile forumda hiç bir hata dizisi oluşturmadan çalışıyor.
   Herkez kullanabilir sorunsuz olarak, tek ricam bu kodları başka bir sitede görmek istemiyorum..

Sources/Subs-Recent.php
BUL:
Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
$request = $smcFunc['db_query']('substring', '
SELECT
m.poster_time, m.subject, m.id_topic, m.id_member, m.id_msg,
IFNULL(mem.real_name, m.poster_name) AS poster_name, t.id_board, b.name AS board_name,
SUBSTRING(m.body, 1, 385) AS body, m.smileys_enabled
FROM {db_prefix}messages AS m
INNER JOIN {db_prefix}topics AS t ON (t.id_topic = m.id_topic)
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
WHERE m.id_msg >= {int:likely_max_msg}' .
(!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? '
AND b.id_board != {int:recycle_board}' : '') . '
AND {query_wanna_see_board}' . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}
AND m.approved = {int:is_approved}' : '') . '
ORDER BY m.id_msg DESC
LIMIT ' . $latestPostOptions['number_posts'],
array(
'likely_max_msg' => max(0, $modSettings['maxMsgID'] - 50 * $latestPostOptions['number_posts']),
'recycle_board' => $modSettings['recycle_board'],
'is_approved' => 1,
)
);
DEĞİŞTİR:
Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
$request = $smcFunc['db_query']('substring', '
SELECT
m.poster_time, m.subject, m.id_topic, m.id_member, m.id_msg,
IFNULL(mem.real_name, m.poster_name) AS poster_name, t.id_board, t.num_views, t.num_replies, b.name AS board_name,
SUBSTRING(m.body, 1, 385) AS body, m.smileys_enabled
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_last_msg)
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_last_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)' . (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {int:current_member})
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {int:current_member})' : '') . '
WHERE t.id_last_msg >= {int:min_message_id}
AND ' . $user_info['query_wanna_see_board'] . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}
AND m.approved = {int:is_approved}' : '') . '
ORDER BY t.id_last_msg DESC
LIMIT ' . $latestPostOptions['number_posts'],
array(
'current_member' => $user_info['id'],
'min_message_id' => $modSettings['maxMsgID'] - 35 * min($latestPostOptions['number_posts'], 5),
'is_approved' => 1,
)
);

BUL:

Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
// Build the array.
$posts[] = array(
'board' => array(

DEĞİŞTİR:

Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
// Build the array.
$posts[] = array(
'hit' => $row['num_views'],
'replies' => $row['num_replies'],
'board' => array(


Temanız / languages/Modifications.turkish.php
BUL:
Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
?>ÜSTÜNE EKLE:
Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap

        $txt['bos'] = '     ';
        $txt['smesaj_konu'] = 'Konu';
        $txt['smesaj_mesaj'] = 'Mesaj';
        $txt['smesaj_gonderen'] = 'Gönderen';
        $txt['smesaj_hit'] = 'Hit';
$txt['smesaj_cevap'] = 'Cevap';
        $txt['smesaj_tarih'] = 'Tarih';
$txt['smesaj_encok_okunan'] = 'En Çok Okunan Konu';
$txt['smesaj_okunan_hit'] = 'Okuma';
        $txt['smesaj_encok_yorum'] = 'En çok yorum alanan konu';
$txt['smesaj_yorum_hit'] = 'Yorum';
$txt['smesaj_konu_hit'] = 'Konu';
$txt['smesaj_mesaj_hit'] = 'Mesaj';
$txt['smesaj_karma_hit'] = 'Karma';
$txt['smesaj_online_hit'] = 'Süre';
        $txt['smesaj_yeni_uye'] = 'En yeni üyelerimiz.';
$txt['smesaj_encok_mesaj'] = 'En çok mesaj atan üye';
$txt['smesaj_encok_konu'] = 'En çok konu açan üye';
$txt['smesaj_encok_karma'] = 'En çok karma alan üye';
$txt['smesaj_encok_online'] = 'En çok online';

$txt['smesaj_soniletiler'] = 'SON İLETİLER';
$txt['smesaj_okunankonu'] = 'EN ÇOK OKUNAN';
$txt['smesaj_yorumlanankonu'] = 'YORUMLANAN';
$txt['smesaj_encokmesaj'] = 'EN ÇOK MESAJ';
$txt['smesaj_encokkonu'] = 'KONU';
        $txt['smesaj_encokkarma'] = 'EN ÇOK KARMA';
$txt['smesaj_encokonline'] = 'ONLİNE';
$txt['smesaj_siteistatistik'] = 'İSTATİSTİKLER';
$txt['smesaj_yeniuyeler'] = 'YENİ ÜYELER';
$txt['smesaj_cevrimiciuye'] = 'ÇEVRİMİÇİ ÜYELER';

$txt['smesaj_toplamacilankonu'] = 'Sitemizde Toplam açılan konu:';
$txt['smesaj_toplamayorumsayisi'] = 'Toplam Yorum sayısı:';
$txt['smesaj_toplamuyesayisi'] = 'Sitemizi takip eden üye sayısı:';
$txt['smesaj_bugunkonusayisi'] = 'Bugün açılan konu sayısı:';
$txt['smesaj_bugunmesajsayisi'] = 'Bugün yazılan mesaj sayısı:';
        $txt['smesaj_bugunkatilansayisi'] = 'Bugün sitemize katılan kişi sayısı:';
$txt['smesaj_misafirsayisi'] = 'Şuanki Misafir sayımız:';
$txt['smesaj_onlineuyesayisi'] = 'Şuanki online üye sayımız:';
$txt['smesaj_encok'] = 'En çok';



Sources/BoardIndex.php

BUL:      

Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
// For wireless, we use the Wireless template...
if (WIRELESS)
$context['sub_template'] = WIRELESS_PROTOCOL . '_boardindex';
else
loadTemplate('BoardIndex');

ALTINA EKLE:
Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
   istatistik10();
$context['html_headers'] = '
 <link type="text/css" rel="stylesheet" href="'. $settings['theme_url']. '/js/istatistik.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="'. $settings['theme_url']. '/js/slidedeck.jquery.js"></script>';

BUL:
Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
   ?>ÜSTÜNE EKLE:
Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
function istatistik10()
{
    global $txt, $smcFunc, $user_info, $sourcedir, $modSettings, $context, $settings, $scripturl;

   // Yeni üye 10 START
    $members_result =  $smcFunc['db_query']('', '
        SELECT id_member, real_name, posts
        FROM {db_prefix}members
        ORDER BY id_member DESC
        LIMIT 10',
        array(
        )
    );
    $context['new_members'] = array();
    while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
    {
      $context['new_members'][] = array(
         'name' => $row_members['real_name'],
         'id' => $row_members['id_member'],
'num_posts' => $row_members['posts'],
         'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
         'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
      );
    }
    $smcFunc['db_free_result']($members_result);

   //  10 Karma START
    $members_result = $smcFunc['db_query']('', '
      SELECT id_member, real_name, karma_good
      FROM {db_prefix}members
      ORDER BY karma_good DESC
      LIMIT 10');
    $context['karma'] = array();
    while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
    {
      $context['karma'][] = array(
         'name' => $row_members['real_name'],
         'id' => $row_members['id_member'],
         'karma' => $row_members['karma_good'],
         'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
         'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
      );
    }
    $smcFunc['db_free_result']($members_result);

   if (empty($context['karma']))
      return;

    //  10 Mesaj START
$members_result = $smcFunc['db_query']('', '
SELECT id_member, real_name, posts
FROM {db_prefix}members
WHERE posts > {int:no_posts}
ORDER BY posts DESC
LIMIT 10',
array(
'no_posts' => 0,
)
);
$context['top_posters'] = array();
$max_num_posts = 1;
while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
{
$context['top_posters'][] = array(
'name' => $row_members['real_name'],
'id' => $row_members['id_member'],
'num_posts' => $row_members['posts'],
'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
);

if ($max_num_posts < $row_members['posts'])
$max_num_posts = $row_members['posts'];
}
$smcFunc['db_free_result']($members_result);

foreach ($context['top_posters'] as $i => $poster)
{
$context['top_posters'][$i]['post_percent'] = round(($poster['num_posts'] * 100) / $max_num_posts);
$context['top_posters'][$i]['num_posts'] = comma_format($context['top_posters'][$i]['num_posts']);
}

  // Board top 10 START
$boards_result = $smcFunc['db_query']('', '
SELECT id_board, name, num_posts
FROM {db_prefix}boards AS b
WHERE {query_see_board}' . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? '
AND b.id_board != {int:recycle_board}' : '') . '
AND b.redirect = {string:blank_redirect}
ORDER BY num_posts DESC
LIMIT 10',
array(
'recycle_board' => $modSettings['recycle_board'],
'blank_redirect' => '',
)
);
$context['top_boards'] = array();
$max_num_posts = 1;
while ($row_board = $smcFunc['db_fetch_assoc']($boards_result))
{
$context['top_boards'][] = array(
'id' => $row_board['id_board'],
'name' => $row_board['name'],
'num_posts' => $row_board['num_posts'],
'href' => $scripturl . '?board=' . $row_board['id_board'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row_board['id_board'] . '.0">' . $row_board['name'] . '</a>'
);

if ($max_num_posts < $row_board['num_posts'])
$max_num_posts = $row_board['num_posts'];
}
$smcFunc['db_free_result']($boards_result);

foreach ($context['top_boards'] as $i => $board)
{
$context['top_boards'][$i]['post_percent'] = round(($board['num_posts'] * 100) / $max_num_posts);
$context['top_boards'][$i]['num_posts'] = comma_format($context['top_boards'][$i]['num_posts']);
}

    // en çok yorum alan 10 START
// Are you on a larger forum?  If so, let's try to limit the number of topics we search through.
if ($modSettings['totalMessages'] > 100000)
{
$request = $smcFunc['db_query']('', '
SELECT id_topic
FROM {db_prefix}topics
WHERE num_replies != {int:no_replies}' . ($modSettings['postmod_active'] ? '
AND approved = {int:is_approved}' : '') . '
ORDER BY num_replies DESC
LIMIT 100',
array(
'no_replies' => 0,
'is_approved' => 1,
)
);
$topic_ids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$topic_ids[] = $row['id_topic'];
$smcFunc['db_free_result']($request);
}
else
$topic_ids = array();

$topic_reply_result = $smcFunc['db_query']('', '
SELECT m.subject, t.num_replies, t.id_board, t.id_topic, b.name
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board' . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? '
AND b.id_board != {int:recycle_board}' : '') . ')
WHERE {query_see_board}' . (!empty($topic_ids) ? '
AND t.id_topic IN ({array_int:topic_list})' : ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '')) . '
ORDER BY t.num_replies DESC
LIMIT 10',
array(
'topic_list' => $topic_ids,
'recycle_board' => $modSettings['recycle_board'],
'is_approved' => 1,
)
);
$context['top_topics_replies'] = array();
$max_num_replies = 1;
while ($row_topic_reply = $smcFunc['db_fetch_assoc']($topic_reply_result))
{
censorText($row_topic_reply['subject']);

$context['top_topics_replies'][] = array(
'id' => $row_topic_reply['id_topic'],
'board' => array(
'id' => $row_topic_reply['id_board'],
'name' => $row_topic_reply['name'],
'href' => $scripturl . '?board=' . $row_topic_reply['id_board'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row_topic_reply['id_board'] . '.0">' . $row_topic_reply['name'] . '</a>'
),
'subject' => $row_topic_reply['subject'],
'num_replies' => $row_topic_reply['num_replies'],
'href' => $scripturl . '?topic=' . $row_topic_reply['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row_topic_reply['id_topic'] . '.0">' . $row_topic_reply['subject'] = substr($row_topic_reply['subject'], 0,25). '</a>'
);

if ($max_num_replies < $row_topic_reply['num_replies'])
$max_num_replies = $row_topic_reply['num_replies'];
}
$smcFunc['db_free_result']($topic_reply_result);

foreach ($context['top_topics_replies'] as $i => $topic)
{
$context['top_topics_replies'][$i]['post_percent'] = round(($topic['num_replies'] * 100) / $max_num_replies);
$context['top_topics_replies'][$i]['num_replies'] = comma_format($context['top_topics_replies'][$i]['num_replies']);
}

// en çok okunan 10 START
// Large forums may need a bit more prodding...
if ($modSettings['totalMessages'] > 100000)
{
$request = $smcFunc['db_query']('', '
SELECT id_topic
FROM {db_prefix}topics
WHERE num_views != {int:no_views}
ORDER BY num_views DESC
LIMIT 100',
array(
'no_views' => 0,
)
);
$topic_ids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$topic_ids[] = $row['id_topic'];
$smcFunc['db_free_result']($request);
}
else
$topic_ids = array();

// Topic views top 10 START
$topic_view_result = $smcFunc['db_query']('', '
SELECT m.subject, t.num_views, t.id_board, t.id_topic, b.name
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board' . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? '
AND b.id_board != {int:recycle_board}' : '') . ')
WHERE {query_see_board}' . (!empty($topic_ids) ? '
AND t.id_topic IN ({array_int:topic_list})' : ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '')) . '
ORDER BY t.num_views DESC
LIMIT 10',
array(
'topic_list' => $topic_ids,
'recycle_board' => $modSettings['recycle_board'],
'is_approved' => 1,
)
);
$context['top_topics_views'] = array();
$max_num_views = 1;
while ($row_topic_views = $smcFunc['db_fetch_assoc']($topic_view_result))
{
censorText($row_topic_views['subject']);

$context['top_topics_views'][] = array(
'id' => $row_topic_views['id_topic'],
'board' => array(
'id' => $row_topic_views['id_board'],
'name' => $row_topic_views['name'],
'href' => $scripturl . '?board=' . $row_topic_views['id_board'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row_topic_views['id_board'] . '.0">' . $row_topic_views['name'] . '</a>'
),
'subject' => $row_topic_views['subject'],
'num_views' => $row_topic_views['num_views'],
'href' => $scripturl . '?topic=' . $row_topic_views['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row_topic_views['id_topic'] . '.0">' . $row_topic_views['subject'] = substr($row_topic_views['subject'], 0,25) . '</a>'
);

if ($max_num_views < $row_topic_views['num_views'])
$max_num_views = $row_topic_views['num_views'];
}
$smcFunc['db_free_result']($topic_view_result);

foreach ($context['top_topics_views'] as $i => $topic)
{
$context['top_topics_views'][$i]['post_percent'] = round(($topic['num_views'] * 100) / $max_num_views);
$context['top_topics_views'][$i]['num_views'] = comma_format($context['top_topics_views'][$i]['num_views']);
}

// en çok konu açan START
// Try to cache this when possible, because it's a little unavoidably slow.
if (($members = cache_get_data('stats_top_starters', 360)) == null)
{
$request = $smcFunc['db_query']('', '
SELECT id_member_started, COUNT(*) AS hits
FROM {db_prefix}topics' . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? '
WHERE id_board != {int:recycle_board}' : '') . '
GROUP BY id_member_started
ORDER BY hits DESC
LIMIT 20',
array(
'recycle_board' => $modSettings['recycle_board'],
)
);
$members = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$members[$row['id_member_started']] = $row['hits'];
$smcFunc['db_free_result']($request);

cache_put_data('stats_top_starters', $members, 360);
}

if (empty($members))
$members = array(0 => 0);

// Topic poster top 10 START
$members_result = $smcFunc['db_query']('top_topic_starters', '
SELECT id_member, real_name
FROM {db_prefix}members
WHERE id_member IN ({array_int:member_list})
ORDER BY FIND_IN_SET(id_member, {string:top_topic_posters})
LIMIT 10',
array(
'member_list' => array_keys($members),
'top_topic_posters' => implode(',', array_keys($members)),
)
);
$context['top_starters'] = array();
$max_num_topics = 1;
while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
{
$context['top_starters'][] = array(
'name' => $row_members['real_name'],
'id' => $row_members['id_member'],
'num_topics' => $members[$row_members['id_member']],
'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
);

if ($max_num_topics < $members[$row_members['id_member']])
$max_num_topics = $members[$row_members['id_member']];
}
$smcFunc['db_free_result']($members_result);

foreach ($context['top_starters'] as $i => $topic)
{
$context['top_starters'][$i]['post_percent'] = round(($topic['num_topics'] * 100) / $max_num_topics);
$context['top_starters'][$i]['num_topics'] = comma_format($context['top_starters'][$i]['num_topics']);
}

// en çok online olan START
$temp = cache_get_data('stats_total_time_members', 600);
$members_result = $smcFunc['db_query']('', '
SELECT id_member, real_name, total_time_logged_in
FROM {db_prefix}members' . (!empty($temp) ? '
WHERE id_member IN ({array_int:member_list_cached})' : '') . '
ORDER BY total_time_logged_in DESC
LIMIT 10',
array(
'member_list_cached' => $temp,
)
);
$context['top_time_online'] = array();
$temp2 = array();
$max_time_online = 1;
while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
{
$temp2[] = (int) $row_members['id_member'];
if (count($context['top_time_online']) >= 10)
continue;

// Figure out the days, hours and minutes.
$timeDays = floor($row_members['total_time_logged_in'] / 86400);
$timeHours = floor(($row_members['total_time_logged_in'] % 86400) / 3600);

// Figure out which things to show... (days, hours, minutes, etc.)
$timelogged = '';
if ($timeDays > 0)
$timelogged .= $timeDays . $txt['totalTimeLogged5'];
if ($timeHours > 0)
$timelogged .= $timeHours . $txt['totalTimeLogged6'];
$timelogged .= floor(($row_members['total_time_logged_in'] % 3600) / 60) . $txt['totalTimeLogged7'];

$context['top_time_online'][] = array(
'id' => $row_members['id_member'],
'name' => $row_members['real_name'],
'time_online' => $timelogged,
'seconds_online' => $row_members['total_time_logged_in'],
'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
);

if ($max_time_online < $row_members['total_time_logged_in'])
$max_time_online = $row_members['total_time_logged_in'];
}
$smcFunc['db_free_result']($members_result);

foreach ($context['top_time_online'] as $i => $member)
$context['top_time_online'][$i]['time_percent'] = round(($member['seconds_online'] * 100) / $max_time_online);

// Cache the ones we found for a bit, just so we don't have to look again.
if ($temp !== $temp2)
cache_put_data('stats_total_time_members', $temp2, 480);

}

Temanız /BoardIndex.template.php
BUL SİL:

Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
{
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
', $txt['recent_posts'], '
</span>
</h4>
</div>
<div class="hslice" id="recent_posts_content">
<div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '</div>
<div class="entry-content" style="display: none;">
<a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '</a>
</div>';

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '</a></strong>
<p id="infocenter_onepost" class="middletext">
', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
</p>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<dl id="ic_recentposts" class="middletext">';

/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
<dd>', $post['time'], '</dd>';
echo '
</dl>';
}
echo '
</div>';
}
BUL SİL :

Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
// Show statistical style information...
if ($settings['show_stats_index'])
{
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<a href="', $scripturl, '?action=stats"><img class="icon" src="', $settings['images_url'], '/icons/info.gif" alt="', $txt['forum_stats'], '" /></a>
', $txt['forum_stats'], '
</span>
</h4>
</div>
<p>
', $context['common_stats']['total_posts'], ' ', $txt['posts_made'], ' ', $txt['in'], ' ', $context['common_stats']['total_topics'], ' ', $txt['topics'], ' ', $txt['by'], ' ', $context['common_stats']['total_members'], ' ', $txt['members'], '. ', !empty($settings['show_latest_member']) ? $txt['latest_member'] . ': <strong> ' . $context['common_stats']['latest_member']['link'] . '</strong>' : '', '<br />
', (!empty($context['latest_post']) ? $txt['latest_post'] . ': <strong>&quot;' . $context['latest_post']['link'] . '&quot;</strong>  ( ' . $context['latest_post']['time'] . ' )<br />' : ''), '
<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '
</p>';
}

BUL SİL:
Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
// "Users online" - in order of activity.
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '">' : '', '<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $context['show_who'] ? '</a>' : '', '
', $txt['online_users'], '
</span>
</h4>
</div>
<p class="inline stats">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
$bracketList = array();
if ($context['show_buddies'])
$bracketList[] = comma_format($context['num_buddies']) . ' ' . ($context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies']);
if (!empty($context['num_spiders']))
$bracketList[] = comma_format($context['num_spiders']) . ' ' . ($context['num_spiders'] == 1 ? $txt['spider'] : $txt['spiders']);
if (!empty($context['num_users_hidden']))
$bracketList[] = comma_format($context['num_users_hidden']) . ' ' . $txt['hidden'];

if (!empty($bracketList))
echo ' (' . implode(', ', $bracketList) . ')';

echo $context['show_who'] ? '</a>' : '', '
</p>
<p class="inline smalltext">';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
{
echo '
', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br />', implode(', ', $context['list_users_online']);

// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo '
<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
}

echo '
</p>
<p class="last smalltext">
', $txt['most_online_today'], ': <strong>', comma_format($modSettings['mostOnlineToday']), '</strong>.
', $txt['most_online_ever'], ': ', comma_format($modSettings['mostOnline']), ' (', timeformat($modSettings['mostDate']), ')
</p>';
BUL SİL:
Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<a href="', $scripturl, '?action=calendar' . '"><img class="icon" src="', $settings['images_url'], '/icons/calendar.gif', '" alt="', $context['calendar_only_today'] ? $txt['calendar_today'] : $txt['calendar_upcoming'], '" /></a>
', $context['calendar_only_today'] ? $txt['calendar_today'] : $txt['calendar_upcoming'], '
</span>
</h4>
</div>
<p class="smalltext">';

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span class="holiday">', $txt['calendar_prompt'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span class="birthday">', $context['calendar_only_today'] ? $txt['birthdays'] : $txt['birthdays_upcoming'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<strong>' : '', $member['name'], $member['is_today'] ? '</strong>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span class="event">', $context['calendar_only_today'] ? $txt['events'] : $txt['events_upcoming'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" title="' . $txt['calendar_edit'] . '"><img src="' . $settings['images_url'] . '/icons/modify_small.gif" alt="*" /></a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<strong>' . $event['title'] . '</strong>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';
}
echo '
</p>';
}

BUL:
Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
// Here's where the "Info Center" starts...
echo '
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">
<div class="cat_bar">
<h3 class="catbg">
<img class="icon" id="upshrink_ic" src="', $settings['images_url'], '/collapse.gif" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />
', sprintf($txt['info_center_title'], $context['forum_name_html_safe']), '
</h3>
</div>
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>';

ALTINA EKLE:

Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
istatistics();

Ekteki js klasorunu temanızın içine atınız .
yine ekteki top10  klasörünüde Temanız/images  klasörünün içine atınız..

Yazının devamı alttaki mesajda....


Alıntı
Aklımdaki sensin
Fikrimdeki Sen
Sen tekderdimsin
Gülüm Benim

    sevdaligul

  • Administrator
  • *

  • İleti: 13121
  • Nerden: Konya
  • Rep: +6511/-0
  • Cinsiyet: Bay
  • GüLe SeVDaLı Bir GeNç
    • MSN Messenger - sevdaligul@gmail.com
    • Profili Görüntüle GüLe SeVDaLı BiR GeNçLiK
  • Çevrimdışı
smf 2.x Ful İstatislik
« Yanıtla #1 : 13 Haziran 2013, 07:53:11 »

Yazının devamıdır......

Temanız /BoardIndex.template.php

BUL :
Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap
?>
ÜSTÜNE EKLE:

Kod: Linklerin Görülmesine İzin Verilmiyor. Üye Ol ya da Giriş Yap


    // İstatistik Fonctions D'ssConnecTed START
function istatistics(){
    global $context, $settings, $txt, $scripturl;
    echo'
    <div id="slidedeck_frame">
<dl class="slidedeck">
<dt>'.$txt['smesaj_soniletiler'].'</dt>
<dd>',sonileti(),'</dd>
<dt>'.$txt['smesaj_okunankonu'].' - '.$txt['smesaj_yorumlanankonu'].'</dt>
<dd>',okunan(),'  ',yorum(),'</dd>
<dt>'.$txt['smesaj_encokmesaj'].' - '.$txt['smesaj_encokkonu'].'</dt>
<dd>',mesaj(),'  ',konu(),'</dd>
<dt>'.$txt['smesaj_encokkarma'].' - '.$txt['smesaj_encokonline'].'</dt>
<dd>',karma(),' ',eonline(),'</dd>
<dt>'.$txt['smesaj_siteistatistik'].' - '.$txt['smesaj_yeniuyeler'].'</dt>
<dd>',istatistik(),' ',yeniuye(),'</dd>
<dt>'.$txt['smesaj_cevrimiciuye'].'</dt>
<dd>',onlineuyeler(),'</dd>
</dl>
</div>
<script type="text/javascript"><!-- // --><![CDATA[
$(\'.slidedeck\').slidedeck();
// ]]></script>';
// Son 10 istatistik D'ssConnecTed END
}
function sonileti(){
    global $context, $settings, $txt, $scripturl;
$ino = 1;
echo'
<div class="top10div">
        <ul class="top10ul">
    <li class="top10li30 titlebg"><span class="subject">',$txt['bos'],'',$txt['smesaj_mesaj'],'</span></li>
            <li class="top10li25 titlebg"><span class="subject">',$txt['bos'],'',$txt['smesaj_gonderen'],'</span></li>
            <li class="top10li10 titlebg"><span class="subject">',$txt['bos'],'',$txt['smesaj_hit'],'</span></li>
<li class="top10li10 titlebg"><span class="subject">',$txt['bos'],'',$txt['smesaj_cevap'],'</span></li>
            <li class="top10li25 titlebg"><span class="subject">',$txt['bos'],'',$txt['smesaj_tarih'],'</span></li>';
       
// <li class="top10li25 titlebg"><span class="subject">',$txt['bos'],'',$txt['smesaj_konu'],'</span></li>
foreach ($context['latest_posts'] as $post){
    $imag ='<img src="'.$settings['images_url'].'/top10/top'.$ino.'.gif" alt="" />';
$span ='<span class="smalltext">';
        echo '
            <li class="top10li30">&nbsp;'.$imag.' '.$span.'<a href="',$post['href'],'" title="',$post['preview'],'">',$post['short_subject'],'</a></span></li>
            <li class="top10li25">&nbsp;'.$imag.' '.$span.'',$post['poster']['link'],'</span></li>
<li class="top10li10">&nbsp;'.$imag.' '.$span.'',$post['hit'],'</span></li>
<li class="top10li10">&nbsp;'.$imag.' '.$span.'',$post['replies'],'</span></li>
            <li class="top10li25">&nbsp;'.$imag.' '.$span.'',$post['time'],'</span></li>';

// <li class="top10li25">&nbsp;'.$imag.' '.$span.'',$post['board']['link'],'</span></li>
$ino++;
}
    echo '
    </ul>
</div>';
}
function okunan(){
    global $context, $settings, $txt, $scripturl;
    $ino=1;
echo'
<div class="top10uldiv">
    <ul class="top10ul">
            <li class="titlebg top10li_80"><span class="smalltext">&nbsp;&nbsp;',$txt['smesaj_encok_okunan'],'</span></li>
            <li class="titlebg top10li_20"><span class="smalltext">',$txt['smesaj_okunan_hit'],'&nbsp;&nbsp;</span></li>
    </ul>
<ul class="top10ul">';
    foreach ($context['top_topics_views'] as $topic){
    $imag ='<img src="'.$settings['images_url'].'/top10/top'.$ino.'.gif" alt="" />';
    $span ='<span class="smalltext">';
        echo '
            <li class="top10li_80">'.$imag.''.$span.' ', $topic['link'], '</span></li>
            <li class="top10li_20">'.$imag.''.$span.' ', $topic['num_views'], '</span></li>';
        $ino++;
}
    echo'</ul>
</div>';
}
function yorum(){
    global $context, $settings, $txt, $scripturl;
$ino=1;
    echo'
<div class="top10uldiv">
        <ul class="top10ul">
            <li class="titlebg top10li_80"><span class="smalltext">&nbsp;&nbsp;',$txt['smesaj_encok_yorum'],'</span></li>
            <li class="titlebg top10li_20"><span class="smalltext">',$txt['smesaj_yorum_hit'],'&nbsp;&nbsp;</span></li>
</ul>
<ul class="top10ul">';
    foreach ($context['top_topics_replies'] as $topic){
    $imag ='<img src="'.$settings['images_url'].'/top10/top'.$ino.'.gif" alt="" />';
    $span ='<span class="smalltext">';
        echo '
<li class="top10li_80"> '.$imag.''.$span.' ', $topic['link'], '</span></li>
        <li class="top10li_20"> '.$imag.''.$span.' ', $topic['num_replies'], '</span></li>';
        $ino++;
    }
    echo '
    </ul>
</div>';
}
function mesaj(){
global $context, $settings, $txt, $scripturl;
    $ino=1;
    echo'
<div class="top10uldiv">
    <ul class="top10ul">
            <li class="titlebg top10li_80"><span class="smalltext">&nbsp;&nbsp;'.$txt['smesaj_encok_mesaj'].'</span></li>
            <li class="titlebg top10li_20"><span class="smalltext">&nbsp;&nbsp;',$txt['smesaj_mesaj_hit'],'</span></li>
</ul>
<ul class="top10ul">';
    foreach ($context['top_posters'] as $poster){
    $imag ='<img src="'.$settings['images_url'].'/top10/top'.$ino.'.gif" alt="" />';
    $span ='<span class="smalltext">';
        echo'
            <li class="top10li_80">'.$imag.''.$span.' ', $poster['link'], '</span></li>
            <li class="top10li_20">'.$imag.''.$span.' ', $poster['num_posts'], '</span></li>'; 
        $ino++;
}
    echo'
    </ul>
    </div>';
}
function konu(){
global $context, $settings, $txt, $scripturl;
    $ino=1;
    echo'
    <div class="top10uldiv">
        <ul class="top10ul">
            <li class="titlebg top10li_80"><span class="smalltext">&nbsp;&nbsp;'.$txt['smesaj_encok_konu'].'</span></li>
            <li class="titlebg top10li_20"><span class="smalltext">&nbsp;&nbsp;',$txt['smesaj_konu_hit'],'</span></li>
</ul>
    <ul class="top10ul">';
foreach ($context['top_starters'] as $poster){
    $imag ='<img src="'.$settings['images_url'].'/top10/top'.$ino.'.gif" alt="" />';
    $span ='<span class="smalltext">';
    echo '
            <li class="top10li_80">'.$imag.''.$span.' ', $poster['link'], '</span></li>
            <li class="top10li_20">'.$imag.''.$span.' ',$poster['num_topics'], '</span></li>';
        $ino++;
}
    echo '
    </ul>
    </div>';
}
function karma(){
global $context, $settings, $txt, $scripturl;
    $ino=1;
    echo'
<div class="top10uldiv">
    <ul class="top10ul">
            <li class="titlebg top10li_80"><span class="smalltext">&nbsp;&nbsp;'.$txt['smesaj_encok_karma'].'</span></li>
            <li class="titlebg top10li_20"><span class="smalltext">&nbsp;&nbsp;',$txt['smesaj_karma_hit'],'</span></li>
</ul>
<ul class="top10ul">';
    foreach ($context['karma'] as $mem){
    $imag ='<img src="'.$settings['images_url'].'/top10/top'.$ino.'.gif" alt="" />';
    $span ='<span class="smalltext">';
        echo '
            <li class="top10li_80">'.$imag.''.$span.' ',$mem['link'], '</span></li>
            <li class="top10li_20">'.$imag.''.$span.' ',$mem['karma'], '</span></li>';
        $ino++;
}
    echo '
    </ul>
    </div>';
}
function eonline(){
global $context, $settings, $txt, $scripturl;
    $ino=1;
    echo'
    <div class="top10uldiv">
        <ul class="top10ul">
            <li class="titlebg top10li_60"><span class="smalltext">&nbsp;&nbsp;'.$txt['smesaj_online_hit'].'</span></li>
<li class="titlebg top10li_40"><span class="smalltext">&nbsp;&nbsp;'.$txt['smesaj_encok_online'].'</span></li>
    </ul>
<ul class="top10ul">';
foreach ($context['top_time_online'] as $topic){
    $imag ='<img src="'.$settings['images_url'].'/top10/top'.$ino.'.gif" alt="" />';
    $span ='<span class="smalltext">';
        echo '
            <li class="top10li_60">'.$imag.''.$span.' ', $topic['time_online'], '</span></li>
            <li class="top10li_40">'.$imag.''.$span.' ', $topic['link'], '</span></li>';
        $ino++;
}
    echo'
    </ul>
    </div>';
}
function yeniuye(){
global $context, $settings, $txt, $scripturl;
$ino=1;
    echo'
<div class="top10uldiv">
        <ul class="top10ul">
            <li class="titlebg top10li_80"><span class="smalltext">&nbsp;&nbsp;'.$txt['smesaj_yeni_uye'].'</span></li>
            <li class="titlebg top10li_20"><span class="smalltext">&nbsp;&nbsp;'.$txt['smesaj_mesaj'].'</span></li>
</ul><ul class="top10ul">';
foreach ($context['new_members'] as $new_member){
    $imag ='<img src="'.$settings['images_url'].'/top10/top'.$ino.'.gif" alt="" />';
    $span ='<span class="smalltext">';
        echo '
            <li class="top10li_80">'.$imag.''.$span.' ', $new_member['link'], '</span></li>
            <li class="top10li_20">'.$imag.''.$span.' ', $new_member['num_posts'], '</span></li>';
        $ino++;
    }
    echo '
        </ul>
</div>';
}
function istatistik(){
global $context, $settings,$modSettings, $txt, $scripturl, $db_prefix, $db_connection;
    // Show istatistical information... D'issConnecTed
    $sorgu = "SELECT * FROM {$db_prefix}log_activity  ORDER BY date DESC Limit 1";
    $bugunuye = @mysql_query($sorgu, $db_connection);
    $context['sonuyesayisi'] = mysql_fetch_array($bugunuye);

    echo'
<div class="top10uldiv">
<ul class="top10ul">
            <li class="titlebg istatistik"><a href="', $scripturl, '?action=stats"><span class="smalltext" style="font-weight: bold;">&nbsp;&nbsp;', $txt['forum_stats'], '</span></a></li>
        <li class="top10li_80"><img src="', $settings['images_url'], '/top10/top1.gif" alt="" /><span class="smalltext"> ', $txt['smesaj_toplamacilankonu'], '</span></li>
    <li class="top10li_20"><img src="', $settings['images_url'], '/top10/top1.gif" alt="" /><span class="smalltext"> ', $context['common_stats']['total_topics'], '</span></li>
            <li class="top10li_80"><img src="', $settings['images_url'], '/top10/top2.gif" alt="" /><span class="smalltext"> ', $txt['smesaj_toplamayorumsayisi'], '</span></li>
<li class="top10li_20"><img src="', $settings['images_url'], '/top10/top2.gif" alt="" /><span class="smalltext"> ', $context['common_stats']['total_posts'], '</span></li>
    <li class="top10li_80"><img src="', $settings['images_url'], '/top10/top3.gif" alt="" /><span class="smalltext"> ', $txt['smesaj_toplamuyesayisi'], '</span></li>
<li class="top10li_20"><img src="', $settings['images_url'], '/top10/top3.gif" alt="" /><span class="smalltext"> ', $context['common_stats']['total_members'], '</span></li>
<li class="top10li_80"><img src="', $settings['images_url'], '/top10/top4.gif" alt="" /><span class="smalltext"> ', $txt['smesaj_bugunkonusayisi'], '</span></li>
<li class="top10li_20"><img src="', $settings['images_url'], '/top10/top4.gif" alt="" /><span class="smalltext"> ', $context['sonuyesayisi']['topics'], '</span></li>
    <li class="top10li_80"><img src="', $settings['images_url'], '/top10/top5.gif" alt="" /><span class="smalltext"> ', $txt['smesaj_bugunmesajsayisi'], '</span></li>
<li class="top10li_20"><img src="', $settings['images_url'], '/top10/top5.gif" alt="" /><span class="smalltext"> ', $context['sonuyesayisi']['posts'], '</span></li>
            <li class="top10li_80"><img src="', $settings['images_url'], '/top10/top6.gif" alt="" /><span class="smalltext"> ', $txt['smesaj_bugunkatilansayisi'], '</span></li>
<li class="top10li_20"><img src="', $settings['images_url'], '/top10/top6.gif" alt="" /><span class="smalltext"> ', $context['sonuyesayisi']['registers'] , '</span></li>
            <li class="top10li_80"><img src="', $settings['images_url'], '/top10/top7.gif" alt="" /><span class="smalltext"> ', $txt['smesaj_misafirsayisi'], '</span></li>
<li class="top10li_20"><img src="', $settings['images_url'], '/top10/top7.gif" alt="" /><span class="smalltext"> ', $context['num_guests'],'</span></li>
    <li class="top10li_80"><img src="', $settings['images_url'], '/top10/top8.gif" alt="" /><span class="smalltext"> ', $txt['smesaj_onlineuyesayisi'], '</span></li>
<li class="top10li_20"><img src="', $settings['images_url'], '/top10/top8.gif" alt="" /><span class="smalltext"> ', $context['num_users_online'],'</span></li>
    <li class="top10li_80"><img src="', $settings['images_url'], '/top10/top9.gif" alt="" /><span class="smalltext"> ', $txt['most_online_today'], ':</li>
<li class="top10li_20"><img src="', $settings['images_url'], '/top10/top9.gif" alt="" /><span class="smalltext"> ', comma_format($modSettings['mostOnlineToday']), '</span></li>
    <li class="top10li_80"><img src="', $settings['images_url'], '/top10/top10.gif" alt="" /><span class="smalltext"> ', $txt['smesaj_encok'], ' ', timeformat($modSettings['mostDate']), ':</li>
<li class="top10li_20"><img src="', $settings['images_url'], '/top10/top10.gif" alt="" /><span class="smalltext"> ', comma_format($modSettings['mostOnline']), '</span></li>
        </ul>
    </div>';
    // Show statistical style information... D'issConnecTed
}
function onlineuyeler(){
    global $context, $settings, $txt, $modSettings, $scripturl;
    echo'
<div style="float:left;width:100%;">';
    // Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '    
    <ul class="top10ul">
    <li class="titlebg onlinetitle">
    <span class="smalltext"> <a href="', $scripturl, '?action=calendar' . '">', $context['calendar_only_today'] ? $txt['calendar_today'] : $txt['calendar_upcoming'], '</a></span>
        </li>
    <li class="takvim">
    <p class="smalltext">';

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
    <span class="holiday">', $txt['calendar_prompt'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
    <span class="birthday">', $context['calendar_only_today'] ? $txt['birthdays'] : $txt['birthdays_upcoming'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
    <a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<strong>' : '', $member['name'], $member['is_today'] ? '</strong>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
    <span class="event">', $context['calendar_only_today'] ? $txt['events'] : $txt['events_upcoming'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" title="' . $txt['calendar_edit'] . '"><img src="' . $settings['images_url'] . '/icons/modify_small.gif" alt="*" /></a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<strong>' . $event['title'] . '</strong>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';
}
echo '
    </p>
    </li>
    </ul>';
}
echo'
    <ul class="top10ul">
            <li class="titlebg onlinetitle">
    <span class="smalltext">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '"> ' : '', '', $context['show_who'] ? '</a>' : '', '
', $txt['online_users'], '
</span>
</li>
            <li class="onlineuye">';
// "Users online" - in order of activity.
echo '
<p class="inline stats">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
// Handle hidden users and buddies.
$bracketList = array();
if ($context['show_buddies'])
$bracketList[] = comma_format($context['num_buddies']) . ' ' . ($context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies']);
if (!empty($context['num_spiders']))
$bracketList[] = comma_format($context['num_spiders']) . ' ' . ($context['num_spiders'] == 1 ? $txt['spider'] : $txt['spiders']);
if (!empty($context['num_users_hidden']))
$bracketList[] = comma_format($context['num_users_hidden']) . ' ' . $txt['hidden'];
if (!empty($bracketList))
echo ' (' . implode(', ', $bracketList) . ')';
echo $context['show_who'] ? '</a>' : '', '
</p>
<p class="inline smalltext">';
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
{
echo '
', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br />', implode(', ', $context['list_users_online']);

// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo '
<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
}
echo '
</p>
<p class="last smalltext">
', $txt['most_online_today'], ': <strong>', comma_format($modSettings['mostOnlineToday']), '</strong>.
', $txt['most_online_ever'], ': ', comma_format($modSettings['mostOnline']), ' (', timeformat($modSettings['mostDate']), ')
</p>';
    echo'
</li>
</ul>
    </div>';
// Son 10 D'ssConnecTed END
}
Aklımdaki sensin
Fikrimdeki Sen
Sen tekderdimsin
Gülüm Benim


Paylaş delicious Paylaş digg Paylaş facebook Paylaş furl Paylaş linkedin Paylaş myspace Paylaş reddit Paylaş stumble Paylaş technorati Paylaş twitter