Yukarı Facebook Twitter Google+ Aşağı

Gönderen Konu: Top 10 istatislik  (Okunma sayısı 1649 defa)

Çevrimdışı orhan

  • Yönetici
  • *
  • İleti: 421
  • Beğeni: 4
  • Karma +21/-1
  • Cinsiyet: Bay
    • Profili Görüntüle
    • webtiryaki.com
Top 10 istatislik
« : 21 Oca 2014, 12:40:03 »
mod bana ait olmamakla birlikte istek üzere sunuyorum yapanin eline saglik



BoardIndex.template.php

bul
Kod: [Seç]
// ]]></script>';
}
altina ekle

Kod: [Seç]
//Wm Top10
    echo '
     <div class="cat_bar">
         <h3 class="catbg">
         ',$txt['forum_stats'],'
      </h3>
   </div>
    <table width="100%">
  <tr>
       <td width="27%" valign="top" style="border:1px solid #ccc;">
       <table width="100%" cellpadding="0" cellspacing="0">
   <tr>
      <td width="100%" align="center" valign="top" style="border-bottom:1px solid #ccc;padding:3px;font-size:11px;">Rasgele Konular</td>
    </tr>
    </table>
       <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
       <td width="100%" valign="top" style="padding:1px;text-transform:capitalize;">';
   global $db_prefix;
   $wm=0;
   $rand=mysql_query("select id_topic from {$db_prefix}topics order by rand() limit 5");
   while($rrow=mysql_fetch_array($rand)){
   $row=mysql_fetch_array(mysql_query("select id_topic,subject from {$db_prefix}messages where id_topic = '".$rrow['id_topic']."'"));
   $wm++;
   $row['subject']=str_replace("Ynt:","",$row['subject']);
   $krow=substr($row['subject'],0,30);
   $ksay=strlen($row['subject']);
   echo '
   <table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
   <tr>
    <td class="top'.$wm.'" valign="top" width="100%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0">';
   if($ksay>30){
   echo $krow.'..';
}
  else{
   echo $row['subject'];
}
    echo '</a></td></tr></table>';
}
echo '
        </td>
      </tr>
  </table>
</td>
       <td width="47%" valign="top" style="border:1px solid #ccc;margin-left:5px;">
       <table width="100%" cellpadding="0" cellspacing="0">
     <tr>';
if($_GET['wm']=="esy"){
     echo '<td width="33%" align="center" valign="top" style="border-right:1px solid #ccc;font-weight:bold;padding:3px;font-size:11px;">';
}
   else{
    echo '
<td width="33%" align="center" valign="top" style="border-right:1px solid #ccc;border-bottom:1px solid #ccc;padding:3px;font-size:11px;">';
}
    echo '
<a href="'.$scripturl.'?wm=esy">En Son Yazylan</a></td>';
if($_GET['wm']=="ecc"){
   echo '
   <td width="33%" align="center" valign="top" style="border-right:1px solid #ccc;font-weight:bold;padding:3px;font-size:11px;">';
}else{
    echo '
<td width="33%" align="center" valign="top" style="border-right:1px solid #ccc;border-bottom:1px solid #ccc;padding:3px;font-size:11px;">';
}
   echo '
   <a href="'.$scripturl.'?wm=ecc">En Çok Cevaplanan</a></td>';
if($_GET['wm']=="ecg"){
   echo '
   <td width="33%" align="center" valign="top" style="font-weight:bold;padding:3px;font-size:11px;">';
}
  else{
   echo '
   <td width="33%" align="center" valign="top" style="border-bottom:1px solid #ccc;padding:3px;font-size:11px;">';
}
   echo '
      <a href="'.$scripturl.'?wm=ecg">En Çok Görüntülenen</a></td>
    </tr>
  </table>
       <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
    <td width="100%" valign="top" style="padding:1px;text-transform:capitalize;">';
global $db_prefix;
if($_GET['wm']=="esy" or !$_GET['wm']=="ecc" or !$_GET['wm']=="ecg"){
$wm=0;
$esy=mysql_query("select id_topic,id_msg,id_member,subject from {$db_prefix}messages order by id_msg desc limit 5");
while($row=mysql_fetch_array($esy)){
$wm++;
$row['subject']=str_replace("Ynt:","",$row['subject']);
$krow=substr($row['subject'],0,45);
$ksay=strlen($row['subject']);
$mname=mysql_fetch_array(mysql_query("select id_member,real_name from {$db_prefix}members where id_member = '".$row['id_member']."'"));
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
  echo '
   <table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
  <tr>
  <td class="top'.$wm.'" valign="top" width="80%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0;msg'.$row['id_msg'].';topicseen#msg'.$row['id_msg'].'">';
  if($ksay>45){
  echo $krow.'..';
}
else{
echo $row['subject'];
}
echo '</a></td>
<td width="20%" align="right" valign="top">'.(!$mname['id_member']?'':'<a href="'.$scripturl.'?action=profile;u='.$mname['id_member'].'">').'<span style="font-weight:normal;color:'.$renk['online_color'].'">'.(!$mname['real_name']?'Ziyaretçi':''.$mname['real_name'].'').'</span>'.(!$mname['id_member']?'':'</a>').'
</td>
</tr></table>';}
}elseif($_GET['wm']=="ecc"){
$wm=0;
$ecc=mysql_query("select id_topic,num_replies,num_views from {$db_prefix}topics order by num_replies desc limit 5");
while($erow=mysql_fetch_array($ecc)){
$row=mysql_fetch_array(mysql_query("select id_topic,subject from {$db_prefix}messages where id_topic = '".$erow['id_topic']."'"));
$wm++;
$row['subject']=str_replace("Ynt:","",$row['subject']);
$krow=substr($row['subject'],0,45);
$ksay=strlen($row['subject']);
echo '<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr>
<td class="top'.$wm.'" valign="top" width="80%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0">';
if($ksay>45){
echo $krow.'..';
}else{
echo $row['subject'];
}
echo '</a></td>
<td width="20%" align="right" valign="top">'.$erow['num_replies'].'</td>
</tr></table>';}
}elseif($_GET['wm']=="ecg"){
$wm=0;
$ecg=mysql_query("select id_topic,num_replies,num_views from {$db_prefix}topics order by num_views desc limit 5");
while($erow=mysql_fetch_array($ecg)){
$row=mysql_fetch_array(mysql_query("select id_topic,subject from {$db_prefix}messages where id_topic = '".$erow['id_topic']."'"));
$wm++;
$row['subject']=str_replace("Ynt:","",$row['subject']);
$krow=substr($row['subject'],0,45);
$ksay=strlen($row['subject']);
echo '<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr>
<td class="top'.$wm.'" valign="top" width="80%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0">';
if($ksay>45){
echo $krow.'..';
}else{
echo $row['subject'];
}
echo '</a></td>
<td width="20%" align="right" valign="top">'.$erow['num_views'].'</td>
</tr></table>';}
}else{
$wm=0;
$esy=mysql_query("select id_topic,id_msg,id_member,subject from {$db_prefix}messages order by id_msg desc limit 5");
while($row=mysql_fetch_array($esy)){
$wm++;
$row['subject']=str_replace("Ynt:","",$row['subject']);
$krow=substr($row['subject'],0,45);
$ksay=strlen($row['subject']);
$mname=mysql_fetch_array(mysql_query("select id_member,real_name from {$db_prefix}members where id_member = '".$row['id_member']."'"));
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
echo '
<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr>
<td class="top'.$wm.'" valign="top" width="80%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0">';
if($ksay>45){
echo $krow.'..';
}else{
echo $row['subject'];
}
echo '</a></td>
<td width="20%" align="right" valign="top">'.(!$mname['id_member']?'':'<a href="'.$scripturl.'?action=profile;u='.$mname['id_member'].'">').'<span style="font-weight:normal;color:'.$renk['online_color'].'">'.(!$mname['real_name']?'Ziyaretçi':''.$mname['real_name'].'').'</span>'.(!$mname['id_member']?'':'</a>').'
</td>
</tr></table>';}
}
echo '
</td>
</tr>
</table>
</td>
<td width="18%" valign="top" style="border:1px solid #ccc;margin-left:5px;">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top" style="border-bottom:1px solid #ccc;padding:3px;font-size:11px;">
<form action="', $scripturl, '" method="get" style="padding:0; margin: 0;">
<select style="width:100%;border:none;" name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 &amp;&amp; this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf(\'?\') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != \'?\' ? 0 : 1);">';
if($_GET['wm']=="ecy"){
echo '<option style="background:#8a9cb0;color:#fff;font-family:Verdana;font-weight:bold;" value="?">En Çok Yazan Üye</option>';


}elseif($_GET['wm']=="eck"){
echo '<option style="background:#8a9cb0;color:#fff;font-family:Verdana;font-weight:bold;" value="?">En Çok Konu Açan Üye</option>';
}elseif($_GET['wm']=="eyu"){
echo '<option style="background:#8a9cb0;color:#fff;font-family:Verdana;font-weight:bold;" value="?">En Yeni Üyeler</option>';
}
echo '
<option value="?wm=ecy">En Çok Yazan Üye</option>
<option value="?wm=eck">En Çok Konu Açan Üye</option>
<option value="?wm=eyu">En Yeni Üyeler</option>
</select>
</form>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top" style="padding:1px;">';
$wm=0;
if($_GET['wm']=="ecy"){
$ecy=mysql_query("select id_member,real_name,posts from {$db_prefix}members order by posts desc limit 5");
while($row=mysql_fetch_array($ecy)){
$wm++;
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
echo '
<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr><td class="top'.$wm.'" valign="top" width="80%">'.(!$row['id_member']?'':'<a href="'.$scripturl.'?action=profile;u='.$row['id_member'].'">').'<span style="color:'.$renk['online_color'].';font-weight:normal;">'.(!$row['real_name']?'Ziyaretçi':''.$row['real_name'].'').'</span>'.(!$row['id_member']?'':'</a>').'</td>
<td width="20%" align="right" valign="top"><span style="font-weight:normal;">'.$row['posts'].'</span></td>
</tr></table>';
}
}elseif($_GET['wm']!="ecy" and $_GET['wm']=="eck" and $_GET['wm']!="eyu"){
$wm=0;
$uyeler=mysql_query("select id_member from smf_members limit 1");
while($row=mysql_fetch_array($uyeler)){
$id_member=$row['id_member'];
$say=mysql_query("select count(id_member_started) as count, id_member_started from smf_topics group by id_member_started order by count desc limit 5");
while($rsay=mysql_fetch_array($say)){
$wm++;
$grup=mysql_fetch_array(mysql_query("Select * from smf_members where id_member = '".$rsay['id_member_started']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from smf_membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from smf_membergroups where id_group = '".$grup['id_group']."'"));
}
$isim=mysql_fetch_array(mysql_query("select id_member,real_name from smf_members where id_member = '".$rsay['id_member_started']."'"));
echo '<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr><td class="top'.$wm.'" valign="top" width="80%">'.(!$isim['real_name']?'':'<a href="'.$scripturl.'?action=profile;u='.$rsay['id_member_started'].'" title="'.$isim['real_name'].'">').'<span style="color:'.$renk['online_color'].';font-weight:normal;">'.(!$isim['real_name']?'Ziyaretçi':''.$isim['real_name'].'').'</span>'.(!$isim['real_name']?'':'</a>').'</td>
<td width="20%" align="right" valign="top"><span style="font-weight:normal;">'.$rsay[0].'</span></td>
</tr></table>';
}
}
}elseif($_GET['wm']!="ecy" and $_GET['wm']!="eck" and $_GET['wm']=="eyu"){
$eyu=mysql_query("select id_member,real_name,posts from {$db_prefix}members order by id_member desc limit 5");
while($row=mysql_fetch_array($eyu)){
$wm++;
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
echo '
<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr><td class="top'.$wm.'" valign="top" width="80%">'.(!$row['real_name']?'':'<a href="'.$scripturl.'?action=profile;u='.$row['id_member'].'">').'<span style="color:'.$renk['online_color'].';font-weight:normal;">'.(!$row['real_name']?'Ziyaretçi':''.$row['real_name'].'').'</span></a></td>
<td width="20%" align="right" valign="top"><span style="font-weight:normal;">'.$row['posts'].'</span></td>
</tr></table>';
}
}else{
$ecy=mysql_query("select id_member,real_name,posts from {$db_prefix}members order by posts desc limit 5");
while($row=mysql_fetch_array($ecy)){
$wm++;
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
echo '
<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr><td class="top'.$wm.'" valign="top" width="80%"><a href="'.$scripturl.'?action=profile;u='.$row['id_member'].'"><span style="color:'.$renk['online_color'].';font-weight:normal;">'.$row['real_name'].'</span></a></td>
<td width="20%" align="right" valign="top"><span style="font-weight:normal;">'.$row['posts'].'</span></td>
</tr></table>';
}
}
echo '
</td>
</tr>
</table>
</td>
</tr>
</table><br />';
//Wm Top10

index.css
uygun bir yere ekleyin
Kod: [Seç]
.wmtop10{
    font-family:Verdana;
    font-size:11px;
    font-weight:bold;
    color:#666;
    padding-bottom:1px;
    border-bottom:1px dashed #999;
    padding-top:2px;
}

.wmtop10:last-child{
    border-bottom:0;
}.wmtop10 a{
    text-decoration:none;
    color:#666;
}
.wmtop10 a:hover{
    text-decoration:underline;
}
.top1{
    background:url(../images/top1.gif) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top2{
    background:url(../images/top2.gif) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top3{
    background:url(../images/top3.gif) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top4{
    background:url(../images/top4.gif) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top5{
    background:url(../images/top5.gif) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top6{
    background:url(../images/top6.gif) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top7{
    background:url(../images/top7.gif) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top8{
    background:url(../images/top8.gif) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top9{
    background:url(../images/top9.gif) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top10{
    background:url(../images/top10.gif) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}

ekteki resmi images kilasorüne atin
« Son Düzenleme: 05 Nis 2016, 18:45:54 Gönderen: Ata »

Çevrimdışı BySaBo

  • Yeni Üye
  • *
  • İleti: 36
  • Beğeni: 1
  • Karma +0/-0
    • Profili Görüntüle
Ynt: Top 10 istatislik
« Yanıtla #1 : 21 Oca 2014, 20:00:03 »
Teşekkürler

benim gibi beyaz tema kullanmayanlar aşağıdaki gibi yaparlarsa daha hoş olur;

Boardindex.templat'de bul;
Kod: [Seç]
// ]]></script>';
}

Altına ekle ;
Kod: [Seç]
//Wm Top10
    echo '
     <div class="cat_bar">
         <h3 class="catbg">
         ',$txt['forum_stats'],'
      </h3>
   </div>
    <table width="100%">
  <tr>
       <td width="27%" valign="top" style="border:1px solid #ccc;">
       <table width="100%" cellpadding="0" cellspacing="0">
   <tr>
      <td width="100%" align="center" valign="top" style="border-bottom:1px solid #ccc;padding:3px;font-size:11px;">Rasgele Konular</td>
    </tr>
    </table>
       <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
       <td width="100%" valign="top" style="padding:1px;text-transform:capitalize;">';
   global $db_prefix;
   $wm=0;
   $rand=mysql_query("select id_topic from {$db_prefix}topics order by rand() limit 5");
   while($rrow=mysql_fetch_array($rand)){
   $row=mysql_fetch_array(mysql_query("select id_topic,subject from {$db_prefix}messages where id_topic = '".$rrow['id_topic']."'"));
   $wm++;
   $row['subject']=str_replace("Ynt:","",$row['subject']);
   $krow=substr($row['subject'],0,30);
   $ksay=strlen($row['subject']);
   echo '
   <table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
   <tr>
    <td class="top'.$wm.'" valign="top" width="100%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0">';
   if($ksay>30){
   echo $krow.'..';
}
  else{
   echo $row['subject'];
}
    echo '</a></td></tr></table>';
}
echo '
        </td>
      </tr>
  </table>
</td>
       <td width="47%" valign="top" style="border:1px solid #ccc;margin-left:5px;">
       <table width="100%" cellpadding="0" cellspacing="0">
     <tr>';
if($_GET['wm']=="esy"){
     echo '<td width="33%" align="center" valign="top" style="border-right:1px solid #ccc;font-weight:bold;padding:3px;font-size:11px;">';
}
   else{
    echo '
<td width="33%" align="center" valign="top" style="border-right:1px solid #ccc;border-bottom:1px solid #ccc;padding:3px;font-size:11px;">';
}
    echo '
<a href="'.$scripturl.'?wm=esy">En Son Yazylan</a></td>';
if($_GET['wm']=="ecc"){
   echo '
   <td width="33%" align="center" valign="top" style="border-right:1px solid #ccc;font-weight:bold;padding:3px;font-size:11px;">';
}else{
    echo '
<td width="33%" align="center" valign="top" style="border-right:1px solid #ccc;border-bottom:1px solid #ccc;padding:3px;font-size:11px;">';
}
   echo '
   <a href="'.$scripturl.'?wm=ecc">En Çok Cevaplanan</a></td>';
if($_GET['wm']=="ecg"){
   echo '
   <td width="33%" align="center" valign="top" style="font-weight:bold;padding:3px;font-size:11px;">';
}
  else{
   echo '
   <td width="33%" align="center" valign="top" style="border-bottom:1px solid #ccc;padding:3px;font-size:11px;">';
}
   echo '
      <a href="'.$scripturl.'?wm=ecg">En Çok Görüntülenen</a></td>
    </tr>
  </table>
       <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
    <td width="100%" valign="top" style="padding:1px;text-transform:capitalize;">';
global $db_prefix;
if($_GET['wm']=="esy" or !$_GET['wm']=="ecc" or !$_GET['wm']=="ecg"){
$wm=0;
$esy=mysql_query("select id_topic,id_msg,id_member,subject from {$db_prefix}messages order by id_msg desc limit 5");
while($row=mysql_fetch_array($esy)){
$wm++;
$row['subject']=str_replace("Ynt:","",$row['subject']);
$krow=substr($row['subject'],0,45);
$ksay=strlen($row['subject']);
$mname=mysql_fetch_array(mysql_query("select id_member,real_name from {$db_prefix}members where id_member = '".$row['id_member']."'"));
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
  echo '
   <table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
  <tr>
  <td class="top'.$wm.'" valign="top" width="80%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0;msg'.$row['id_msg'].';topicseen#msg'.$row['id_msg'].'">';
  if($ksay>45){
  echo $krow.'..';
}
else{
echo $row['subject'];
}
echo '</a></td>
<td width="20%" align="right" valign="top">'.(!$mname['id_member']?'':'<a href="'.$scripturl.'?action=profile;u='.$mname['id_member'].'">').'<span style="font-weight:normal;color:'.$renk['online_color'].'">'.(!$mname['real_name']?'Ziyaretçi':''.$mname['real_name'].'').'</span>'.(!$mname['id_member']?'':'</a>').'
</td>
</tr></table>';}
}elseif($_GET['wm']=="ecc"){
$wm=0;
$ecc=mysql_query("select id_topic,num_replies,num_views from {$db_prefix}topics order by num_replies desc limit 5");
while($erow=mysql_fetch_array($ecc)){
$row=mysql_fetch_array(mysql_query("select id_topic,subject from {$db_prefix}messages where id_topic = '".$erow['id_topic']."'"));
$wm++;
$row['subject']=str_replace("Ynt:","",$row['subject']);
$krow=substr($row['subject'],0,45);
$ksay=strlen($row['subject']);
echo '<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr>
<td class="top'.$wm.'" valign="top" width="80%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0">';
if($ksay>45){
echo $krow.'..';
}else{
echo $row['subject'];
}
echo '</a></td>
<td width="20%" align="right" valign="top">'.$erow['num_replies'].'</td>
</tr></table>';}
}elseif($_GET['wm']=="ecg"){
$wm=0;
$ecg=mysql_query("select id_topic,num_replies,num_views from {$db_prefix}topics order by num_views desc limit 5");
while($erow=mysql_fetch_array($ecg)){
$row=mysql_fetch_array(mysql_query("select id_topic,subject from {$db_prefix}messages where id_topic = '".$erow['id_topic']."'"));
$wm++;
$row['subject']=str_replace("Ynt:","",$row['subject']);
$krow=substr($row['subject'],0,45);
$ksay=strlen($row['subject']);
echo '<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr>
<td class="top'.$wm.'" valign="top" width="80%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0">';
if($ksay>45){
echo $krow.'..';
}else{
echo $row['subject'];
}
echo '</a></td>
<td width="20%" align="right" valign="top">'.$erow['num_views'].'</td>
</tr></table>';}
}else{
$wm=0;
$esy=mysql_query("select id_topic,id_msg,id_member,subject from {$db_prefix}messages order by id_msg desc limit 5");
while($row=mysql_fetch_array($esy)){
$wm++;
$row['subject']=str_replace("Ynt:","",$row['subject']);
$krow=substr($row['subject'],0,45);
$ksay=strlen($row['subject']);
$mname=mysql_fetch_array(mysql_query("select id_member,real_name from {$db_prefix}members where id_member = '".$row['id_member']."'"));
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
echo '
<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr>
<td class="top'.$wm.'" valign="top" width="80%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0">';
if($ksay>45){
echo $krow.'..';
}else{
echo $row['subject'];
}
echo '</a></td>
<td width="20%" align="right" valign="top">'.(!$mname['id_member']?'':'<a href="'.$scripturl.'?action=profile;u='.$mname['id_member'].'">').'<span style="font-weight:normal;color:'.$renk['online_color'].'">'.(!$mname['real_name']?'Ziyaretçi':''.$mname['real_name'].'').'</span>'.(!$mname['id_member']?'':'</a>').'
</td>
</tr></table>';}
}
echo '
</td>
</tr>
</table>
</td>
<td width="18%" valign="top" style="border:1px solid #ccc;margin-left:5px;">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top" style="border-bottom:1px solid #ccc;padding:3px;font-size:11px;">
<form action="', $scripturl, '" method="get" style="padding:0; margin: 0;">
<select style="width:100%;border:none;" name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 &amp;&amp; this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf(\'?\') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != \'?\' ? 0 : 1);">';
if($_GET['wm']=="ecy"){
echo '<option style="background:#8a9cb0;color:#fff;font-family:Verdana;font-weight:bold;" value="?">En Çok Yazan Üye</option>';


}elseif($_GET['wm']=="eck"){
echo '<option style="background:#8a9cb0;color:#fff;font-family:Verdana;font-weight:bold;" value="?">En Çok Konu Açan Üye</option>';
}elseif($_GET['wm']=="eyu"){
echo '<option style="background:#8a9cb0;color:#fff;font-family:Verdana;font-weight:bold;" value="?">En Yeni Üyeler</option>';
}
echo '
<option value="?wm=ecy">En Çok Yazan Üye</option>
<option value="?wm=eck">En Çok Konu Açan Üye</option>
<option value="?wm=eyu">En Yeni Üyeler</option>
</select>
</form>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top" style="padding:1px;">';
$wm=0;
if($_GET['wm']=="ecy"){
$ecy=mysql_query("select id_member,real_name,posts from {$db_prefix}members order by posts desc limit 5");
while($row=mysql_fetch_array($ecy)){
$wm++;
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
echo '
<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr><td class="top'.$wm.'" valign="top" width="80%">'.(!$row['id_member']?'':'<a href="'.$scripturl.'?action=profile;u='.$row['id_member'].'">').'<span style="color:'.$renk['online_color'].';font-weight:normal;">'.(!$row['real_name']?'Ziyaretçi':''.$row['real_name'].'').'</span>'.(!$row['id_member']?'':'</a>').'</td>
<td width="20%" align="right" valign="top"><span style="font-weight:normal;">'.$row['posts'].'</span></td>
</tr></table>';
}
}elseif($_GET['wm']!="ecy" and $_GET['wm']=="eck" and $_GET['wm']!="eyu"){
$wm=0;
$uyeler=mysql_query("select id_member from smf_members limit 1");
while($row=mysql_fetch_array($uyeler)){
$id_member=$row['id_member'];
$say=mysql_query("select count(id_member_started) as count, id_member_started from smf_topics group by id_member_started order by count desc limit 5");
while($rsay=mysql_fetch_array($say)){
$wm++;
$grup=mysql_fetch_array(mysql_query("Select * from smf_members where id_member = '".$rsay['id_member_started']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from smf_membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from smf_membergroups where id_group = '".$grup['id_group']."'"));
}
$isim=mysql_fetch_array(mysql_query("select id_member,real_name from smf_members where id_member = '".$rsay['id_member_started']."'"));
echo '<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr><td class="top'.$wm.'" valign="top" width="80%">'.(!$isim['real_name']?'':'<a href="'.$scripturl.'?action=profile;u='.$rsay['id_member_started'].'" title="'.$isim['real_name'].'">').'<span style="color:'.$renk['online_color'].';font-weight:normal;">'.(!$isim['real_name']?'Ziyaretçi':''.$isim['real_name'].'').'</span>'.(!$isim['real_name']?'':'</a>').'</td>
<td width="20%" align="right" valign="top"><span style="font-weight:normal;">'.$rsay[0].'</span></td>
</tr></table>';
}
}
}elseif($_GET['wm']!="ecy" and $_GET['wm']!="eck" and $_GET['wm']=="eyu"){
$eyu=mysql_query("select id_member,real_name,posts from {$db_prefix}members order by id_member desc limit 5");
while($row=mysql_fetch_array($eyu)){
$wm++;
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
echo '
<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr><td class="top'.$wm.'" valign="top" width="80%">'.(!$row['real_name']?'':'<a href="'.$scripturl.'?action=profile;u='.$row['id_member'].'">').'<span style="color:'.$renk['online_color'].';font-weight:normal;">'.(!$row['real_name']?'Ziyaretçi':''.$row['real_name'].'').'</span></a></td>
<td width="20%" align="right" valign="top"><span style="font-weight:normal;">'.$row['posts'].'</span></td>
</tr></table>';
}
}else{
$ecy=mysql_query("select id_member,real_name,posts from {$db_prefix}members order by posts desc limit 5");
while($row=mysql_fetch_array($ecy)){
$wm++;
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
echo '
<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr><td class="top'.$wm.'" valign="top" width="80%"><a href="'.$scripturl.'?action=profile;u='.$row['id_member'].'"><span style="color:'.$renk['online_color'].';font-weight:normal;">'.$row['real_name'].'</span></a></td>
<td width="20%" align="right" valign="top"><span style="font-weight:normal;">'.$row['posts'].'</span></td>
</tr></table>';
}
}
echo '
</td>
</tr>
</table>
</td>
</tr>
</table><br />';
//Wm Top10

index.css'e ekle;
Kod: [Seç]
.wmtop10{
    font-family:Verdana;
    font-size:11px;
    font-weight:bold;
    color:#666;
    padding-bottom:1px;
    border-bottom:1px dashed #6c6c6c;
    padding-top:2px;
}

.wmtop10:last-child{
    border-bottom:0;
}.wmtop10 a{
    text-decoration:none;
    color:#666;
}
.wmtop10 a:hover{
    text-decoration:underline;
}
.top1{
    background:url(../images/top10/1.png) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top2{
    background:url(../images/top10/2.png) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top3{
    background:url(../images/top10/3.png) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top4{
    background:url(../images/top10/4.png) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top5{
    background:url(../images/top10/5.png) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top6{
    background:url(../images/top10/6.png) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top7{
    background:url(../images/top10/7.png) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top8{
    background:url(../images/top10/8.png) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top9{
    background:url(../images/top10/9.png) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}
.top10{
    background:url(../images/top10/10.png) left no-repeat;
    padding-left:18px;
    margin-top:3px;
}

_____________________________________________________________________

Utf-8 Kullananlar İçin;

Boardindex.templateye.php'ye yukarıdaki yerine aşağıdaki değişikliği yapın

Boardindex.templat'de bul;
Kod: [Seç]
// ]]></script>';
}

altına ekle;
Kod: [Seç]
//Wm Top10
    echo '
     <div class="cat_bar">
         <h3 class="catbg">
         ',$txt['forum_stats'],'
      </h3>
   </div>
    <table width="100%">
  <tr>
       <td width="27%" valign="top" style="border:1px solid #ccc;">
       <table width="100%" cellpadding="0" cellspacing="0">
   <tr>
      <td width="100%" align="center" valign="top" style="border-bottom:1px solid #ccc;padding:3px;font-size:11px;">Rasgele Konular</td>
    </tr>
    </table>
       <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
       <td width="100%" valign="top" style="padding:1px;text-transform:capitalize;">';
   global $db_prefix;
   $wm=0;
   $rand=mysql_query("select id_topic from {$db_prefix}topics order by rand() limit 5");
   while($rrow=mysql_fetch_array($rand)){
   $row=mysql_fetch_array(mysql_query("select id_topic,subject from {$db_prefix}messages where id_topic = '".$rrow['id_topic']."'"));
   $wm++;
   $row['subject']=str_replace("Ynt:","",$row['subject']);
   $krow=substr($row['subject'],0,30);
   $ksay=strlen($row['subject']);
   echo '
   <table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
   <tr>
    <td class="top'.$wm.'" valign="top" width="100%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0">';
   if($ksay>30){
   echo $krow.'..';
}
  else{
   echo $row['subject'];
}
    echo '</a></td></tr></table>';
}
echo '
        </td>
      </tr>
  </table>
</td>
       <td width="47%" valign="top" style="border:1px solid #ccc;margin-left:5px;">
       <table width="100%" cellpadding="0" cellspacing="0">
     <tr>';
if($_GET['wm']=="esy"){
     echo '<td width="33%" align="center" valign="top" style="border-right:1px solid #ccc;font-weight:bold;padding:3px;font-size:11px;">';
}
   else{
    echo '
<td width="33%" align="center" valign="top" style="border-right:1px solid #ccc;border-bottom:1px solid #ccc;padding:3px;font-size:11px;">';
}
    echo '
<a href="'.$scripturl.'?wm=esy">', $txt['en_son_yazilan'], '</a></td>';
if($_GET['wm']=="ecc"){
   echo '
   <td width="33%" align="center" valign="top" style="border-right:1px solid #ccc;font-weight:bold;padding:3px;font-size:11px;">';
}else{
    echo '
<td width="33%" align="center" valign="top" style="border-right:1px solid #ccc;border-bottom:1px solid #ccc;padding:3px;font-size:11px;">';
}
   echo '
   <a href="'.$scripturl.'?wm=ecc">', $txt['en_cok_cevaplanan'], '</a></td>';
if($_GET['wm']=="ecg"){
   echo '
   <td width="33%" align="center" valign="top" style="font-weight:bold;padding:3px;font-size:11px;">';
}
  else{
   echo '
   <td width="33%" align="center" valign="top" style="border-bottom:1px solid #ccc;padding:3px;font-size:11px;">';
}
   echo '
      <a href="'.$scripturl.'?wm=ecg">', $txt['en_cok_goruntulenen'], '</a></td>
    </tr>
  </table>
       <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
    <td width="100%" valign="top" style="padding:1px;text-transform:capitalize;">';
global $db_prefix;
if($_GET['wm']=="esy" or !$_GET['wm']=="ecc" or !$_GET['wm']=="ecg"){
$wm=0;
$esy=mysql_query("select id_topic,id_msg,id_member,subject from {$db_prefix}messages order by id_msg desc limit 5");
while($row=mysql_fetch_array($esy)){
$wm++;
$row['subject']=str_replace("Ynt:","",$row['subject']);
$krow=substr($row['subject'],0,45);
$ksay=strlen($row['subject']);
$mname=mysql_fetch_array(mysql_query("select id_member,real_name from {$db_prefix}members where id_member = '".$row['id_member']."'"));
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
  echo '
   <table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
  <tr>
  <td class="top'.$wm.'" valign="top" width="80%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0;msg'.$row['id_msg'].';topicseen#msg'.$row['id_msg'].'">';
  if($ksay>45){
  echo $krow.'..';
}
else{
echo $row['subject'];
}
echo '</a></td>
<td width="20%" align="right" valign="top">'.(!$mname['id_member']?'':'<a href="'.$scripturl.'?action=profile;u='.$mname['id_member'].'">').'<span style="font-weight:normal;color:'.$renk['online_color'].'">'.(!$mname['real_name']?'Ziyaretçi':''.$mname['real_name'].'').'</span>'.(!$mname['id_member']?'':'</a>').'
</td>
</tr></table>';}
}elseif($_GET['wm']=="ecc"){
$wm=0;
$ecc=mysql_query("select id_topic,num_replies,num_views from {$db_prefix}topics order by num_replies desc limit 5");
while($erow=mysql_fetch_array($ecc)){
$row=mysql_fetch_array(mysql_query("select id_topic,subject from {$db_prefix}messages where id_topic = '".$erow['id_topic']."'"));
$wm++;
$row['subject']=str_replace("Ynt:","",$row['subject']);
$krow=substr($row['subject'],0,45);
$ksay=strlen($row['subject']);
echo '<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr>
<td class="top'.$wm.'" valign="top" width="80%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0">';
if($ksay>45){
echo $krow.'..';
}else{
echo $row['subject'];
}
echo '</a></td>
<td width="20%" align="right" valign="top">'.$erow['num_replies'].'</td>
</tr></table>';}
}elseif($_GET['wm']=="ecg"){
$wm=0;
$ecg=mysql_query("select id_topic,num_replies,num_views from {$db_prefix}topics order by num_views desc limit 5");
while($erow=mysql_fetch_array($ecg)){
$row=mysql_fetch_array(mysql_query("select id_topic,subject from {$db_prefix}messages where id_topic = '".$erow['id_topic']."'"));
$wm++;
$row['subject']=str_replace("Ynt:","",$row['subject']);
$krow=substr($row['subject'],0,45);
$ksay=strlen($row['subject']);
echo '<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr>
<td class="top'.$wm.'" valign="top" width="80%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0">';
if($ksay>45){
echo $krow.'..';
}else{
echo $row['subject'];
}
echo '</a></td>
<td width="20%" align="right" valign="top">'.$erow['num_views'].'</td>
</tr></table>';}
}else{
$wm=0;
$esy=mysql_query("select id_topic,id_msg,id_member,subject from {$db_prefix}messages order by id_msg desc limit 5");
while($row=mysql_fetch_array($esy)){
$wm++;
$row['subject']=str_replace("Ynt:","",$row['subject']);
$krow=substr($row['subject'],0,45);
$ksay=strlen($row['subject']);
$mname=mysql_fetch_array(mysql_query("select id_member,real_name from {$db_prefix}members where id_member = '".$row['id_member']."'"));
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
echo '
<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr>
<td class="top'.$wm.'" valign="top" width="80%"><a title="'.$row['subject'].'" href="'.$scripturl.'?topic='.$row['id_topic'].'.0">';
if($ksay>45){
echo $krow.'..';
}else{
echo $row['subject'];
}
echo '</a></td>
<td width="20%" align="right" valign="top">'.(!$mname['id_member']?'':'<a href="'.$scripturl.'?action=profile;u='.$mname['id_member'].'">').'<span style="font-weight:normal;color:'.$renk['online_color'].'">'.(!$mname['real_name']?'Ziyaretçi':''.$mname['real_name'].'').'</span>'.(!$mname['id_member']?'':'</a>').'
</td>
</tr></table>';}
}
echo '
</td>
</tr>
</table>
</td>
<td width="18%" valign="top" style="border:1px solid #ccc;margin-left:5px;">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top" style="border-bottom:1px solid #ccc;padding:3px;font-size:11px;">
<form action="', $scripturl, '" method="get" style="padding:0; margin: 0;">
<select style="width:100%;border:none;" name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 &amp;&amp; this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf(\'?\') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != \'?\' ? 0 : 1);">';
if($_GET['wm']=="ecy"){
echo '<option style="background:#8a9cb0;color:#fff;font-family:Verdana;font-weight:bold;" value="?">',$txt['en_cok_yazan_uye'],'</option>';


}elseif($_GET['wm']=="eck"){
echo '<option style="background:#8a9cb0;color:#fff;font-family:Verdana;font-weight:bold;" value="?">',$txt['en_cok_konu_acan'],'</option>';
}elseif($_GET['wm']=="eyu"){
echo '<option style="background:#8a9cb0;color:#fff;font-family:Verdana;font-weight:bold;" value="?">',$txt['en_yeni_uye'],'</option>';
}
echo '
<option value="?wm=ecy">',$txt['en_cok_yazan_uye'],'</option>
<option value="?wm=eck">',$txt['en_cok_konu_acan'],'</option>
<option value="?wm=eyu">',$txt['en_yeni_uye'],'</option>
</select>
</form>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top" style="padding:1px;">';
$wm=0;
if($_GET['wm']=="ecy"){
$ecy=mysql_query("select id_member,real_name,posts from {$db_prefix}members order by posts desc limit 5");
while($row=mysql_fetch_array($ecy)){
$wm++;
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
echo '
<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr><td class="top'.$wm.'" valign="top" width="80%">'.(!$row['id_member']?'':'<a href="'.$scripturl.'?action=profile;u='.$row['id_member'].'">').'<span style="color:'.$renk['online_color'].';font-weight:normal;">'.(!$row['real_name']?'Ziyaretçi':''.$row['real_name'].'').'</span>'.(!$row['id_member']?'':'</a>').'</td>
<td width="20%" align="right" valign="top"><span style="font-weight:normal;">'.$row['posts'].'</span></td>
</tr></table>';
}
}elseif($_GET['wm']!="ecy" and $_GET['wm']=="eck" and $_GET['wm']!="eyu"){
$wm=0;
$uyeler=mysql_query("select id_member from smf_members limit 1");
while($row=mysql_fetch_array($uyeler)){
$id_member=$row['id_member'];
$say=mysql_query("select count(id_member_started) as count, id_member_started from smf_topics group by id_member_started order by count desc limit 5");
while($rsay=mysql_fetch_array($say)){
$wm++;
$grup=mysql_fetch_array(mysql_query("Select * from smf_members where id_member = '".$rsay['id_member_started']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from smf_membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from smf_membergroups where id_group = '".$grup['id_group']."'"));
}
$isim=mysql_fetch_array(mysql_query("select id_member,real_name from smf_members where id_member = '".$rsay['id_member_started']."'"));
echo '<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr><td class="top'.$wm.'" valign="top" width="80%">'.(!$isim['real_name']?'':'<a href="'.$scripturl.'?action=profile;u='.$rsay['id_member_started'].'" title="'.$isim['real_name'].'">').'<span style="color:'.$renk['online_color'].';font-weight:normal;">'.(!$isim['real_name']?'Ziyaretçi':''.$isim['real_name'].'').'</span>'.(!$isim['real_name']?'':'</a>').'</td>
<td width="20%" align="right" valign="top"><span style="font-weight:normal;">'.$rsay[0].'</span></td>
</tr></table>';
}
}
}elseif($_GET['wm']!="ecy" and $_GET['wm']!="eck" and $_GET['wm']=="eyu"){
$eyu=mysql_query("select id_member,real_name,posts from {$db_prefix}members order by id_member desc limit 5");
while($row=mysql_fetch_array($eyu)){
$wm++;
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
echo '
<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr><td class="top'.$wm.'" valign="top" width="80%">'.(!$row['real_name']?'':'<a href="'.$scripturl.'?action=profile;u='.$row['id_member'].'">').'<span style="color:'.$renk['online_color'].';font-weight:normal;">'.(!$row['real_name']?'Ziyaretçi':''.$row['real_name'].'').'</span></a></td>
<td width="20%" align="right" valign="top"><span style="font-weight:normal;">'.$row['posts'].'</span></td>
</tr></table>';
}
}else{
$ecy=mysql_query("select id_member,real_name,posts from {$db_prefix}members order by posts desc limit 5");
while($row=mysql_fetch_array($ecy)){
$wm++;
$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$row['id_member']."'"));
if($grup['id_group']==0){
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));
}else{
$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));
}
echo '
<table width="100%" class="wmtop10" cellpadding="0" cellspacing="0">
<tr><td class="top'.$wm.'" valign="top" width="80%"><a href="'.$scripturl.'?action=profile;u='.$row['id_member'].'"><span style="color:'.$renk['online_color'].';font-weight:normal;">'.$row['real_name'].'</span></a></td>
<td width="20%" align="right" valign="top"><span style="font-weight:normal;">'.$row['posts'].'</span></td>
</tr></table>';
}
}
echo '
</td>
</tr>
</table>
</td>
</tr>
</table><br />';
//Wm Top10

index.turkish-utf8.php dosyasında ?> öncesine ekleyin;
Kod: [Seç]
// Top 10 Sitenin Enleri
$txt['en_son_yazilan'] = 'En Son Yazılan';
$txt['en_cok_cevaplanan'] = 'En Çok Cevaplanan';
$txt['en_cok_goruntulenen'] = 'En Çok Görüntülenen';
$txt['en_cok_yazan_uye'] = 'En Çok Yazan Üye';
$txt['en_cok_konu_acan'] = 'En Çok Konu Açan Üye';
$txt['en_yeni_uye'] = 'En Yeni Üyeler';

Aşağıdaki top10 dosyasını images klasörüne atın
« Son Düzenleme: 22 Oca 2014, 00:16:09 Gönderen: BySaBo »

Çevrimdışı BySaBo

  • Yeni Üye
  • *
  • İleti: 36
  • Beğeni: 1
  • Karma +0/-0
    • Profili Görüntüle
Ynt: Top 10 istatislik
« Yanıtla #2 : 21 Oca 2014, 21:46:54 »
Hocam yeni ileti bildirimi size gelsin diye yukarıdaki mesajı editlemeyip yeni ileti yazıyorum;

en sağdaki blokta açılın tablodan değişiklik yapılınca (mesela en yeni üyeler seçilince) sayfa yenileniyor ve boş bir sayfada kalıyor.

sizin yaptığınız siyah temayı kullanıyorum http://oyunfendi.com/vipforum/index.php

Çevrimdışı kimyaci

  • Yeni Üye
  • *
  • İleti: 13
  • Beğeni: 2
  • Karma +0/-0
    • Profili Görüntüle
Ynt: Top 10 istatislik
« Yanıtla #3 : 21 Oca 2014, 23:25:47 »
Bende de aynı hataya yol açıyor.Sayfa yenilenmeden tablar değişebilirse çok güzel olurdu.

Çevrimdışı BySaBo

  • Yeni Üye
  • *
  • İleti: 36
  • Beğeni: 1
  • Karma +0/-0
    • Profili Görüntüle
Ynt: Top 10 istatislik
« Yanıtla #4 : 21 Oca 2014, 23:41:30 »
Sanırım sorun simple portalın kurulmuş olmasından kaynaklanıyor

Bizde linki şu şekilde üretiyor :?action=forum

Olması gereken : index.php?wm=eck

tıklandığında oluşan linki düzeltmeyi denedim ancak doğru tahminlerde bulunamadım sanırım

<option value="?wm=ecy">En Çok Yazan Üye</option>
<option value="?wm=eck">En Çok Konu Açan Üye</option>
<option value="?wm=eyu">En Yeni Üyeler</option>

şunları doğru düzenlemek gerek sanırım
____
Edit:

Evet test ettim simple portal'dan kaynaklanıyor, çözüm linkleri düzenleyebilen yazsın lütfen :)
« Son Düzenleme: 22 Oca 2014, 01:58:26 Gönderen: BySaBo »

Çevrimdışı CeeMoo

  • Yeni Üye
  • *
  • İleti: 4
  • Beğeni: 1
  • Karma +0/-0
    • Profili Görüntüle
Ynt: Top 10 istatislik
« Yanıtla #5 : 29 Oca 2014, 12:24:55 »
Çok güzel oldu Emeğinize sağlık :) nedenini bilmiyorum ama en çok konu açan üyeler kısmı gözükmüyor biraz baktım ama nafile.

Çevrimdışı Cem Adrian

  • Yeni Üye
  • *
  • İleti: 8
  • Beğeni: 1
  • Karma +0/-0
  • Cinsiyet: Bay
  • CemAdrian.ORG
    • Profili Görüntüle
    • Cem Adrian
Ynt: Top 10 istatislik
« Yanıtla #6 : 25 Eyl 2014, 14:01:11 »
Paylaşım için teşekkürler, modifikasyonun kurucusu Ümit yani (Chakkal) aittir.
Sen benim, hiç ısınmayan ellerimsin.

Çevrimdışı snrj

  • Yeni Üye
  • *
  • İleti: 30
  • Beğeni: 0
  • Karma +1/-0
  • Cinsiyet: Bay
  • Smf Forumun Kralı
    • Profili Görüntüle
    • smf destek
Ynt: Top 10 istatislik
« Yanıtla #7 : 21 Eki 2015, 19:09:21 »
ben biraz bu top üzerinde çalıştım ve sonuç alttaki linkte
http://smf.konusal.com/index.php?topic=1073.0

Çevrimdışı orhan

  • Yönetici
  • *
  • İleti: 421
  • Beğeni: 4
  • Karma +21/-1
  • Cinsiyet: Bay
    • Profili Görüntüle
    • webtiryaki.com
Ynt: Top 10 istatislik
« Yanıtla #8 : 22 Eki 2015, 06:41:02 »
ben biraz bu top üzerinde çalıştım ve sonuç alttaki linkte
http://smf.konusal.com/index.php?topic=1073.0

güzel olmuş hocam olmasi gereken buydu saten elinize sağlik