Autor Tópico: Estatísticas completa 10 2.X 2013  (Lida 8306 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5073
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Estatísticas completa 10 2.X 2013
« em: 24 de Agosto de 2013, 01:25 »



Abrir o ficheiro index.templete.php


Pesquisar por


Código: [Seleccione]
</head>

Adicionar este script


Código: [Seleccione]
<link rel="stylesheet" href="', $settings['theme_url'], '/css/jquery.tabs.css" type="text/css" media="print, projection, screen" /> 
   <!--[if lte IE 7]> <link rel="stylesheet" href="', $settings['theme_url'], '/css/jquery.tabs-ie.css" type="text/css" media="projection, screen" /> <![endif]-->
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
   <script src="', $settings['theme_url'], '/scripts/jquery.tabs.min.js" type="text/javascript"></script>
    <script type="text/javascript"><!-- // --><![CDATA[
        $(function() {
       $("#container-3").tabs();
       });
    // ]]></script>


Abrir o ficheiro İndex.css


Pesquisar por


Código: [Seleccione]
/* Common classes to easy styling.
------------------------------------------------------- */




Adicionar por baixo este codigo


Código: [Seleccione]
.w80{width:80%;}
.w20r{width:20%;vertical-align:top;align:right;}
.w20l{width:20%;text-align:left;}
.w20{width:20%;text-align:center;}
.bold{font-weight: bold;}
.vert{vertical-align: bottom;margin-bottom:0;}




// Sources/ Subs-Recent.php


Pesquisar por


Código: [Seleccione]
m.poster_time, m.subject, m.id_topic, m.id_member, m.id_msg,

Alterar por


Código: [Seleccione]
m.poster_time, m.subject, m.id_topic, m.id_member, m.id_msg, t.num_views,



Pesquisar por


Código: [Seleccione]
'topic' => $row['id_topic'],
         'poster' => array(
            'id' => $row['id_member'],




Alterar por este aqui


Código: [Seleccione]
'topic' => $row['id_topic'],
         'poster' => array(
            'id' => $row['id_member'],
             'hit' => $row['num_views'],




Abrir o ficheiro // Sources/ BoardIndex.php


Pesquisar por


Código: [Seleccione]
// For wireless, we use the Wireless template...
   if (WIRELESS)
      $context['sub_template'] = WIRELESS_PROTOCOL . '_boardindex';
   else
      loadTemplate('BoardIndex');




Alterar por este aqui


Código: [Seleccione]
// For wireless, we use the Wireless template...
   if (WIRELESS)
      $context['sub_template'] = WIRELESS_PROTOCOL . '_boardindex';
   else
      loadTemplate('BoardIndex');
        istatistik10();




Pesquisar por


Código: [Seleccione]
?>

Adicionar este codigo a baixo


Código: [Seleccione]
function istatistik10(){
   global $txt, $smcFunc, $user_info, $sourcedir, $modSettings, $context, $settings, $scripturl;
// Yeni Üye 10
   // Newest members top 10
   $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);
   
//  Top 10 karma
   $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;




// top 10 mesaj
   // Poster top 10.
   $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']);
   }


// top on bölüm
   // Board top 10.
   $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   
   // 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 replies top 10.
   $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
   // 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.
   $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   
   // 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.
   $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   
   // Time online top 10.
   $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);


//// Teşekkür      ////
/*
// Thank-O-Matic Stats Callculation
   if (!empty($modSettings['thankYouPostStatsEnabled']))
   {
      // Load chached data for Thank-O-Matic, should speed up the stats for big boards :)
      $temp_thankomatic = cache_get_data('stats_thank_o_matic_members', 360);


      // Load Top Thank-O-Matic Stats :)
      $request = $smcFunc['db_query']('', '
         SELECT id_member, real_name, thank_you_post_became, thank_you_post_made
         FROM {db_prefix}members as mem' . (!empty($temp_thankomatic) ? '
         WHERE id_member IN ({array_int:member_list_cached})' : '') . '
         ORDER BY thank_you_post_made DESC
         LIMIT {int:limit}',
         array(
            'limit' => 10,
            'member_list_cached' => $temp_thankomatic,
         )
      );
      $collectThxid_member = array();
      $context['top_ThankOMatic_Given'] = array();
      while ($row = $smcFunc['db_fetch_assoc']($request))
      {
         $context['top_ThankOMatic_Given'][] = array(
            'id' => $row['id_member'],
            'name' => $row['real_name'],
            'href' => $scripturl . '?action=profile;u='  . $row['id_member'],
            'link' => '<a href="'  . $scripturl . '?action=profile;u='  . $row['id_member'] . '" title="' . $txt['thank_you_post_thx_display'] .' ' . $txt['thank_you_post_made_display'] . '">'  . $row['real_name'] . '</a>',
            'thank_you_post_became' => $row['thank_you_post_became'],
            'thank_you_post_made' => $row['thank_you_post_made']
         );


         $collectThxid_member[$row['id_member']] = $row['id_member'];
      }
      $smcFunc['db_free_result']($request);


      $request = $smcFunc['db_query']('', '
         SELECT id_member, real_name, thank_you_post_became, thank_you_post_made
         FROM {db_prefix}members' . (!empty($temp_thankomatic) ? '
         WHERE id_member IN ({array_int:member_list_cached})' : '') . '
         ORDER BY thank_you_post_became DESC
         LIMIT {int:limit}',
         array(
            'limit' => 10,
            'member_list_cached' => $temp_thankomatic,
         )
      );
      $context['top_ThankOMatic_Receive'] = array();
      while ($row = $smcFunc['db_fetch_assoc']($request))
      {
         $context['top_ThankOMatic_Receive'][] = array(
            'id' => $row['id_member'],
            'name' => $row['real_name'],
            'href' => $scripturl . '?action=profile;u='  . $row['id_member'],
            'link' => '<a href="'  . $scripturl . '?action=profile;u='  . $row['id_member'] . '" title="' . $txt['thank_you_post_thx_display'] .' ' . $txt['thank_you_post_became_display'] . '">'  . $row['real_name'] . '</a>',
            'thank_you_post_became' => $row['thank_you_post_became'],
            'thank_you_post_made' => $row['thank_you_post_made']
         );


         $collectThxid_member[$row['id_member']] = $row['id_member'];
      }
      $smcFunc['db_free_result']($request);


      // Chache the data for the Thank-O-Matic stats
      if($temp_thankomatic != $collectThxid_member)
         cache_put_data('stats_thank_o_matic_members', $collectThxid_member, 480);


      // Okay Fix the colors for the Thank You Post :)
      if (!empty($collectThxid_member) && !empty($modSettings['thankYouPostColors']) && empty($modSettings['MemberColorStats']))
      {
         global $sourcedir, $color_profile;


         // Okay load the colors and add them :)
         require_once($sourcedir.'/ThankYouPost.php');
         thank_you_post_loadColors($collectThxid_member);


         // Hoho let's color it the thx color way :D
         if (!empty($context['top_ThankOMatic_Given']))
         {
            foreach ($context['top_ThankOMatic_Given'] as $key => $items)
            {
               // Okay Let's boogie woogie ;D
               $profile = $color_profile[$items['id']];
               if (!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
                  $context['top_ThankOMatic_Given'][$key]['link'] = '<a href="'  . $scripturl . '?action=profile;u='  . $profile['id_member'] . '" title="' . $txt['thank_you_post_thx_display'] .' ' . $txt['thank_you_post_made_display'] . '"><span style="color:'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).';">'  . $profile['real_name'] . '</span></a>';
            }
         }
         if (!empty($context['top_ThankOMatic_Receive']))
         {
            foreach ($context['top_ThankOMatic_Receive'] as $key => $items)
            {
               // Okay Let's boogie woogie ;D
               $profile = $color_profile[$items['id']];
               if (!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
                  $context['top_ThankOMatic_Receive'][$key]['link'] = '<a href="'  . $scripturl . '?action=profile;u='  . $profile['id_member'] . '" title="' . $txt['thank_you_post_thx_display'] .' ' . $txt['thank_you_post_became_display'] . '"><span style="color:'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).';">'  . $profile['real_name'] . '</span></a>';
            }
         }
      }
   }
*/
}


Abrir o ficheiro Boardindex.template.php


Pesquisa por e remover


Código: [Seleccione]
// This is the "Recent Posts" bar.
   if (!empty($settings['number_recent_posts']))
   {
      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 class="hslice" id="recent_posts_content">
            <div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '<>
            <div class="entry-content" style="display: none;">
               <a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '</a>
            <>';


      // 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 '
         <>';
   }




Pesquisar e remover


Código: [Seleccione]
// 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>
         <>
         <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>';
   }




Pesquisar por


Código: [Seleccione]
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>';



Adicionar esta codigo


Código: [Seleccione]
// İstatistik10 START: D'ssConnecTed    Translate By Candidosa2     
    echo'<!-- İstatistik 10: BenimProjem.net Start -->
<div id="container-3">
    <ul class="tabs-nav">
       <li class="tabs-selected"><a href="#fragment-1"><span>Postes recentes</span></a></li>
        <li class=""><a href="#fragment-2"><span>T&oacute;pico</span></a></li>
        <li class=""><a href="#fragment-3"><span>Mensagem</span></a></li>
        <li class=""><a href="#fragment-4"><span>Ler</span></a></li>
        <li class=""><a href="#fragment-5"><span>Comentar</span></a></li>
      <li class=""><a href="#fragment-12"><span>Sec&ccedil;&atilde;o</span></a></li>
        <li class=""><a href="#fragment-6"><span>Karma</span></a></li>
      <li class=""><a href="#fragment-7"><span>Obrigado</span></a></li>
        <li class=""><a href="#fragment-8"><span>Novo membro</span></a></li>
      <li class=""><a href="#fragment-9"><span>Online</span></a></li>
      <li class=""><a href="#fragment-11"><span>Media</span></a></li>
      <li class=""><a href="#fragment-10"><span>Estat&iacute;stica</span></a></li>';
    echo'
   </ul>
    <div id="fragment-1" class="tabs-container tabs-hide">
        <table cellspacing="1" width="100%" cellpadding="0"  border="0">
          <tr>
                <td class="titlebg" style="width:35%;vertical-align:top;"><span class="smalltext" style="font-weight: bold;">&nbsp;&nbsp;&nbsp;Mensagem</span></td>
                <td class="titlebg" style="width:30%;vertical-align:top;"><span class="smalltext" style="font-weight: bold;">&nbsp;&nbsp;&nbsp;Remetente</span></td>
                <td class="titlebg" style="width:10%;vertical-align:top;text-align:center;"><span class="smalltext" style="font-weight: bold;">&nbsp;Hit</span></td>
               <td class="titlebg" style="width:25%;vertical-align:top;"><span class="smalltext" style="font-weight: bold;">&nbsp;&nbsp;&nbsp;Hist&oacute;ria</span></td></tr>';


            $ino=1;
          foreach ($context['latest_posts'] as $sonm){
                echo '
         <tr>
                <td class="windowbg2" style="width:35%;vertical-align:top;"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><a href="',$sonm['href'],'" title="', $sonm['preview'],'"><span class="smalltext">  ', $sonm['short_subject'], ' </span> </a> </td>
                <td class="windowbg2" style="width:30%;vertical-align:top;"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext"> ', $sonm['poster']['link'],' </span></td>
                <td class="windowbg2" style="width:10%;vertical-align:top;text-align:right;"><span class="smalltext"> ', $sonm['poster']['hit'],' </span><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /></td>
                <td class="windowbg2" style="width:25%;vertical-align:top;"><span class="smalltext"> ', $sonm['time'], ' </span></td>
            </tr>';
         $ino++;
         }
    echo '
       </table>
    <>
   <div id="fragment-2" class="tabs-container tabs-hide">
        <table class="windowbg" style="width:100%;">
          <tr>
                <td class="titlebg w80"><span class="smalltext bold">Top Starters T&oacute;pico</span></td>
                <td class="titlebg w20r"><span class="smalltext bold">T&oacute;pico</span></td>
            </tr>';
            $ino=1;
         foreach ($context['top_starters'] as $poster){
               echo '
           <tr>
                <td class="windowbg2" style="width:80%;"> <img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" />
                <span class="smalltext vert"> ', $poster['link'], '</span></td>
                <td class="windowbg2 w20r"><span class="smalltext"> ',$poster['num_topics'], '</span></td>
          </tr>';
                $ino++;
           }
    echo'
        </table>
    <>
   <div id="fragment-3" class="tabs-container tabs-hide">
        <table class="windowbg" style="width:100%;">
          <tr>
                <td class="titlebg w80"><span class="smalltext bold">Mensagem enviadas mais por</span></td>
                <td class="titlebg w20r"><span class="smalltext bold">Mensagem</span></td>
            </tr>';
            $ino=1;
            foreach ($context['top_posters'] as $poster){
                echo'
          <tr>
                <td class="windowbg2" style="width:80%;">
                <img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" />
                <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;"> ', $poster['link'], '</span></td>
                <td class="windowbg2" style="width:20%;text-align:right;"><span class="smalltext">', $poster['num_posts'], '</span></td>
          </tr>'; 
                $ino++;
           }
    echo'
        </table>
    <>
   <div id="fragment-4" class="tabs-container tabs-hide">
        <table class="windowbg" style="width:100%;">
          <tr>
                <td class="titlebg w80"><span class="smalltext bold"> Os t&oacute;picos mais lidos </span></td>
                <td class="titlebg w20l"><span class="smalltext bold"> Leitura </span></td>
            </tr>';
            $ino=1;
   foreach ($context['top_topics_views'] as $topic){
        echo '
       <tr>
            <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext vert"> ', $topic['link'], '</span></td>
            <td class="windowbg2 w20r"><span class="smalltext"> ', $topic['num_views'], '</span></td>
      </tr>';
        $ino++;
   }
    echo'
       </table>
    <>
   <div id="fragment-5" class="tabs-container tabs-hide">
        <table class="windowbg" style="width:100%;">
         <tr>
                <td class="titlebg w80"><span class="smalltext bold">Mais comentadas &aacute;rea de t&oacute;pico</span></td>
                <td class="titlebg w20l"><span class="smalltext bold">Comentar</span></td>
            </tr>';
            $ino=1;
            foreach ($context['top_topics_replies'] as $topic){
            echo'
         <tr>
         <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" />
             <span class="smalltext vert"> ', $topic['link'], '</span></td>
           <td class="windowbg2 w20r"><span class="smalltext">', $topic['num_replies'], '</span></td></tr>';
            $ino++;
            }
    echo'
       </table>
   <>
   <div id="fragment-12" class="tabs-container tabs-hide">
        <table class="windowbg" style="width:100%;">
         <tr>
                <td class="titlebg w80"><span class="smalltext bold">Melhor Se&ccedil;&atilde;o de Interesses</span></td>
                <td class="titlebg w20l"><span class="smalltext bold">Mensagem</span></td>
            </tr>';
                $ino=1;
            foreach ($context['top_boards'] as $topic){
            echo'
          <tr>
              <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext vert"> ', $topic['link'], '</span></td>
               <td class="windowbg2 w20r"><span class="smalltext">', $topic['num_posts'], '</span></td>
         </tr>';
            $ino++;
            }
    echo'
       </table>
   <>
   <div id="fragment-6" class="tabs-container tabs-hide">
        <table class="windowbg" style="width:100%;">
          <tr>
                <td class="titlebg w80"><span class="smalltext bold">O m&aacute;ximo misturado</span></td>
                <td class="titlebg w20r"><span class="smalltext bold">Karma</span></td>
            </tr>';
            $ino=1;
        foreach ($context['karma'] as $mem){
        echo '
      <tr>
            <td class="windowbg2" style="width:80%; vertical-align:top;"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" />
                <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;"> ',$mem['link'], '</span></td>
            <td class="windowbg2" style="width:20%;text-align:right; vertical-align:top;">
                <span class="smalltext">',$mem['karma'], '</span></td>
      </tr>';
        $ino++;
      }
    echo'
       </table>
    <>
   <div id="fragment-7" class="tabs-container tabs-hide">
        <table class="windowbg" style="width:100%;">
          <tr>
                <td class="titlebg" width="50%"><span class="smalltext bold">&nbsp;&nbsp;Agradecimentos ingeridos</span></td>
                <td class="titlebg" width="50%"><span class="smalltext bold">&nbsp;&nbsp;Designado para o Times</span></td>
         </tr>';
      if(isset($context['top_ThankOMatic_Receive'])){
         echo'
            <tr class="windowbg2">
             <td width="50%" valign="top">
                <table width="100%">';
                        $ino=1;
                   foreach ($context['top_ThankOMatic_Receive'] as $thxyou){
                            echo '
                  <tr>
                            <td width="60%" class="windowbg2" valign="top"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext vert">',$thxyou['link'], '</span></td>
                            <td width="40%" class="windowbg2" align="right" valign="top"><span class="smalltext vert">', $thxyou['thank_you_post_became'],'</span></td>
                  </tr>';
                            $ino++;
                  }
            echo '  </table>
             </td>
             <td width="50%" valign="top">
                    <table width="100%">';
                        $ino=1;
                  foreach ($context['top_ThankOMatic_Given'] as $thxyou){
                            echo '
                  <tr>
                            <td width="60%" class="windowbg2" valign="top"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext vert">',$thxyou['link'], '</span></td>
                            <td width="40%" class="windowbg2" align="right" valign="top"><span class="smalltext vert">', $thxyou['thank_you_post_made'],'</span></td>
                        </tr>';
                        $ino++;
                  }
            echo '  </table>
             </td>
         </tr>';
      }
   echo'     
        </table>
    <>
   <div id="fragment-8" class="tabs-container tabs-hide">
        <table class="windowbg" style="width:100%;">
          <tr>
                <td class="titlebg w80"><span class="smalltext bold">Boas-vindas aos novos membros.</span></td>
                <td class="titlebg w20r"><span class="smalltext bold">Mensagem</span></td>
         </tr>';
            $ino=1;
         foreach ($context['new_members'] as $new_member){
                echo '
         <tr>
                <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext vert"> ', $new_member['link'], '</span></td>
                <td class="windowbg2 w20r"><span class="smalltext">', $new_member['num_posts'], '</span></td>
            </tr>';
            $ino++;
         }
    echo'
        </table>
    <>';
   echo'<div id="fragment-9" class="tabs-container tabs-hide">
    <table class="windowbg" style="width:100%;">
       <tr>
            <td class="titlebg" style="width:50%;"><span class="smalltext bold">&nbsp;&nbsp;A maioria on-line</span></td>
            <td class="titlebg" style="width:50%;text-align:left;">
               <span class="smalltext bold">&nbsp;&nbsp;tempo</span></td>
       </tr>';
        $ino=1;
      foreach ($context['top_time_online'] as $topic){
            echo '
      <tr>
            <td class="windowbg2" style="width:50%;vertical-align:top;"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext" style="vertical-align: bottom;margin-bottom:0;"> ', $topic['link'], '</span></td>
            <td class="windowbg2" style="width:50%;vertical-align:top;align:right;"><span class="smalltext" style="text-align:center;"> ', $topic['time_online'], '</span></td>
       </tr>';
        $ino++;
      }
    echo'
    </table><>';
       global $db_prefix, $db_connection;
    $sorgu = "SELECT * FROM {$db_prefix}log_activity  ORDER BY date DESC Limit 1";
    $bugunuye = mysql_query($sorgu, $db_connection) or die(mysql_error());
    $contex['sonuyesayisi'] = mysql_fetch_array($bugunuye);
   echo'
   <div id="fragment-10" class="tabs-container tabs-hide">
        <table class="windowbg" style="width:100%;">
          <tr>
                <td class="titlebg" colspan="2" style="width:100%;"><a href="', $scripturl, '?action=stats">
                 <span class="smalltext" style="font-weight: bold;">&nbsp;&nbsp;', $txt['forum_stats'], '</span></a>
             </td>
           </tr>
                <tr>
                    <td class="windowbg2" style="width:80%;vertical-align:top;"><img src="', $settings['images_url'], '/top1.gif" alt="" />
               <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;">Temos um total t&oacute;picos:</span></td>
               <td class="windowbg2" style="width:20%;vertical-align:top;text-align:right;">', $context['common_stats']['total_topics'], '</td>
            </tr>
            <tr>
                    <td class="windowbg2" style="width:80%;vertical-align:top;"><img src="', $settings['images_url'], '/top2.gif" alt="" />
               <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;">Total de Coment&aacute;rios:</span></td>
               <td class="windowbg2" style="width:20%;vertical-align:top;text-align:right;">', $context['common_stats']['total_posts'], '</td>
            </tr>
            <tr>
                <td class="windowbg2" style="width:80%;vertical-align:top;"><img src="', $settings['images_url'], '/top3.gif" alt="" />
               <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;">O número de membros do nosso follow-up:</span></td>
               <td class="windowbg2" style="width:20%;vertical-align:top;text-align:right;">', $context['common_stats']['total_members'], '</td>
            </tr>
            <tr>
               <td class="windowbg2" style="width:80%;vertical-align:top;"><img src="', $settings['images_url'], '/top4.gif" alt="" />
               <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;">Hoje, o n&uacute;mero de t&oacute;picos:</span></td>
               <td class="windowbg2" style="width:20%;vertical-align:top;text-align:right;">', $contex['sonuyesayisi']['topics'], '</td>
            </tr>
            <tr>
                <td class="windowbg2" style="width:80%;vertical-align:top;"><img src="', $settings['images_url'], '/top5.gif" alt="" />
               <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;">Hoje, o n&uacute;mero de mensagem de correio:</span></td>
               <td class="windowbg2" style="width:20%;vertical-align:top;text-align:right;">', $contex['sonuyesayisi']['posts'], '</td>
            </tr>
            <tr>
                    <td class="windowbg2" style="width:80%;vertical-align:top;"><img src="', $settings['images_url'], '/top6.gif" alt="" />
               <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;">Hoje, o n&uacute;mero de pessoas envolvidas em nossa:</span></td>
               <td class="windowbg2" style="width:20%;vertical-align:top;text-align:right;">' , $contex['sonuyesayisi']['registers'] , '</td>
                </tr>
           
                <tr>           
                    <td class="windowbg2" style="width:80%;vertical-align:top;"><img src="', $settings['images_url'], '/top7.gif" alt="" />
               <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;">Actual n&uacute;mero de visitantes:</span></td>
               <td class="windowbg2" style="width:20%;vertical-align:top;text-align:right;">', $context['num_guests'],'</td>
            </tr>
            <tr>
                <td class="windowbg2" style="width:80%;vertical-align:top;"><img src="', $settings['images_url'], '/top8.gif" alt="" />
               <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;">Actual n&uacute;mero de membros online:</span></td>
               <td class="windowbg2" style="width:20%;vertical-align:top;text-align:right;">', $context['num_users_online'],'</td>
            </tr>
            <tr>
                <td class="windowbg2" style="width:80%;vertical-align:top;"><img src="', $settings['images_url'], '/top9.gif" alt="" />
               <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;">', $txt['most_online_today'], ':</td>
               <td class="windowbg2" style="width:20%;vertical-align:top;text-align:right;">', comma_format($modSettings['mostOnlineToday']), '</td>
                </tr>
            <tr>
                <td class="windowbg2" style="width:80%;vertical-align:top;"><img src="', $settings['images_url'], '/top10.gif" alt="" />
                        <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;">En çok ', timeformat($modSettings['mostDate']), ':</td>
               <td class="windowbg2" style="width:20%;vertical-align:top;text-align:right;">', comma_format($modSettings['mostOnline']), '</td>
                </tr>         
        </table>
   <>';   
    // devamı ......
    // Aeva media top 5
   echo'
   <div id="fragment-11" class="tabs-container tabs-hide">';
   /*
    global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;
    loadLanguage('Aeva');
    @include_once($sourcedir . '/Aeva-Subs.php');
        echo aeva_listM(aeva_getMediaItems(0, 5, 'DESC'), false, '', 0);
      */
   echo'Max 5 N&atilde;o instalado Aeva M&iacute;dia representa&ccedil;&atilde;o
   <>';
    echo'
<><!-- İstatistik 10: BenimProjem.net End -->';
// istaistik10 END: D'ssConnecTed Suppport SMFPT.NET








Se quiser outra forma de apresentacao podera ver este codigo



 
Código: [Seleccione]
// İstatistik10 START: D'ssConnecTed Translate by Candidosa2 SMFPT.NET
        // İstatistik10 START: D'ssConnecTed
    echo'<!-- İstatistik 10: BenimProjem.net Start -->
    <div id="container-3">
    <ul class="tabs-nav">
    <li class="tabs-selected"><a href="#fragment-1"><span>Postes recentes</span></a></li>
        <li class=""><a href="#fragment-2"><span>T&oacute;pico - Mensagem</span></a></li>
        <li class=""><a href="#fragment-3"><span>Leia - Rever</span></a></li>
<li class=""><a href="#fragment-4"><span>Sec&ccedil;&atilde;o - Mixed</span></a></li>
<li class=""><a href="#fragment-5"><span>Online</span></a></li>';

/*    echo'
<li class=""><a href="#fragment-6"><span>Media</span></a></li>';*/
echo'
<li class=""><a href="#fragment-7"><span>Novo membro - Estat&iacute;sticas</span></a></li>';
    echo'
</ul><!-- Tab menü End -->
    <div id="fragment-1" class="tabs-container tabs-hide">
        <table cellspacing="1" width="100%" cellpadding="0"  border="0">
    <tr>
                <td class="titlebg" style="width:35%;vertical-align:top;"><span class="smalltext" style="font-weight: bold;">&nbsp;&nbsp;&nbsp;Mensagem</span></td>
                <td class="titlebg" style="width:30%;vertical-align:top;"><span class="smalltext" style="font-weight: bold;">&nbsp;&nbsp;&nbsp;Remetente</span></td>
                <td class="titlebg" style="width:10%;vertical-align:top;text-align:center;"><span class="smalltext" style="font-weight: bold;">&nbsp;Hit</span></td>
            <td class="titlebg" style="width:25%;vertical-align:top;"><span class="smalltext" style="font-weight: bold;">&nbsp;&nbsp;&nbsp;Hist&oacute;rico</span></td></tr>';


            $ino=1;
    foreach ($context['latest_posts'] as $sonm){
                echo '
<tr>
                <td class="windowbg2" style="width:35%;vertical-align:top;"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><a href="',$sonm['href'],'" title="', $sonm['preview'],'"><span class="smalltext">  ', $sonm['short_subject'], ' </span> </a> </td>
                <td class="windowbg2" style="width:30%;vertical-align:top;"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext"> ', $sonm['poster']['link'],' </span></td>
                <td class="windowbg2" style="width:10%;vertical-align:top;text-align:right;"><span class="smalltext"> ', $sonm['poster']['hit'],' </span><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /></td>
                <td class="windowbg2" style="width:25%;vertical-align:top;"><span class="smalltext"> ', $sonm['time'], ' </span></td>
            </tr>';
$ino++;
}
    echo '
    </table>
    <>
<div id="fragment-2" class="tabs-container tabs-hide">
<table style="width:100%;"><tr><td style="width:50%;">
        <table class="windowbg" style="width:100%;">
    <tr>
                <td class="titlebg w80"><span class="smalltext bold">Top Starters T&oacute;pico</span></td>
                <td class="titlebg w20r"><span class="smalltext bold">T&oacute;pico</span></td>
            </tr>';
            $ino=1;
foreach ($context['top_starters'] as $poster){
            echo '
        <tr>
                <td class="windowbg2" style="width:80%;"> <img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" />
                <span class="smalltext vert"> ', $poster['link'], '</span></td>
                <td class="windowbg2 w20r"><span class="smalltext"> ',$poster['num_topics'], '</span></td>
    </tr>';
                $ino++;
        }
    echo'
        </table></td><td style="width:50%;">
<table class="windowbg" style="width:100%;">
    <tr>
                <td class="titlebg w80"><span class="smalltext bold">Mensagem enviadas por muito</span></td>
                <td class="titlebg w20r"><span class="smalltext bold">Mensagem</span></td>
            </tr>';
            $ino=1;
            foreach ($context['top_posters'] as $poster){
                echo'
    <tr>
                <td class="windowbg2" style="width:80%;">
                <img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" />
                <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;"> ', $poster['link'], '</span></td>
                <td class="windowbg2" style="width:20%;text-align:right;"><span class="smalltext">', $poster['num_posts'], '</span></td>
    </tr>'; 
                $ino++;
        }
    echo'
        </table>
</td></tr></table>
    <>
    <div id="fragment-2" class="tabs-container tabs-hide">
    <table style="width:100%;"><tr><td class="windowbg2" style="width:50%;">
        <table class="windowbg" style="width:100%;">
    <tr>
                <td class="titlebg w80"><span class="smalltext bold">Mensagem enviadas por muito</span></td>
                <td class="titlebg w20r"><span class="smalltext bold">Mensagem</span></td>
            </tr>';
            $ino=1;
            foreach ($context['top_posters'] as $poster){
                echo'
    <tr>
                <td class="windowbg2" style="width:80%;">
                <img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" />
                <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;"> ', $poster['link'], '</span></td>
                <td class="windowbg2" style="width:20%;text-align:right;"><span class="smalltext">', $poster['num_posts'], '</span></td>
    </tr>'; 
                $ino++;
        }
    echo'
        </table>
</td><td class="windowbg2" style="width:50%;">
<table class="windowbg" style="width:100%;">
    <tr>
                <td class="titlebg w80"><span class="smalltext bold"> Os t&oacute;picos mais lidos </span></td>
                <td class="titlebg w20l"><span class="smalltext bold"> leitura </span></td>
            </tr>';
            $ino=1;
foreach ($context['top_topics_views'] as $topic){
        echo '
    <tr>
            <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext vert"> ', $topic['link'], '</span></td>
            <td class="windowbg2 w20r"><span class="smalltext"> ', $topic['num_views'], '</span></td>
</tr>';
        $ino++;
}
    echo'
    </table>
    </td></tr></table>
    <><!-- Son iletiler 10 End -->
<div id="fragment-3" class="tabs-container tabs-hide">
<table style="width:100%;">
<tr>
<td class="windowbg2" style="width:50%;">
        <table class="windowbg" style="width:100%;">
    <tr>
                <td class="titlebg w80"><span class="smalltext bold"> Os t&oacute;picos mais lidos </span></td>
                <td class="titlebg w20l"><span class="smalltext bold"> leitura </span></td>
            </tr>';
            $ino=1;
foreach ($context['top_topics_views'] as $topic){
        echo '
    <tr>
            <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" />
<span class="smalltext vert"> ', $topic['link'], '</span></td>
            <td class="windowbg2 w20r"><span class="smalltext"> ', $topic['num_views'], '</span></td>
</tr>';
        $ino++;
}
    echo'
    </table>
</td><td class="windowbg2" style="width:50%;">
<table class="windowbg" style="width:100%;">
<tr>
                <td class="titlebg w80"><span class="smalltext bold"> Mais comentadas &aacute;rea de t&oacute;pico </span></td>
                <td class="titlebg w20l"><span class="smalltext bold"> Comentar </span></td>
            </tr>';
            $ino=1;
            foreach ($context['top_topics_replies'] as $topic){
            echo'
<tr>
<td class="windowbg2 w80"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" />
            <span class="smalltext vert">  ', $topic['link'], '</span></td>
        <td class="windowbg2 w20r"><span class="smalltext">', $topic['num_replies'], '</span></td>
</tr>';
            $ino++;
            }
    echo'
    </table>
</td>
</tr>
</table>
    <><!-- Yorum Okunan 10 End -->
<div id="fragment-4" class="tabs-container tabs-hide">
    <table style="width:100%;">
<tr>
<td class="windowbg2" style="width:50%;">
        <table class="windowbg" style="width:100%;">
<tr>
                <td class="titlebg w80"><span class="smalltext bold">Melhor Se&ccedil;&atilde;o de Interesses</span></td>
                <td class="titlebg w20l"><span class="smalltext bold">Mensagem</span></td>
            </tr>';
                $ino=1;
            foreach ($context['top_boards'] as $topic){
            echo'
    <tr>
      <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext vert"> ', $topic['link'], '</span></td>
            <td class="windowbg2 w20r"><span class="smalltext">', $topic['num_posts'], '</span></td>
</tr>';
            $ino++;
            }
    echo'
    </table>
</td>
<td class="windowbg2" style="width:50%;">
    <table class="windowbg" style="width:100%;">
    <tr>
                <td class="titlebg w80"><span class="smalltext bold">O m&aacute;ximo misturado</span></td>
                <td class="titlebg w20r"><span class="smalltext bold">Karma</span></td>
            </tr>';
            $ino=1;
        foreach ($context['karma'] as $mem){
        echo '
<tr>
            <td class="windowbg2" style="width:80%; vertical-align:top;"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" />
                <span class="smalltext" style="vertical-align: bottom;margin-bottom:0;"> ',$mem['link'], '</span></td>
            <td class="windowbg2" style="width:20%;text-align:right; vertical-align:top;">
                <span class="smalltext">',$mem['karma'], '</span></td>
</tr>';
        $ino++;
}
    echo'
    </table>
</td>
</tr>
</table>
<><!-- Bölüm - Karma End -->
<div id="fragment-5" class="tabs-container tabs-hide">
    <table class="windowbg" style="width:100%;">
    <tr>
            <td class="titlebg" style="width:50%;"><span class="smalltext bold">&nbsp;&nbsp;Mais tempo online</span></td>
            <td class="titlebg" style="width:50%;text-align:left;">
               <span class="smalltext bold">&nbsp;&nbsp;Tempo</span></td>
    </tr>';
        $ino=1;
foreach ($context['top_time_online'] as $topic){
            echo '
<tr>
            <td class="windowbg2" style="width:50%;vertical-align:top;"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext" style="vertical-align: bottom;margin-bottom:0;"> ', $topic['link'], '</span></td>
            <td class="windowbg2" style="width:50%;vertical-align:top;align:right;"><span class="smalltext" style="text-align:center;"> ', $topic['time_online'], '</span></td>
    </tr>';
        $ino++;
}
    echo'
    </table>
<><!-- Online 10 End -->';
// Aeva media top 5
/*
    echo'
    <div id="fragment-6" class="tabs-container tabs-hide">';
            global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;
            loadLanguage('Aeva');
            @include_once($sourcedir . '/Aeva-Subs.php');
             echo aeva_listM(aeva_getMediaItems(0, 5, 'DESC'), false, '', 0);
    echo'
    <><!-- Aeva Media End -->';
    */


global $db_prefix, $db_connection;
    $sorgu = "SELECT * FROM {$db_prefix}log_activity  ORDER BY date DESC Limit 1";
    $bugunuye = mysql_query($sorgu, $db_connection) or die(mysql_error());
    $contex['sonuyesayisi'] = mysql_fetch_array($bugunuye);
echo'
<div id="fragment-7" class="tabs-container tabs-hide">
<table style="width:100%;"><tr><td style="width:50%;">
<table class="windowbg" style="width:100%;">
    <tr>
                <td class="titlebg w80"><span class="smalltext bold">Boas-vindas aos novos membros.</span></td>
                <td class="titlebg w20r"><span class="smalltext bold">Mensagem</span></td>
</tr>';
            $ino=1;
foreach ($context['new_members'] as $new_member){
                echo '
<tr>
                <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" />
', $new_member['link'], '</td>
                <td class="windowbg2 w20r">', $new_member['num_posts'], '</td>
            </tr>';
            $ino++;
}
    echo'
        </table>
</td><td style="width:50%;">
        <table class="windowbg" style="width:100%;">
    <tr>
                <td class="titlebg" colspan="2" style="width:100%;"><a href="', $scripturl, '?action=stats">
        <span class="smalltext bold">&nbsp;&nbsp;', $txt['forum_stats'], '</span></a>
    </td>
        </tr>
                <tr>
                    <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top1.gif" alt="" />
<span class="smalltext" style="vertical-align: bottom;margin-bottom:0;">Temos um total t&oacute;picos:</span></td>
<td class="windowbg2 w20r">', $context['common_stats']['total_topics'], '</td>
</tr>
<tr>
                    <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top2.gif" alt="" />
<span class="smalltext vert">Total de Coment&aacute;rios:</span></td>
<td class="windowbg2 w20r">', $context['common_stats']['total_posts'], '</td>
</tr>
<tr>
    <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top3.gif" alt="" />
<span class="smalltext vert">O n&uacute;mero de membros do nosso follow-up:</span></td>
<td class="windowbg2 w20r">', $context['common_stats']['total_members'], '</td>
</tr>
<tr>
<td class="windowbg2 w80"><img src="', $settings['images_url'], '/top4.gif" alt="" />
<span class="smalltext vert">Hoje, o n&uacute;mero de t&oacute;picos:</span></td>
<td class="windowbg2 w20r">', $contex['sonuyesayisi']['topics'], '</td>
</tr>
<tr>
    <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top5.gif" alt="" />
<span class="smalltext vert">Hoje, o n&uacute;mero de mensagem de correio:</span></td>
<td class="windowbg2 w20r">', $contex['sonuyesayisi']['posts'], '</td>
</tr>
<tr>
                    <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top6.gif" alt="" />
<span class="smalltext vert">Hoje, o n&uacute;mero de pessoas envolvidas em nossa:</span></td>
<td class="windowbg2 w20r">' , $contex['sonuyesayisi']['registers'] , '</td>
                </tr>

                <tr>
                    <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top7.gif" alt="" />
<span class="smalltext vert">Actual n&uacute;mero de visitantes:</span></td>
<td class="windowbg2 w20r">', $context['num_guests'],'</td>
</tr>
<tr>
    <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top8.gif" alt="" />
<span class="smalltext vert">Actual n&uacute;mero de membros online:</span></td>
<td class="windowbg2 w20r">', $context['num_users_online'],'</td>
</tr>
<tr>
    <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top9.gif" alt="" />
<span class="smalltext vert">', $txt['most_online_today'], ':</td>
<td class="windowbg2 w20r">', comma_format($modSettings['mostOnlineToday']), '</td>
                </tr>
<tr>
    <td class="windowbg2 w80"><img src="', $settings['images_url'], '/top10.gif" alt="" />
                        <span class="smalltext vert">En çok ', timeformat($modSettings['mostDate']), ':</td>
<td class="windowbg2 w20r">', comma_format($modSettings['mostOnline']), '</td>
                </tr>
        </table>
</td></tr></table>
<><!-- İstatistikler End -->
<><!-- İstatistik 10: BenimProjem.net End -->';

// istaistik10 END: D'ssConnecTed Supporte SMFPT.NET
[size=78%]





jquery.tabs.css    Pasta do /css
jquery.tabs-ie.css pasta do /css
jquery.tabs.min.js Pasta do /scripts[/size]
« Última modificação: 07 de Outubro de 2014, 20:27 por candidosa2 »