İstatistik - Top 10 v2 REPLİ

Asi Ruh

Kayıtlı Üye
Yapımı

öncelikle admin paneline girip kullanılan temadan aşağıdaki ayarı yapıyoruz (10 dan fazla olursa şekil bozukluğu oluyo)




top1111ob.jpg


sources/boardindex.php yi açıyoruz

Kod:
 [COLOR=#000000]// Find all boards and categories, as well as related information.  This will be sorted by the natural order of boards and categories, which we control.[/COLOR]

üst satıra bunu ekle
Kod:
 [COLOR=#000000]// Statistics such as number of boards, categories, etc. by rallyproco[/COLOR]
[COLOR=red]$result = db_query("[/COLOR]
[COLOR=red]SELECT COUNT(b.ID_BOARD)[/COLOR]
[COLOR=red]FROM {$db_prefix}boards AS b", __FILE__, __LINE__);[/COLOR]
[COLOR=red]list ($context['num_boards']) = mysql_fetch_row($result);[/COLOR]
[COLOR=red]mysql_free_result($result);[/COLOR]
 
[COLOR=red]$result = db_query("[/COLOR]
[COLOR=red]SELECT COUNT(c.ID_CAT)[/COLOR]
[COLOR=red]FROM {$db_prefix}categories AS c", __FILE__, __LINE__);[/COLOR]
[COLOR=red]list ($context['num_categories']) = mysql_fetch_row($result);[/COLOR]
[COLOR=red]mysql_free_result($result);[/COLOR]
 
[COLOR=red]$context['num_members'] = &$modSettings['totalMembers'];[/COLOR]
[COLOR=red]$context['num_posts'] = &$modSettings['totalMessages'];[/COLOR]
[COLOR=red]$context['num_topics'] = &$modSettings['totalTopics'];[/COLOR]
[COLOR=red]$context['most_members_online'] = array([/COLOR]
[COLOR=red]'number' => &$modSettings['mostOnline'],[/COLOR]
[COLOR=red]'date' => timeformat($modSettings['mostDate'])[/COLOR]
[COLOR=red]);[/COLOR]
[COLOR=red]$context['latest_member'] = &$context['common_stats']['latest_member'];[/COLOR]
 
 
[COLOR=red]// Poster top 10.[/COLOR]
 
 
[COLOR=red]$members_result = db_query("[/COLOR]
[COLOR=red]SELECT ID_MEMBER, realName, posts[/COLOR]
[COLOR=red]FROM {$db_prefix}members[/COLOR]
[COLOR=red]ORDER BY posts DESC[/COLOR]
[COLOR=red]LIMIT 10", __FILE__, __LINE__);[/COLOR]
[COLOR=red]$context['top_posters'] = array();[/COLOR]
[COLOR=red]$max_num_posts = 1;[/COLOR]
[COLOR=red]while ($row_members = mysql_fetch_assoc($members_result))[/COLOR]
[COLOR=red]{[/COLOR]
[COLOR=red]$context['top_posters'][] = array([/COLOR]
[COLOR=red]'name' => $row_members['realName'],[/COLOR]
[COLOR=red]'id' => $row_members['ID_MEMBER'],[/COLOR]
[COLOR=red]'num_posts' => $row_members['posts'],[/COLOR]
[COLOR=red]'href' => $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'],[/COLOR]
[COLOR=red]'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'[/COLOR]
[COLOR=red]);[/COLOR]
 
[COLOR=red]if (!empty($modSettings['MemberColorStats']))[/COLOR]
[COLOR=red]$MemberColor_ID_MEMBER[$row_members['ID_MEMBER']] = $row_members['ID_MEMBER'];[/COLOR]
 
[COLOR=red]if ($max_num_posts < $row_members['posts'])[/COLOR]
[COLOR=red]$max_num_posts = $row_members['posts'];[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]mysql_free_result($members_result);[/COLOR]
 
[COLOR=red]foreach ($context['top_posters'] as $i => $poster)[/COLOR]
[COLOR=red]$context['top_posters'][$i]['post_percent'] = round(($poster['num_posts'] * 100) / $max_num_posts);[/COLOR]
 
[COLOR=red]if (!empty($modSettings['latestMember']) && !empty($modSettings['MemberColorLatestMember']))[/COLOR]
[COLOR=red]$MemberColor_ID_MEMBER[$modSettings['latestMember']] = $modSettings['latestMember'];[/COLOR]
 
[COLOR=red]       //Yeah baby give me some colors =).[/COLOR]
[COLOR=red]if (!empty($MemberColor_ID_MEMBER)) {[/COLOR]
[COLOR=red]//Now Load the Missing global :)[/COLOR]
[COLOR=red]global $user_profile;[/COLOR]
[COLOR=red]loadMemberData($MemberColor_ID_MEMBER);[/COLOR]
[COLOR=red]$cmemcolid = NULL;[/COLOR]
[COLOR=red]if (!empty($modSettings['MemberColorStats'])) {[/COLOR]
[COLOR=red]// Poster top 10. [/COLOR]
[COLOR=red]foreach($context['top_posters'] as $key => $value) {[/COLOR]
[COLOR=red]$cmemcolid = $context['top_posters'][$key]['id'];[/COLOR]
[COLOR=red]$profile = &$user_profile[$cmemcolid];[/COLOR]
[COLOR=red]if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))[/COLOR]
[COLOR=red]$context['top_posters'][$key]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]       }[/COLOR]
[COLOR=red]if (!empty($modSettings['latestMember']) && !empty($modSettings['MemberColorLatestMember'])) {[/COLOR]
[COLOR=red]$profile = &$user_profile[$modSettings['latestMember']];[/COLOR]
[COLOR=red]if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))[/COLOR]
[COLOR=red]$context['latest_member']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]// yeni uyeler. by rallyproco[/COLOR]
[COLOR=red]$members_result = db_query("[/COLOR]
[COLOR=red]SELECT ID_MEMBER, realName, posts[/COLOR]
[COLOR=red]FROM {$db_prefix}members[/COLOR]
[COLOR=red]ORDER BY ID_MEMBER DESC[/COLOR]
[COLOR=red]LIMIT 10", __FILE__, __LINE__);[/COLOR]
[COLOR=red]$context['yeniuyeler'] = array();[/COLOR]
[COLOR=red]$max_num_posts = 1;[/COLOR]
[COLOR=red]while ($row_members = mysql_fetch_assoc($members_result))[/COLOR]
[COLOR=red]{[/COLOR]
 
[COLOR=red]$context['yeniuyeler'][] = array([/COLOR]
[COLOR=red]'name' => $row_members['realName'],[/COLOR]
[COLOR=red]'id' => $row_members['ID_MEMBER'],[/COLOR]
[COLOR=red]'num_posts' => $row_members['posts'],[/COLOR]
[COLOR=red]'href' => $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'],[/COLOR]
[COLOR=red]'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'[/COLOR]
[COLOR=red]);[/COLOR]
 
 
[COLOR=red]if (!empty($modSettings['MemberColorStats']))[/COLOR]
[COLOR=red]$MemberColor_ID_MEMBER[$row_members['ID_MEMBER']] = $row_members['ID_MEMBER'];[/COLOR]
 
 
[COLOR=red]if ($max_num_posts < $row_members['posts'])[/COLOR]
[COLOR=red]$max_num_posts = $row_members['posts'];[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]mysql_free_result($members_result);[/COLOR]
 
[COLOR=red]foreach ($context['yeniuyeler'] as $i => $poster)[/COLOR]
[COLOR=red]$context['yeniuyeler'][$i]['post_percent'] = round(($poster['num_posts'] * 100) / $max_num_posts);[/COLOR]
[COLOR=red]//Yeah baby give me some colors =).[/COLOR]
[COLOR=red]if (!empty($MemberColor_ID_MEMBER)) {[/COLOR]
[COLOR=red]//Now Load the Missing global :)[/COLOR]
[COLOR=red]global $user_profile;[/COLOR]
[COLOR=red]loadMemberData($MemberColor_ID_MEMBER);[/COLOR]
[COLOR=red]$cmemcolid = NULL;[/COLOR]
[COLOR=red]if (!empty($modSettings['MemberColorStats'])) {[/COLOR]
[COLOR=red]// repkarma[/COLOR]
[COLOR=red]foreach($context['yeniuyeler'] as $key => $value) {[/COLOR]
[COLOR=red]$cmemcolid = $context['yeniuyeler'][$key]['id'];[/COLOR]
[COLOR=red]$profile = &$user_profile[$cmemcolid];[/COLOR]
[COLOR=red]if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))[/COLOR]
[COLOR=red]$context['yeniuyeler'][$key]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]       }[/COLOR]
[COLOR=red]if (!empty($modSettings['latestMember']) && !empty($modSettings['MemberColorLatestMember'])) {[/COLOR]
[COLOR=red]$profile = &$user_profile[$modSettings['latestMember']];[/COLOR]
[COLOR=red]if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))[/COLOR]
[COLOR=red]$context['latest_member']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]// repkarma top 10. by rallyproco[/COLOR]
 
 
[COLOR=red]$members_result = db_query("[/COLOR]
[COLOR=red]SELECT ID_MEMBER, realName, posts , karmaGood[/COLOR]
[COLOR=red]FROM {$db_prefix}members[/COLOR]
[COLOR=red]ORDER BY karmaGood DESC[/COLOR]
[COLOR=red]LIMIT 10", __FILE__, __LINE__);[/COLOR]
[COLOR=red]$context['repkarma'] = array();[/COLOR]
[COLOR=red]$max_num_posts = 1;[/COLOR]
[COLOR=red]while ($row_members = mysql_fetch_assoc($members_result))[/COLOR]
[COLOR=red]{[/COLOR]
[COLOR=red]$context['repkarma'][] = array([/COLOR]
[COLOR=red]'name' => $row_members['realName'],[/COLOR]
[COLOR=red]'id' => $row_members['ID_MEMBER'],[/COLOR]
[COLOR=red]'karma' => $row_members['karmaGood'],[/COLOR]
[COLOR=red]'num_posts' => $row_members['posts'],[/COLOR]
[COLOR=red]'href' => $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'],[/COLOR]
[COLOR=red]'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'[/COLOR]
[COLOR=red]);[/COLOR]
 
[COLOR=red]if (!empty($modSettings['MemberColorStats']))[/COLOR]
[COLOR=red]$MemberColor_ID_MEMBER[$row_members['ID_MEMBER']] = $row_members['ID_MEMBER'];[/COLOR]
 
[COLOR=red]if ($max_num_posts < $row_members['posts'])[/COLOR]
[COLOR=red]$max_num_posts = $row_members['posts'];[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]mysql_free_result($members_result);[/COLOR]
 
[COLOR=red]foreach ($context['repkarma'] as $i => $poster)[/COLOR]
[COLOR=red]$context['repkarma'][$i]['post_percent'] = round(($poster['num_posts'] * 100) / $max_num_posts);[/COLOR]
[COLOR=red]//Yeah baby give me some colors =).[/COLOR]
[COLOR=red]if (!empty($MemberColor_ID_MEMBER)) {[/COLOR]
[COLOR=red]//Now Load the Missing global :)[/COLOR]
[COLOR=red]global $user_profile;[/COLOR]
[COLOR=red]loadMemberData($MemberColor_ID_MEMBER);[/COLOR]
[COLOR=red]$cmemcolid = NULL;[/COLOR]
[COLOR=red]if (!empty($modSettings['MemberColorStats'])) {[/COLOR]
[COLOR=red]// repkarma[/COLOR]
[COLOR=red]foreach($context['repkarma'] as $key => $value) {[/COLOR]
[COLOR=red]$cmemcolid = $context['repkarma'][$key]['id'];[/COLOR]
[COLOR=red]$profile = &$user_profile[$cmemcolid];[/COLOR]
[COLOR=red]if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))[/COLOR]
[COLOR=red]$context['repkarma'][$key]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]       }[/COLOR]
[COLOR=red]if (!empty($modSettings['latestMember']) && !empty($modSettings['MemberColorLatestMember'])) {[/COLOR]
[COLOR=red]$profile = &$user_profile[$modSettings['latestMember']];[/COLOR]
[COLOR=red]if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))[/COLOR]
[COLOR=red]$context['latest_member']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]// Topic views top 10.[/COLOR]
[COLOR=red]$topic_view_result = db_query("[/COLOR]
[COLOR=red]SELECT m.subject, t.numViews, t.ID_BOARD, t.ID_TOPIC, b.name[/COLOR]
[COLOR=red]FROM ({$db_prefix}topics AS t, {$db_prefix}messages AS m, {$db_prefix}boards AS b)[/COLOR]
[COLOR=red]WHERE m.ID_MSG = t.ID_FIRST_MSG[/COLOR]
[COLOR=red]AND $user_info[query_see_board]" . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? "[/COLOR]
[COLOR=red]AND b.ID_BOARD != $modSettings[recycle_board]" : '') . "[/COLOR]
[COLOR=red]AND t.ID_BOARD = b.ID_BOARD" . (!empty($topic_ids) ? "[/COLOR]
[COLOR=red]AND t.ID_TOPIC IN (" . implode(', ', $topic_ids) . ")" : '') . "[/COLOR]
[COLOR=red]ORDER BY t.numViews DESC[/COLOR]
[COLOR=red]LIMIT 10", __FILE__, __LINE__);[/COLOR]
[COLOR=red]$context['top_topics_views'] = array();[/COLOR]
[COLOR=red]$max_num_views = 1;[/COLOR]
[COLOR=red]while ($row_topic_views = mysql_fetch_assoc($topic_view_result))[/COLOR]
[COLOR=red]{[/COLOR]
[COLOR=red]censorText($row_topic_views['subject']);[/COLOR]
[COLOR=red]$row_topic_views['subject'] = shorten_subject($row_topic_views['subject'], 22);[/COLOR]
[COLOR=red]$context['top_topics_views'][] = array([/COLOR]
[COLOR=red]'id' => $row_topic_views['ID_TOPIC'],[/COLOR]
[COLOR=red]'board' => array([/COLOR]
[COLOR=red]'id' => $row_topic_views['ID_BOARD'],[/COLOR]
[COLOR=red]'name' => $row_topic_views['name'],[/COLOR]
[COLOR=red]'href' => $scripturl . '?board=' . $row_topic_views['ID_BOARD'] . '.0',[/COLOR]
[COLOR=red]'link' => '<a href="' . $scripturl . '?board=' . $row_topic_views['ID_BOARD'] . '.0">' . $row_topic_views['name'] . '</a>'[/COLOR]
[COLOR=red]),[/COLOR]
[COLOR=red]'subject' => $row_topic_views['shorten_subject'],[/COLOR]
[COLOR=red]'num_views' => $row_topic_views['numViews'],[/COLOR]
[COLOR=red]'href' => $scripturl . '?topic=' . $row_topic_views['ID_TOPIC'] . '.0',[/COLOR]
[COLOR=red]'link' => '<a href="' . $scripturl . '?topic=' . $row_topic_views['ID_TOPIC'] . '.0">' . $row_topic_views['subject'] . '</a>'[/COLOR]
[COLOR=red]);[/COLOR]
 
[COLOR=red]if ($max_num_views < $row_topic_views['numViews'])[/COLOR]
[COLOR=red]$max_num_views = $row_topic_views['numViews'];[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]mysql_free_result($topic_view_result);[/COLOR]
 
[COLOR=red]foreach ($context['top_topics_views'] as $i => $topic)[/COLOR]
[COLOR=red]$context['top_topics_views'][$i]['post_percent'] = round(($topic['num_views'] * 100) / $max_num_views);[/COLOR]

Default kullananlar: şimdide themes/default/boardindex.template dosyasını açıyoruz
Çöl Ateşi kullananlar: şimdide themes/col_atesi/boardindex.template dosyasını açıyoruz
hangi temayı kullanıyorsanız onunkini açıyorsunuz

bu kodup bulup hepsini siliyoruz (bo kod son mesajları tablo haline falan getirdiyseniz daha önce biraz farklı olabilir o zaman // This is the "Recent Posts" bar. dan başlıx // Show information about events, birthdays, and holidays on the calendardıra kadar olan kısmı silin )

Kod:
[COLOR=#000000] // This is the "Recent Posts" bar.[/COLOR]
[COLOR=red]if (!empty($settings['number_recent_posts']))[/COLOR]
[COLOR=red]{[/COLOR]
[COLOR=red]echo '[/COLOR]
[COLOR=red]<tr>[/COLOR]
[COLOR=red]<td class="titlebg" colspan="2">', $txt[214], '</td>[/COLOR]
[COLOR=red]</tr>[/COLOR]
[COLOR=red]<tr>[/COLOR]
[COLOR=red]<td class="windowbg" width="20" valign="middle" align="center">[/COLOR]
[COLOR=red]<a href="', $scripturl, '?action=recent"><img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" /></a>[/COLOR]
[COLOR=red]</td>[/COLOR]
[COLOR=red]<td class="windowbg2">';[/COLOR]
 
[COLOR=red]// Only show one post.[/COLOR]
[COLOR=red]if ($settings['number_recent_posts'] == 1)[/COLOR]
[COLOR=red]{[/COLOR]
[COLOR=red]// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)[/COLOR]
[COLOR=red]echo '[/COLOR]
[COLOR=red]<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>[/COLOR]
[COLOR=red]<div class="smalltext">[/COLOR]
[COLOR=red]', $txt[234], ' "', $context['latest_post']['link'], '" ', $txt[235], ' (', $context['latest_post']['time'], ')<br />[/COLOR]
[COLOR=red]</div>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]// Show lots of posts.[/COLOR]
[COLOR=red]elseif (!empty($context['latest_posts']))[/COLOR]
[COLOR=red]{[/COLOR]
[COLOR=red]echo '[/COLOR]
[COLOR=red]<table border="0" width="100%" cellspacing="1" cellpadding="0" class="bordercolor">[/COLOR]
[COLOR=red]<tr>[/COLOR]
[COLOR=red]<th class="windowbg" align="left" width="42%">Konu</th>[/COLOR]
[COLOR=red]<th class="windowbg" align="left" width="12%">Gönderen</th>[/COLOR]
[COLOR=red]<th class="windowbg" align="left" width="25%">Bölüm</th>[/COLOR]
[COLOR=red]<th class="windowbg" align="left" width="21%">Tarih</th>[/COLOR]
[COLOR=red]</tr>';[/COLOR]
 
 
[COLOR=red]/* Each post in latest_posts has:[/COLOR]
[COLOR=red]board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),[/COLOR]
[COLOR=red]subject, short_subject (shortened with...), time, link, and href. */[/COLOR]
[COLOR=red]foreach ($context['latest_posts'] as $post)[/COLOR]
[COLOR=red]echo '[/COLOR]
 
[COLOR=red]<tr>[/COLOR]
 
[COLOR=red]<td class="windowbg2" valign="middle" width="42%"><font style="font-size: 8pt">', $post['link'], '</font></td>[/COLOR]
[COLOR=red]<td class="windowbg2" valign="middle" width="12%"><font style="font-size: 8pt">', $post['poster']['link'], '</font></td>[/COLOR]
[COLOR=red]<td class="windowbg2" valign="middle" width="25%"><font style="font-size: 8pt">', $post['board']['link'], '</font></td>[/COLOR]
[COLOR=red]<td class="windowbg2" valign="middle" width="21%"><font style="font-size: 8pt">', $post['time'], '</font></td>[/COLOR]
 
[COLOR=red]</tr>';[/COLOR]
[COLOR=red]echo '[/COLOR]
[COLOR=red]</table>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]echo '[/COLOR]
[COLOR=red]</td>[/COLOR]
[COLOR=red]</tr>';[/COLOR]
[COLOR=red]        }[/COLOR]

daha sonra bo kodu bulup
Kod:
[COLOR=#000000]// Here's where the "Info Center" starts...[/COLOR]

üst satırına bu kodu ekleyin
Kod:
[COLOR=#000000] // istatistik top 10...by rallyproco[/COLOR]
 
[COLOR=red]echo ' [/COLOR]
[COLOR=red]  <br><div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>[/COLOR]
[COLOR=red]  <table border="0" width="100%" cellspacing="1" cellpadding="2" class="bordercolor">  <tr>[/COLOR]
[COLOR=red]   <td width="100%" colspan="4" class="catbg" height="24">[/COLOR]
[COLOR=red]   <font color="#FFFFFF"><b>İstatistikler - Top 10</b></font></td>[/COLOR]
[COLOR=red] </tr>[/COLOR]
[COLOR=red]<tr class="titlebg">[/COLOR]
[COLOR=red]<td width="20%"><font style="font-size: 8pt">En Hızlı Üyeler</font></td>[/COLOR]
[COLOR=red]   <td width="20%"><font style="font-size: 8pt">En Yeni Üyeler</font></td>[/COLOR]
 
[COLOR=red]<td width="28%"><font style="font-size: 8pt">En Paylaşımcı Üyeler </font></td>[/COLOR]
[COLOR=red]<td width="32%"><font style="font-size: 8pt">Son Mesajlar</font></td>[/COLOR]
[COLOR=red]</tr>[/COLOR]
[COLOR=red]<tr class="windowbg2">[/COLOR]
[COLOR=red]<td width="20%" valign="top"><table width="100%"><tr>[/COLOR]
 
[COLOR=red]<td width="60%" class="windowbg2"><b><font style="font-size: 8pt">Üye:</font></b></td><td width="40%" class="windowbg2" align="right"><b><font style="font-size: 8pt">Mesaj:</font></b></td>[/COLOR]
[COLOR=red]</tr><tr>[/COLOR]
[COLOR=red]';[/COLOR]
[COLOR=red]foreach ($context['top_posters'] as $poster)[/COLOR]
[COLOR=red]{[/COLOR]
[COLOR=red]echo '[/COLOR]
 
 
 
[COLOR=red]<td width="60%" class="windowbg2"><font style="font-size: 8pt">', $poster['link'], '</font></td>[/COLOR]
 
[COLOR=red]<td width="40%" class="windowbg2" align="right"><font style="font-size: 8pt">',$poster['num_posts'], '</font></td>[/COLOR]
 
 
[COLOR=red]</tr>';  [/COLOR]
 
[COLOR=red]} echo '</table></td>[/COLOR]
[COLOR=red]<td width="20%" valign="top">   [/COLOR]
 
[COLOR=red]<table width="100%"><tr>[/COLOR]
 
[COLOR=red]<td width="60%" class="windowbg2"><b><font style="font-size: 8pt">Üye:</font></b></td><td width="40%" class="windowbg2" align="right"><b><font style="font-size: 8pt">Mesaj:</font></b></td>[/COLOR]
[COLOR=red]</tr><tr>[/COLOR]
[COLOR=red]';[/COLOR]
[COLOR=red]foreach ($context['yeniuyeler'] as $poster)[/COLOR]
[COLOR=red]{[/COLOR]
[COLOR=red]echo '[/COLOR]
 
 
 
[COLOR=red]<td width="60%" class="windowbg2" valign="top"><font style="font-size: 8pt">',$poster['link'], '</font></td>[/COLOR]
 
[COLOR=red]<td width="40%" class="windowbg2" align="right" valign="top"><font style="font-size: 8pt">',$poster['num_posts'], '</font></td>[/COLOR]
 
 
[COLOR=red]</tr>';  [/COLOR]
 
[COLOR=red]} echo '</table>[/COLOR]
[COLOR=red]</td>[/COLOR]
 
 
[COLOR=red]<td width="28%" valign="top">   [/COLOR]
 
[COLOR=red]<table width="100%"><tr>[/COLOR]
 
[COLOR=red]<td width="50%" class="windowbg2"><b><font style="font-size: 8pt">Üye:</font></b></td><td width="30%" class="windowbg2"><b><font style="font-size: 8pt">Derece:</font></b></td><td width="20%" class="windowbg2" align="right"><b><font style="font-size: 8pt">Rep:</font></b></td>[/COLOR]
[COLOR=red]</tr><tr>[/COLOR]
[COLOR=red]';[/COLOR]
[COLOR=red]foreach ($context['repkarma'] as $poster)[/COLOR]
[COLOR=red]{[/COLOR]
[COLOR=red]echo '[/COLOR]
 
 
 
[COLOR=red]<td width="50%" class="windowbg2" valign="top"><font style="font-size: 8pt">',$poster['link'],'</font></td>';[/COLOR]
 
 
[COLOR=red]if($poster['karma'] <= 0) {[/COLOR]
[COLOR=red]echo '<td width="30%" class="windowbg2" ></td>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]elseif($poster['karma'] <= 5) {[/COLOR]
[COLOR=red]echo '<td width="30%" class="windowbg2" ><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /></td>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]elseif ($poster['karma'] <= 10) {[/COLOR]
[COLOR=red]echo'<td width="30%" class="windowbg2" ><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /></td>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]elseif ($poster['karma'] <= 20) {[/COLOR]
[COLOR=red]echo'<td width="30%" class="windowbg2" ><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /></td>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]elseif ($poster['karma'] <= 35) {[/COLOR]
[COLOR=red]echo'<td width="30%" class="windowbg2" ><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /></td>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]elseif ($poster['karma'] <= 55) {[/COLOR]
[COLOR=red]echo'<td width="30%" class="windowbg2" ><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /></td>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]elseif ($poster['karma'] <= 80) {[/COLOR]
[COLOR=red]echo'<td width="30%" class="windowbg2" ><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /></td>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]elseif ($poster['karma'] <= 110) {[/COLOR]
[COLOR=red]echo'<td width="30%" class="windowbg2" ><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /></td>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]elseif ($poster['karma'] <= 145) {[/COLOR]
[COLOR=red]echo'<td width="30%" class="windowbg2" ><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /></td>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]elseif ($poster['karma'] >= 185) {[/COLOR]
[COLOR=red]echo'<td width="30%" class="windowbg2" ><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /></td>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]echo'[/COLOR]
 
[COLOR=red]<td width="20%" class="windowbg2" align="right" valign="top"><font style="font-size: 8pt">',$poster['karma'], '</font></td>[/COLOR]
 
 
[COLOR=red]</tr>';  [/COLOR]
 
[COLOR=red]} echo '</table>[/COLOR]
 
[COLOR=red]</td>[/COLOR]
[COLOR=red]<td width="32%" valign="top">';[/COLOR]
 
[COLOR=red]// This is the "Recent Posts" bar.[/COLOR]
[COLOR=red]if (!empty($settings['number_recent_posts']))[/COLOR]
[COLOR=red]{[/COLOR]
 
 
[COLOR=red]// Only show one post.[/COLOR]
[COLOR=red]if ($settings['number_recent_posts'] == 1)[/COLOR]
[COLOR=red]{[/COLOR]
[COLOR=red]// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)[/COLOR]
[COLOR=red]echo '[/COLOR]
[COLOR=red]<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>[/COLOR]
[COLOR=red]<div class="smalltext">[/COLOR]
[COLOR=red]', $txt[234], ' "', $context['latest_post']['link'], '" ', $txt[235], ' (', $context['latest_post']['time'], ')<br />[/COLOR]
[COLOR=red]</div>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]// Show lots of posts.[/COLOR]
[COLOR=red]elseif (!empty($context['latest_posts']))[/COLOR]
[COLOR=red]{[/COLOR]
[COLOR=red]echo '[/COLOR]
[COLOR=red]<table width="100%" >[/COLOR]
[COLOR=red]<tr class="windowbg2">[/COLOR]
[COLOR=red]<td width="42%"><b><font style="font-size: 8pt">Konu:</font></b></td>[/COLOR]
[COLOR=red]<td width="22%" align="right"><b><font style="font-size: 8pt">Gönderen:</font></b></td>[/COLOR]
[COLOR=red]';[/COLOR]
 
 
[COLOR=red]/* Each post in latest_posts has:[/COLOR]
[COLOR=red]board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),[/COLOR]
[COLOR=red]subject, short_subject (shortened with...), time, link, and href. */[/COLOR]
[COLOR=red]foreach ($context['latest_posts'] as $post)[/COLOR]
[COLOR=red]echo '[/COLOR]
 
[COLOR=red]<tr>[/COLOR]
 
[COLOR=red]<td class="windowbg2" valign="middle" width="42%"><font style="font-size: 8pt"><a href="',$post['href'],'">', $post['short_subject'], '</font></a></td>[/COLOR]
[COLOR=red]<td class="windowbg2" valign="top" width="22%" align="right"><font style="font-size: 8pt">', $post['poster']['link'], '</font></td>[/COLOR]
 
 
[COLOR=red]</tr>';[/COLOR]
[COLOR=red]echo '[/COLOR]
[COLOR=red]</table>';[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]echo '[/COLOR]
[COLOR=red]</td>[/COLOR]
[COLOR=red]</tr></table></div>';[/COLOR]
[COLOR=red]        }[/COLOR]

bunlarıda images'e atın


 
bayigram takipçi satın al instagram beğeni satın al instagram takipçi satın al tiktok takipçi satın al Buy Followers bugün haber
vozol
Geri
Üst