Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 538
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 nuke için sağ tarafta kay..
(24051 okuma, 13 yanıt)
 php hata yardım lüffen..
(9591 okuma, 2 yanıt)
 Virüs..
(7425 okuma, 1 yanıt)
 php-nuke Den Kayıp Yapmad..
(26344 okuma, 18 yanıt)
 Yeni 1 Tema yükledim böyL..
(10052 okuma, 5 yanıt)
 Türkçe KArakter Hatası :S..
(11699 okuma, 7 yanıt)
 Bir modülün admin file'ın..
(5568 okuma, 1 yanıt)
 Herhangi Bir Site Hostund..
(6631 okuma, 2 yanıt)
 sql hata veriyor..
(4984 okuma, 0 yanıt)
 Avatar yüklemede hata ver..
(6121 okuma, 1 yanıt)
 Konu başlıkları boyutu..
(5558 okuma, 1 yanıt)
 Resimli Menü Block Sorunu..
(13412 okuma, 9 yanıt)
 Üye kayıt olurken boşluk..
(12104 okuma, 9 yanıt)
 Aynı mysql'u kullanan bir..
(12316 okuma, 8 yanıt)
 video stream için bi iste..
(5149 okuma, 0 yanıt)
 siir bölümünde ilginc bir..
(5286 okuma, 1 yanıt)
 facebook hayranı ol blogu..
(14431 okuma, 7 yanıt)
 facebook'ta rss..
(5002 okuma, 1 yanıt)
 Center Block Sorunu..
(7035 okuma, 3 yanıt)
 Forum Yedeği Yardım..
(6410 okuma, 2 yanıt)
 Resim Göstermeme Sorunu..
(6481 okuma, 2 yanıt)
 Flashchat kaldırma..
(5644 okuma, 1 yanıt)
 Dergi tasarım..
(4598 okuma, 0 yanıt)
 Forum konusuna resim ekle..
(5955 okuma, 1 yanıt)
 html destek-yardım..
(9944 okuma, 7 yanıt)
 Temayı Sola Dayayıp, Dara..
(11005 okuma, 8 yanıt)
 Amanav Manşet Haber Yorum..
(15922 okuma, 15 yanıt)
 Haber resmi çok büyük çık..
(9977 okuma, 6 yanıt)
 Ip ve Domain Girişi..
(4572 okuma, 0 yanıt)
 Üye olurken noktalama isa..
(6059 okuma, 2 yanıt)
 Site ana sayfası çok geç ..
(5658 okuma, 1 yanıt)
 merhabalar..
(4910 okuma, 1 yanıt)
 emlak sitesi hakkında..
(10842 okuma, 7 yanıt)
 DinleTr Scriptinin Hatası..
(6044 okuma, 2 yanıt)
 Şeritli resimler Bloğu..
(9861 okuma, 7 yanıt)
 facebook duvar yazısı..
(5252 okuma, 1 yanıt)
 Radyo İstek Bölümü..
(12348 okuma, 11 yanıt)
 Php-Nuke 8.1 Kurulum Soru..
(8019 okuma, 5 yanıt)
 üye olunca aktifleştirme ..
(12041 okuma, 12 yanıt)
 php nuke tema..
(5304 okuma, 2 yanıt)
 bos sayfa nasil olusturur..
(7512 okuma, 4 yanıt)
 Resim Galersi Ve Ziyaretç..
(8235 okuma, 5 yanıt)
 DinleTr Scripti artık çal..
(9867 okuma, 7 yanıt)
 Phpnuke etiket sistemi...
(21041 okuma, 20 yanıt)
 tree menu..
(6916 okuma, 3 yanıt)
 sitem üye girişlerini kab..
(10898 okuma, 9 yanıt)
 Windows Hostta Nuke Sitey..
(6550 okuma, 3 yanıt)
 Pm Gönderiminde Sorun..
(4495 okuma, 1 yanıt)
 üyeyi sildim forumda izi ..
(6842 okuma, 3 yanıt)
 Üyeler arasi e-mail gönde..
(4341 okuma, 0 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - yorumlarin siralamasini degistirmek
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


yorumlarin siralamasini degistirmek

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> Php Nuke Sorunlarınız
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
atakanxx
Mesaj: 200+
Mesaj: 200+





Kayıt: Jan 09, 2009
Mesajlar: 226
Konum: yozgat/Almanya

MesajTarih: 2009-09-03, 17:31:43    Mesaj konusu: yorumlarin siralamasini degistirmek Alıntıyla Cevap Gönder

php nuke 8.0 kullaniyorum.news modülünde gelen yorumlar eskiler en üste gelecek sekilde siralaniyor.bunu en son gelenler üste gelecek sekilde nasil tersine cevirebilirim?bazi nuke sürümlerinde eskiler basa yeniler basa diye secenek var ama bende bu olmadigi icin soruyorum
yardimci olursaniz sevinirim tesekkürler.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder E-posta gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-05-09, 23:13:52    Mesaj konusu: Forum Arası Reklamlar


Başa dön
ugurekinci
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Sep 06, 2007
Mesajlar: 1313
Konum: Nevşehir

MesajTarih: 2009-09-03, 18:34:35    Mesaj konusu: Alıntıyla Cevap Gönder

tam olarak kod sistemini bilmiyorum 8,0 ın fakat News modulu içindeki comments.php dosyasından değiştireeceğin kesin... bi bak kdolarına anlarsın zaten...
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder E-posta gönder
atakanxx
Mesaj: 200+
Mesaj: 200+





Kayıt: Jan 09, 2009
Mesajlar: 226
Konum: yozgat/Almanya

MesajTarih: 2009-09-03, 18:38:44    Mesaj konusu: Alıntıyla Cevap Gönder

ugurekinci evet kardes ordan ama hangi kodlar suan bilmiyorum.hangi kod olduguna dair bir ipucu olsa kendim halletmeye calisacagim.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder E-posta gönder
ugurekinci
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Sep 06, 2007
Mesajlar: 1313
Konum: Nevşehir

MesajTarih: 2009-09-03, 18:39:31    Mesaj konusu: Alıntıyla Cevap Gönder

dediğim gibi hayatımda 7,6 hariç hiç bi surum kullanmadım kodlarını bi koy bakım..
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder E-posta gönder
atakanxx
Mesaj: 200+
Mesaj: 200+





Kayıt: Jan 09, 2009
Mesajlar: 226
Konum: yozgat/Almanya

MesajTarih: 2009-09-03, 18:58:56    Mesaj konusu: Alıntıyla Cevap Gönder

Kod:
<php>$links[$i]</a>", "title='$hrefs[$i]'> $links[$i]</a>$href", $comment);
      }
   }
   return($comment);
}

function modone() {
   global $admin, $moderate, $module_name, $sid, $prefix, $db;
   $artsid = intval($sid);
   $comnum = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_stories WHERE sid='$artsid' AND comments!='0'"));
   if ($comnum != 0) {
      if(((isset($admin)) AND ($moderate == 1)) || ($moderate==2)) echo "<form action=\"modules.php?name=$module_name&file=comments\" method=\"post\">";
   }
}

function modtwo($tid, $score, $reason) {
   global $admin, $user, $moderate, $reasons, $prefix, $db, $sid, $c o o k i e, $userinfo;
   $artsid = intval($sid);
   $tid = intval($tid);
   $comnum = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_stories WHERE sid='$artsid' AND comments!='0'"));
   if ($comnum != 0) {
      $whoisath = $db->sql_fetchrow($db->sql_query("SELECT name FROM ".$prefix."_comments WHERE tid='$tid'"));
      c o o k i edecode($user);
      if((((isset($admin)) AND ($moderate == 1)) || ($moderate == 2)) AND ($user)) {
         if (strtolower($c o o k i e[1]) == strtolower($whoisath['name'])) {
            echo " | <select>";
            echo "<option>$reasons[0]</option>\n";
            echo "</select>";
         } else {
            echo " | <select>";
            for($i=0; $i</option>sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_stories WHERE sid='$artsid' AND comments!='0'"));
   if ($comnum != 0) {
      if((((is_admin($admin)) AND ($moderate == 1)) || ($moderate==2)) AND ($user)) {
                  // Quake - start
        getusrinfo($user);
          if (!isset($mode) OR empty($mode)) {
            if(isset($userinfo['umode'])) {
              $mode = $userinfo['umode'];
            } else {
              $mode = "thread";
            }
          }
          if (!isset($order) OR empty($order)) {
            if(isset($userinfo['uorder'])) {
              $order = $userinfo['uorder'];
            } else {
              $order = 0;
            }
          }
          if (!isset($thold) OR empty($thold)) {
            if(isset($userinfo['thold'])) {
              $thold = $userinfo['thold'];
            } else {
              $thold = 0;
            }
          }
          // Quake - end
        $form = "<input>";
        $form .= "<input>";
        $form .= "<input>";
        $form .= "<input>";
            $form .= "<input><br>";
            echo $form;

          OpenTable();
          echo "<center><font>"._COMMENTSMODERATION."</font><br><br>"._CLICKTOMODERATE."<br><br>";
          echo "<input></form></center>";
          CloseTable();
       }
   }
}

function nocomm() {
   OpenTable();
   echo "<center><font>"._NOCOMMENTSACT."</font></center>";
   CloseTable();
}

function navbar($sid, $title, $thold, $mode, $order) {
   global $user, $bgcolor1, $bgcolor2, $textcolor1, $textcolor2, $anonpost, $prefix, $db, $module_name, $admin, $pid, $userinfo, $c o o k i e;
   $sid = intval($sid);
   $title = filter($title, "nohtml");
                  c o o k i edecode($user);
                  getusrinfo($user);
                  if (!isset($mode) OR empty($mode)) {
                    if(isset($userinfo['umode'])) {
                      $mode = $userinfo['umode'];
                    } else {
                      $mode = "thread";
                    }
                  }
                  if (!isset($order) OR empty($order)) {
                    if(isset($userinfo['uorder'])) {
                      $order = $userinfo['uorder'];
                    } else {
                      $order = 0;
                    }
                  }
                  if (!isset($thold) OR empty($thold)) {
                    if(isset($userinfo['thold'])) {
                      $thold = $userinfo['thold'];
                    } else {
                      $thold = 0;
                    }
                  }
   $query = $db->sql_query("SELECT * FROM ".$prefix."_comments WHERE sid='$sid' AND aktif='E' ");
   if(!$query) {
      $count = 0;
   } else {
      $count = $db->sql_numrows($query);
   }
        $sid = intval($sid);
        $query = $db->sql_query("SELECT title FROM ".$prefix."_stories WHERE sid='$sid'");
        list($un_title) = $db->sql_fetchrow($query);
   if(!isset($thold)) {
      $thold=0;
   }
   echo "\n\n<COMMENTS>\n\n";
        echo "<a name="comments\"></a>\n";
   OpenTable();
   echo "<table>\n";
   if($title) {
      echo "<tr><td><font>\"$un_title\" | ";
      if(is_user($user)) {
         echo "<a href="modules.php?name=Your_Account&amp;op=editcomm\"><font>"._CONFIGURE."</font></a>";
      } else {
         echo "<a href="modules.php?name=Your_Account\"><font>"._LOGINCREATE."</font></a>";
      }
      if(($count==1)) {
         echo " | <B>$count</B> "._COMMENT."";
      } else {
         echo " | <B>$count</B> "._COMMENTS."";
      }
      if ($count > 0 AND is_active("Search")) {
         echo " | <a href='modules.php?name=Search&type=comments&sid=$sid'>"._SEARCHDIS."</a>";
      }
      echo "</font></td></tr>\n";
   }
   echo "<tr><td>\n";
   if ($anonpost==1 OR is_user($user)) {
      echo "<form action=\"modules.php?name=$module_name&amp;file=comments\" method=\"post\">"
      ."<input>"
      ."<input>"
      ."<input>"
      ."</td></form></tr>";
   }
   echo "<tr><td><font>"._COMMENTSWARNING."</font></td></tr></table>"
   ."\n\n<COMMENTS>\n\n";
   CloseTable();
   if ($anonpost == 0 AND !is_user($user)) {
      echo "<br>";
      OpenTable();
      echo "<center>"._NOANONCOMMENTS."</center>";
      CloseTable();
   }
}

function DisplayKids ($tid, $mode, $order=0, $thold=0, $level=0, $dummy=0, $tblwidth=99) {
   global $datetime, $user, $c o o k i e, $bgcolor1, $reasons, $anonymous, $anonpost, $commentlimit, $prefix, $textcolor2, $db, $module_name, $user_prefix, $userinfo, $c o o k i e;
   $tid = intval($tid);
   $comments = 0;
   c o o k i edecode($user);
   getusrinfo($user);
                  if (!isset($mode) OR empty($mode)) {
                    if(isset($userinfo['umode'])) {
                      $mode = $userinfo['umode'];
                    } else {
                      $mode = "thread";
                    }
                  }
                  if (!isset($order) OR empty($order)) {
                    if(isset($userinfo['uorder'])) {
                      $order = $userinfo['uorder'];
                    } else {
                      $order = 0;
                    }
                  }
                  if (!isset($thold) OR empty($thold)) {
                    if(isset($userinfo['thold'])) {
                      $thold = $userinfo['thold'];
                    } else {
                      $thold = 0;
                    }
                  }
   $result = $db->sql_query("SELECT tid, pid, sid, date, name, email, host_name, subject, comment, score, reason FROM ".$prefix."_comments WHERE pid='$tid' AND aktif='E' ORDER BY date, tid");
   if ($mode == 'nested') {
      /* without the tblwidth variable, the tables run of the screen with netscape */
      /* in nested mode in long threads so the text can't be read. */
      while ($row = $db->sql_fetchrow($result)) {
         $r_tid = intval($row['tid']);
         $r_pid = intval($row['pid']);
         $r_sid = intval($row['sid']);
         $r_date = $row['date'];
         $r_name = filter($row['name'], "nohtml");
         $r_email = filter($row['email'], "nohtml");
         $r_host_name = filter($row['host_name'], "nohtml");
         $r_subject = filter($row['subject'], "nohtml");
         $r_comment = filter($row['comment']);
         $r_score = intval($row['score']);
         $r_reason = intval($row['reason']);
         if($r_score >= $thold) {
            if (!isset($level)) {
            } else {
               if (!$comments) {
                  echo "<ul>";
                  $tblwidth -= 5;
               }
            }
            $comments++;
            if (!eregi("[a-z0-9]",$r_name)) $r_name = $anonymous;
            if (!eregi("[a-z0-9]",$r_subject)) $r_subject = "["._NOSUBJECT."]";
            // HIJO enter hex color between first two appostrophe for second alt bgcolor
            $r_bgcolor = ($dummy%2)?"":"#E6E6D2";
            echo "<a name="$r_tid\">";
            echo "<table><tr><td>";
            formatTimestamp($r_date);
            if ($r_email) {
               echo "<b>$r_subject</b> <font>";
               if($userinfo['noscore'] == 0) {
                  echo "("._SCORE." $r_score";
                  if($r_reason>0) echo ", $reasons[$r_reason]";
                  echo "";
               }
               echo "<br>"._BY." <a href="mailto:$r_email\">$r_name</a> <font><b>($r_email)</b></font> "._ON." $datetime";
            } else {
               echo "<b>$r_subject</b> <font>";
               if($userinfo['noscore'] == 0) {
                  echo "("._SCORE." $r_score";
                  if($r_reason>0) echo ", $reasons[$r_reason]";
                  echo "";
               }
               echo "<br>"._BY." $r_name "._ON." $datetime";
            }
            if ($r_name != $anonymous) {
               $row2 = $db->sql_fetchrow($db->sql_query("SELECT user_id FROM ".$user_prefix."_users WHERE username='$r_name'"));
               $r_uid = intval($row2['user_id']);
               echo "<br>(<a href="modules.php?name=Your_Account&amp;op=userinfo&amp;username=$r_name\">"._USERINFO."</a> ";
                                        if(is_active("Private_Messages")) {
                                          echo "| <a href="modules.php?name=Private_Messages&amp;mode=post&amp;u=$r_uid\">"._SENDAMSG."</a>) ";
                    }
                    echo "";
                                }
            $row_url = $db->sql_fetchrow($db->sql_query("SELECT user_website FROM ".$user_prefix."_users WHERE username='$r_name'"));
            $url = filter($row_url['user_website'], "nohtml");
            if ($url != "http://" AND !empty($url) AND stripos_clone($url, "http://")) { echo "<a href="$url\" target="new\">$url</a> "; }
            echo "</font></td></tr><tr><td>";
            $options = "";
            $options .= "&mode=".$mode;
            $options .= "&order=".$order;
            $options .= "&thold=".$thold;
            if((isset($userinfo['commentmax'])) AND (strlen($r_comment) > $userinfo['commentmax'])) echo substr("$r_comment", 0, $userinfo['commentmax'])."<br><br><b><a href="modules.php?name=$module_name&amp;file=comments&amp;sid=$r_sid&amp;tid=$r_tid$options\">"._READREST."</a></b>";
            elseif(strlen($r_comment) > $commentlimit) echo substr("$r_comment", 0, $commentlimit)."<br><br><b><a href="modules.php?name=$module_name&amp;file=comments&amp;sid=$r_sid&amp;tid=$r_tid$options\">"._READREST."</a></b>";
            else echo $r_comment;
            echo "</td></tr></table><br><br>";
            if ($anonpost==1 OR is_admin($admin) OR is_user($user)) {
            echo "<font>  <a href="modules.php?name=$module_name&amp;file=comments&amp;op=Reply&amp;pid=$r_tid&amp;sid=$r_sid$options\">"._REPLY."</a>";
            }
            modtwo($r_tid, $r_score, $r_reason);
            echo " ]</font><br><br>";
            DisplayKids($r_tid, $mode, $order, $thold, $level+1, $dummy+1, $tblwidth);
         }
      }
   } elseif ($mode == 'flat') {
      while ($row = $db->sql_fetchrow($result)) {
         $r_tid = intval($row['tid']);
         $r_pid = intval($row['pid']);
         $r_sid = intval($row['sid']);
         $r_date = $row['date'];
         $r_name = filter($row['name'], "nohtml");
         $r_email = filter($row['email'], "nohtml");
         $r_host_name = filter($row['host_name'], "nohtml");
         $r_subject = filter($row['subject'], "nohtml");
         $r_comment = filter($row['comment']);
         $r_score = intval($row['score']);
         $r_reason = intval($row['reason']);
         if($r_score >= $thold) {
            if (!eregi("[a-z0-9]",$r_name)) $r_name = $anonymous;
            if (!eregi("[a-z0-9]",$r_subject)) $r_subject = "["._NOSUBJECT."]";
            echo "<a name="$r_tid\">";
            echo "<hr><table><tr><td>";
            formatTimestamp($r_date);
            if ($r_email) {
               echo "<b>$r_subject</b> <font>";
               if($userinfo['noscore'] == 0) {
                  echo "("._SCORE." $r_score";
                  if($r_reason>0) echo ", $reasons[$r_reason]";
                  echo "";
               }
               echo "<br>"._BY." <a href="mailto:$r_email\">$r_name</a> <font><b>($r_email)</b></font> "._ON." $datetime";
            } else {
               echo "<b>$r_subject</b> <font>";
               if($userinfo['noscore'] == 0) {
                  echo "("._SCORE." $r_score";
                  if($r_reason>0) echo ", $reasons[$r_reason]";
                  echo "";
               }
               echo "<br>"._BY." $r_name "._ON." $datetime";
            }
            if ($r_name != $anonymous) {
               $row3 = $db->sql_fetchrow($db->sql_query("SELECT user_id FROM ".$user_prefix."_users WHERE username='$r_name'"));
               $ruid = intval($row3['user_id']);
               echo "<br>(<a href="modules.php?name=Your_Account&amp;op=userinfo&amp;username=$r_name\">"._USERINFO."</a> | <a href="modules.php?name=Private_Messages&amp;mode=post&amp;u=$ruid\">"._SENDAMSG."</a>) ";
            }
            $row_url2 = $db->sql_fetchrow($db->sql_query("SELECT user_website FROM ".$user_prefix."_users WHERE username='$r_name'"));
            $url = filter($row_url2['user_website'], "nohtml");
            if ($url != "http://" AND !empty($url) AND stripos_clone($url, "http://")) { echo "<a href="$url\" target="new\">$url</a> "; }
            echo "</font></td></tr><tr><td>";
            $options = "";
            $options .= "&mode=".$mode;
            $options .= "&order=".$order;
            $options .= "&thold=".$thold;
            if((isset($userinfo['commentmax'])) AND (strlen($r_comment) > $userinfo['commentmax'])) echo substr("$r_comment", 0, $userinfo['commentmax'])."<br><br><b><a href="modules.php?name=$module_name&amp;file=comments&amp;sid=$r_sid&amp;tid=$r_tid$options\">"._READREST."</a></b>";
            elseif(strlen($r_comment) > $commentlimit) echo substr("$r_comment", 0, $commentlimit)."<br><br><b><a href="modules.php?name=$module_name&amp;file=comments&amp;sid=$r_sid&amp;tid=$r_tid$options\">"._READREST."</a></b>";
            else echo $r_comment;
            echo "</td></tr></table><br><br>";
            if ($anonpost==1 OR is_admin($admin) OR is_user($user)) {
               echo "<font> [ <a href="modules.php?name=$module_name&amp;file=comments&amp;op=Reply&amp;pid=$r_tid&amp;sid=$r_sid&amp;mode=$mode&amp;order=$order&amp;thold=$thold\">"._REPLY."</a>";
            }
            modtwo($r_tid, $r_score, $r_reason);
            echo " </font><br><br>";
            DisplayKids($r_tid, $mode, $order, $thold);
         }
      }
   } else {
      while ($row = $db->sql_fetchrow($result)) {
         $r_tid = intval($row['tid']);
         $r_pid = intval($row['pid']);
         $r_sid = intval($row['sid']);
         $r_date = $row['date'];
         $r_name = filter($row['name'], "nohtml");
         $r_email = filter($row['email'], "nohtml");
         $r_host_name = filter($row['host_name'], "nohtml");
         $r_subject = filter($row['subject'], "nohtml");
         $r_comment = filter($row['comment']);
         $r_score = intval($row['score']);
         $r_reason = intval($row['reason']);
         if($r_score >= $thold) {
            if (!isset($level)) {
            } else {
               if (!$comments) {
                  echo "<ul>";
               }
            }
            $comments++;
            if (!eregi("[a-z0-9]",$r_name)) $r_name = $anonymous;
            if (!eregi("[a-z0-9]",$r_subject)) $r_subject = "["._NOSUBJECT."]";
            formatTimestamp($r_date);
            $options = "";
            $options .= "&mode=".$mode;
            $options .= "&order=".$order;
            $options .= "&thold=".$thold;
            echo "<li><font><a href="modules.php?name=$module_name&amp;file=comments&amp;op=showreply&amp;tid=$r_tid&amp;sid=$r_sid&amp;pid=$r_pid$options#$r_tid\">$r_subject</a> "._BY." $r_name "._ON." $datetime</font><br>";
            DisplayKids($r_tid, $mode, $order, $thold, $level+1, $dummy+1);
         }
      }
   }
   if ($level AND $comments) {
      echo "</ul>";
   }
}

function DisplayBabies ($tid, $level=0, $dummy=0) {
   global $datetime, $anonymous, $prefix, $db, $module_name, $userinfo, $c o o k i e, $user;
   c o o k i edecode($user);
   getusrinfo($user);
   $tid = intval($tid);
   $comments = 0;
   $result = $db->sql_query("SELECT tid, pid, sid, date, name, email, host_name, subject, comment, score, reason FROM ".$prefix."_comments WHERE pid='$tid' AND aktif='E' ORDER BY date, tid");
   while ($row = $db->sql_fetchrow($result)) {
      $r_tid = intval($row['tid']);
      $r_pid = intval($row['pid']);
      $r_sid = intval($row['sid']);
      $r_date = $row['date'];
      $r_name = filter($row['name'], "nohtml");
      $r_email = filter($row['email'], "nohtml");
      $r_host_name = filter($row['host_name'], "nohtml");
      $r_subject = filter($row['subject'], "nohtml");
      $r_comment = filter($row['comment']);
      $r_score = intval($row['score']);
      $r_reason = intval($row['reason']);
      if (isset($level) AND !$comments) {
        echo "<ul>";
      }
      $comments++;
      if (!eregi("[a-z0-9]",$r_name)) { $r_name = $anonymous; }
      if (!eregi("[a-z0-9]",$r_subject)) { $r_subject = ""._NOSUBJECT."]"; }
      formatTimestamp($r_date);
                $options = "";
                 $options .= "&mode=".$mode;
           $options .= "&order=".$order;
           $options .= "&thold=".$thold;
      echo "<a href="modules.php?name=$module_name&amp;file=comments&amp;op=showreply&amp;tid=$r_tid$options\">$r_subject</a></font><font> "._BY." $r_name "._ON." $datetime<br>";
      DisplayBabies($r_tid, $level+1, $dummy+1);
   }
   if ($level AND $comments) {
      echo "</ul>";
   }
}

function DisplayTopic ($sid, $pid=0, $tid=0, $mode="thread", $order=0, $thold=0, $level=0, $nokids=0) {
   global $title, $bgcolor1, $bgcolor2, $bgcolor3, $hr, $user, $datetime, $c o o k i e, $admin, $commentlimit, $anonymous, $reasons, $anonpost, $foot1, $foot2, $foot3, $foot4, $prefix, $acomm, $articlecomm, $db, $module_name, $nukeurl, $admin_file, $user_prefix, $userinfo;
   $sid = intval($sid);
   $pid = intval($pid);
   $tid = intval($tid);
   if (defined('NUKE_FILE')) {
      global $title, $bgcolor1, $bgcolor2, $bgcolor3;
   } else {
      global $title, $bgcolor1, $bgcolor2, $bgcolor3;
      include_once("header.php");
   }
   if ($pid!=0) {
      include_once("header.php");
   }
   $count_times = 0;
   c o o k i edecode($user);
   getusrinfo($user);
   $q = "SELECT tid, pid, sid, date, name, email, host_name, subject, comment, score, reason FROM ".$prefix."_comments WHERE sid='$sid' and pid='$pid' AND aktif='E' ";
   if(!empty($thold)) {
      $q .= " AND score>='$thold'";
   } else {
      $q .= " AND score>='0'";
   }
   if ($order==1) $q .= " ORDER BY date DESC";
   if ($order==2) $q .= " ORDER BY score DESC";
   $something = $db->sql_query($q);
   $num_tid = $db->sql_numrows($something);
   if ($acomm == 1) {
      nocomm();
      return;
   }
   if (($acomm == 0) AND ($articlecomm == 1)) {
      navbar($sid, $title, $thold, $mode, $order);
   }
   modone();
   while ($count_times <num_tid>sql_fetchrow($something);
      $tid = intval($row_q['tid']);
      $pid = intval($row_q['pid']);
      $sid = intval($row_q['sid']);
      $date = $row_q['date'];
      $c_name = filter($row_q['name'], "nohtml");
      $email = filter($row_q['email'], "nohtml");
      $host_name = filter($row_q['host_name'], "nohtml");
      $subject = filter($row_q['subject'], "nohtml");
      $comment = filter($row_q['comment']);
      $score = intval($row_q['score']);
      $reason = intval($row_q['reason']);
      $karma = $db->sql_fetchrow($db->sql_query("SELECT karma FROM ".$user_prefix."_users WHERE username='$c_name'"));
      $karma = intval($karma['karma']);
      if (is_admin($admin)) {
         if ($karma == 1) {
            $karma = "<img src=\"images/karma/1.gif\" border=\"0\" alt=\""._KARMALOW."\" title=\""._KARMALOW."\">&nbsp;";
         } elseif ($karma == 2) {
            $karma = "<img src=\"images/karma/2.gif\" border=\"0\" alt=\""._KARMABAD."\" title=\""._KARMABAD."\">&nbsp;";
         } elseif ($karma == 3) {
            $karma = "<img src=\"images/karma/3.gif\" border=\"0\" alt=\""._KARMADEVIL."\" title=\""._KARMADEVIL."\">&nbsp;";
         } else {
            $karma = "";   
         }
      } else {
         $karma = "";   
      }
      if (empty($c_name)) { $c_name = $anonymous; }
      if (empty($subject)) { $subject = "["._NOSUBJECT."]"; }
      echo "<a name="$tid\"></a>";
      echo "<table><tr><td>";
      formatTimestamp($date);
      if ($email) {
         echo "<b>$subject</b> <font>";
         if($userinfo['noscore'] == 0) {
            echo ""._SCORE." $score";
            if($reason>0) echo ", $reasons[$reason]";
            echo "";
         }
         echo "<br>"._BY." <a href="mailto:$email\">$c_name</a> <b>($email)</b> "._ON." $datetime";
      } else {
         echo "<b>$subject</b> <font>";
         if($userinfo['noscore'] == 0) {
            
            if($reason>0) echo ", $reasons[$reason]";
            echo "";
         }
         echo "<br>"._BY." $c_name "._ON." $datetime";
      }

      /* If you are admin you can see the Poster IP address */
      /* with this you can see who is flaming you...*/

      $journal = "";
      if (is_active("Journal")) {
         $row = $db->sql_fetchrow($db->sql_query("SELECT jid FROM ".$prefix."_journal WHERE aid='$c_name' AND status='yes' ORDER BY pdate,jid DESC LIMIT 0,1"));
         $jid = intval($row['jid']);
         if (!empty($jid) AND isset($jid)) {
            $journal = " | <a href="modules.php?name=Journal&amp;file=display&amp;jid=$jid\">"._JOURNAL."</a>";
         } else {
            $journal = "";
         }
      }
      if ($c_name != $anonymous) {
         $row2 = $db->sql_fetchrow($db->sql_query("SELECT user_id FROM ".$user_prefix."_users WHERE username='$c_name'"));
         $r_uid = intval($row2['user_id']);
         echo "<br>(<a href="modules.php?name=Your_Account&amp;op=userinfo&amp;username=$c_name\">"._USERINFO."</a> ";
                        if(is_active("Private_Messages")) {
                          echo "| <a href="modules.php?name=Private_Messages&amp;mode=post&amp;u=$r_uid\">"._SENDAMSG."</a>";
                        }
                        echo "$journal) ";
      }
      $row_url = $db->sql_fetchrow($db->sql_query("SELECT user_website FROM ".$user_prefix."_users WHERE username='$c_name'"));
      $url = filter($row_url['user_website'], "nohtml");
      if ($url != "http://" AND !empty($url) AND stripos_clone($url, "http://")) { echo "<a href="$url\" target="new\">$url</a> "; }

      if(is_admin($admin)) {
         $row3 = $db->sql_fetchrow($db->sql_query("SELECT host_name FROM ".$prefix."_comments WHERE tid='$tid'"));
         $host_name = filter($row3['host_name'], "nohtml");
         echo "<br><b>(IP: $host_name)</b> $karma";
      }
      echo "</font></td></tr><tr><td>";
                $options = "";
                 $options .= "&mode=".$mode;
           $options .= "&order=".$order;
           $options .= "&thold=".$thold;
      if((isset($userinfo['commentmax'])) AND (strlen($comment) > $userinfo['commentmax'])) echo substr($comment, 0, $userinfo['commentmax'])."<br><br><b><a href="modules.php?name=$module_name&amp;file=comments&amp;sid=$r_sid&amp;tid=$r_tid$options\">"._READREST."</a></b>";
      elseif(strlen($comment) > $commentlimit) echo substr($comment, 0, $commentlimit)."<br><br><b><a href="modules.php?name=$module_name&amp;file=comments&amp;sid=$sid&tid=$tid$options\">"._READREST."</a></b>";
      else echo $comment;
      echo "</td></tr></table><br><br>";
      if ($anonpost==1 OR is_admin($admin) OR is_user($user)) {
         echo "<font>  <a href="modules.php?name=$module_name&amp;file=comments&amp;op=Reply&amp;pid=$tid&amp;sid=$sid$options\">"._REPLY."</a>";
      }
      if ($pid != 0) {
         $row4 = $db->sql_fetchrow($db->sql_query("SELECT pid FROM ".$prefix."_comments WHERE tid='$pid'"));
         $erin = intval($row4['pid']);
         echo " | <a href="modules.php?name=$module_name&amp;file=comments&amp;sid=$sid&amp;pid=$erin$options\">"._PARENT."</a>";
      }
      modtwo($tid, $score, $reason);

      if(is_admin($admin)) {
         echo " | <a href="">"._DELETE."</a> ]</font><br><br>";
      } elseif ($anonpost != 0 OR is_admin($admin) OR is_user($user)) {
         echo " __________________________________</font><br><br>";
      }

      DisplayKids($tid, $mode, $order, $thold, $level);
      echo "</ul>";
      if($hr) echo "<hr>";
      $count_times += 1;
      CloseTable();
   }
   modthree($sid, $mode, $order, $thold);
   if ($pid==0) {
      return array($sid, $pid, $subject);

   } else {
      include("footer.php");
   }
}

function singlecomment($tid, $sid, $mode, $order, $thold) {
   global $module_name, $user, $c o o k i e, $datetime, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $admin, $anonpost, $prefix, $textcolor2, $db;
   include("header.php");
   c o o k i edecode($user);
   getusrinfo($user);
   $sid = intval($sid);
   $tid = intval($tid);
   $row = $db->sql_fetchrow($db->sql_query("SELECT date, name, email, subject, comment, score, reason FROM ".$prefix."_comments WHERE tid='$tid' AND sid='$sid' AND aktif='E'"));
   $date = $row['date'];
   $name = filter($row['name'], "nohtml");
   $email = filter($row['email'], "nohtml");
   $subject = filter($row['subject'], "nohtml");
   $comment = filter($row['comment']);
   $score = intval($row['score']);
   $reason = intval($row['reason']);
   $titlebar = "<b>$subject</b>";
   if(empty($name)) $name = $anonymous;
   if(empty($subject)) $subject = "["._NOSUBJECT."]";
   modone();
   OpenTable();
   echo "<table><tr><td>";
   formatTimestamp($date);
   if($email) echo "<b>$subject</b> <font>("._SCORE." $score)<br>"._BY." <a href="mailto:$email\"><font>$name</font></a> <font><b>($email)</b></font> "._ON." $datetime";
   else echo "<b>$subject</b> <font>("._SCORE." $score)<br>"._BY." $name "._ON." $datetime";
   echo "</td></tr><tr><td>$comment</td></tr></table><br><br>";
   if ($anonpost==1 OR is_admin($admin) OR is_user($user)) {
                $options = "";
                 $options .= "&mode=".$mode;
           $options .= "&order=".$order;
           $options .= "&thold=".$thold;
      echo "<font> [ <a href="modules.php?name=$module_name&amp;file=comments&amp;op=Reply&amp;pid=$tid&amp;sid=$sid$options\">"._REPLY."</a> | <a href="modules.php?name=$module_name&amp;file=article&amp;sid=$sid$options\">"._ROOT."</a>";
   }
   modtwo($tid, $score, $reason);
   echo " ";
   modthree($sid, $mode, $order, $thold);
   CloseTable();
   include("footer.php");
}

function reply($pid, $sid, $mode, $order, $thold) {
   //include("config.php");  // globalized - Quake
   include("header.php");
   global $prefix, $module_name, $user, $c o o k i e, $datetime, $bgcolor1, $bgcolor2, $bgcolor3, $db, $anonpost, $anonymous, $admin;
   c o o k i edecode($user);
   getusrinfo($user);
   $sid = intval($sid);
   $pid = intval($pid);
   if ($anonpost == 0 AND !is_user($user)) {
      OpenTable();
      echo "<center><font><b>"._COMMENTREPLY."</b></font></center>";
      CloseTable();
      echo "<br>";
      OpenTable();
      echo "<center>"._NOANONCOMMENTS."<br><br>"._GOBACK."</center>";
      CloseTable();
   } else {
      if ($pid != 0) {
         $row = $db->sql_fetchrow($db->sql_query("SELECT date, name, email, subject, comment, score FROM ".$prefix."_comments WHERE tid='$pid' AND aktif='E' "));
         $date = $row['date'];
         $name = filter($row['name'], "nohtml");
         $email = filter($row['email'], "nohtml");
         $subject = filter($row['subject'], "nohtml");
         $comment = filter($row['comment']);
         $score = intval($row['score']);
      } else {
         $row2 = $db->sql_fetchrow($db->sql_query("SELECT time, title, hometext, bodytext, informant, notes FROM ".$prefix."_stories WHERE sid='$sid'"));
         $date = $row2['time'];
         $subject = filter($row2['title'], "nohtml");
         $temp_comment = filter($row2['hometext']);
         $comment2 = filter($row2['bodytext']);
         $name = filter($row2['informant'], "nohtml");
         $notes = filter($row2['notes']);
      }
      if(empty($comment)) {   
         $comment = $temp_comment."<br><br>$comment2";
      }
      OpenTable();
      echo "<center><font><b>"._COMMENTREPLY."</b></font></center>";
      CloseTable();
      echo "<br>";
      OpenTable();
      if (empty($name)) $name = $anonymous;
      if (empty($subject)) $subject = "["._NOSUBJECT."]";
      formatTimestamp($date);
      echo "<b>$subject</b> <font>";
      if (!empty($temp_comment)) echo"("._SCORE." $score)";
      if (!empty($email)) {
         echo "<br>"._BY." <a href="mailto:$email\">$name</a> <font><b>($email)</b></font> "._ON." $datetime";
      } else {
         echo "<br>"._BY." $name "._ON." $datetime";
      }
      echo "<br><br>$comment<br><br>";
      if ($pid == 0) {
         if (!empty($notes)) {
            echo "<b>"._NOTE."</b> <i>$notes</i><br><br>";
         } else {
            echo "";
         }
      }
      if (!isset($pid) || !isset($sid)) { echo "Something is not right. This message is just to keep things from messing up down the road"; exit(); }
      if ($pid == 0) {
         $row3 = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories WHERE sid='$sid'"));
         $subject = filter($row3['title'], "nohtml");
      } else {
         $row4 = $db->sql_fetchrow($db->sql_query("SELECT subject FROM ".$prefix."_comments WHERE tid='$pid'"));
         $subject = filter($row4['subject'], "nohtml");
      }
      CloseTable();
      echo "<br>";
      OpenTable();
      echo "<form action=\"modules.php?name=$module_name&amp;file=comments\" method=\"post\">";
      echo "<font><b>"._YOURNAME."</b></font> ";
      if (is_user($user)) {
         c o o k i edecode($user);
         echo "<a href="modules.php?name=Your_Account\">$c o o k i e[1]</a> <font>[ <a href="modules.php?name=Your_Account&amp;op=logout\">"._LOGOUT."</a> ]</font><br><br>";
      } else {
         echo "<font>";
         echo "  <a href="modules.php?name=Your_Account\">"._NEWUSER."</a> <br><br>";
      }
      echo "<font><b>"._SUBJECT.":</b></font><br>";
      if (!stripos_clone($subject,"Re:")) $subject = " ".substr()."";
      echo "<input><br><br>";
      echo "<font><b>"._UCOMMENT.":</b></font><br>"
      ."<textarea></textarea><br>";
      if ($nuke_editor == 0) {
      
          while (list($key,) = each($AllowableHTML)) echo " &lt;".$key."&gt;";
          echo "</font><br><br>";
      } else {
         echo ""._HTMLNOTALLOWED."</font><br><br>";
      }
      if (is_user($user) AND ($anonpost == 1)) { echo "<input> "._POSTANON."<br>"; }
                  if (!isset($mode) OR empty($mode)) {
                    if(isset($userinfo['umode'])) {
                      $mode = $userinfo['umode'];
                    } else {
                      $mode = "thread";
                    }
                  }
                  if (!isset($order) OR empty($order)) {
                    if(isset($userinfo['uorder'])) {
                      $order = $userinfo['uorder'];
                    } else {
                      $order = 0;
                    }
                  }
                  if (!isset($thold) OR empty($thold)) {
                    if(isset($userinfo['thold'])) {
                      $thold = $userinfo['thold'];
                    } else {
                      $thold = 0;
                    }
                  }

      echo "<input>\n"
      ."<input>\n"
      ."<input>\n"
      ."<input>\n"
      ."<input>\n"
      ."<input> "._GOBACK."\n"
      ."</font></form>\n";
      CloseTable();
   }
   include("footer.php");
}

function replyPreview ($pid, $sid, $subject, $comment, $xanonpost, $mode, $order, $thold) {
  global $module_name, $user, $c o o k i e, $AllowableHTML, $anonymous, $anonpost, $userinfo;
   include("header.php");
   c o o k i edecode($user);
   getusrinfo($user);
   $sid = intval($sid);
   $pid = intval($pid);
   OpenTable();
   echo "<center><font><b>"._COMREPLYPRE."</b></font></center>";
   CloseTable();
   echo "<br>";
   OpenTable();
   c o o k i edecode($user);
   $subject = filter($subject, "nohtml", 0, preview);
   $comment = filter($comment);
   if (!isset($pid) OR !isset($sid)) {
      die(_NOTRIGHT);
   }
   echo "<b>$subject</b>";
   echo "<br><font>"._BY." ";
   if (is_user($user)) {
      echo $c o o k i e[1];
   } else {
      echo $anonymous;
   }
   echo " "._ONN."</font><br><br>";
   echo $comment;
   CloseTable();
   echo "<br>";
   OpenTable();
   echo "<form action=\"modules.php?name=$module_name&amp;file=comments\" method=\"post\"><font><b>"._YOURNAME.":</b></font> ";
   if (is_user($user)) {
      echo "<a href="modules.php?name=Your_Account\">$c o o k i e[1]</a> <font>[ <a href="modules.php?name=Your_Account&amp;op=logout\">"._LOGOUT."</a> ]</font><br><br>";
   } else {
      echo "<font>$anonymous<br><br>";
   }
   echo "<font><b>"._SUBJECT.":</b></font><br>"
   ."<input><br><br>"
   ."<font><b>"._UCOMMENT.":</b></font><br>"
   ."<textarea>$comment</textarea><br>";
   if ($nuke_editor == 0) {
       echo "<font>"._ALLOWEDHTML."<br>";
       while (list($key,) = each($AllowableHTML)) echo " &lt;".$key."&gt;";
       echo "</font><br><br>";
   } else {
      echo ""._HTMLNOTALLOWED."</font><br><br>";
   }
   if ($xanonpost AND $anonpost == 1){
      echo "<input> "._POSTANON."<br>";
   } elseif (is_user($user) AND $anonpost == 1) {
      echo "<input> "._POSTANON."<br>";
   }
                  if (!isset($mode) OR empty($mode)) {
                    if(isset($userinfo['umode'])) {
                      $mode = $userinfo['umode'];
                    } else {
                      $mode = "thread";
                    }
                  }
                  if (!isset($order) OR empty($order)) {
                    if(isset($userinfo['uorder'])) {
                      $order = $userinfo['uorder'];
                    } else {
                      $order = 0;
                    }
                  }
                  if (!isset($thold) OR empty($thold)) {
                    if(isset($userinfo['thold'])) {
                      $thold = $userinfo['thold'];
                    } else {
                      $thold = 0;
                    }
                  }

   echo "<input>"
   ."<input>"
   ."<input>"
   ."<input>"
   ."<input>"
   ."<input>"
   ."<input>\n"
   ."</font></form>";
   CloseTable();
   include("footer.php");
}

function CreateTopic ($xanonpost, $subject, $comment, $pid, $sid, $host_name, $mode, $order, $thold) {
   global $module_name, $user, $userinfo, $EditedMessage, $c o o k i e, $AllowableHTML, $ultramode, $user_prefix, $prefix, $anonpost, $articlecomm, $db, $sitename;
   c o o k i edecode($user);
   getusrinfo($user);
   $sid = intval($sid);
   $pid = intval($pid);
   $author = filter($author, "nohtml", 1);
   $subject = filter($subject, "nohtml", 1);
   $comment = format_url($comment);
   $comment = filter($comment, "", 1);
   if ($subject == "" OR $comment == "") {
      include("header.php");
      title("$sitename - "._COMMENTSSYSTEM."");
      OpenTable();
      echo "<center>"._COMMENTPOSTERROR."<br><br>"._GOBACK."</center>";
      CloseTable();
      include("footer.php");
      die();
   }
   //$comment = filter($comment);
   if (is_user($user) AND !$xanonpost) {
      $name = $userinfo[username];
      $email = $userinfo[femail];
      $url = $userinfo[user_website];
      $score = 1;
   } else {
      $name = "";
      $email = "";
      $url = "";
      $score = 0;
   }
        if(!isset($ip)) {
          $ip = $_SERVER['REMOTE_ADDR'];
        }
   $fake = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_stories WHERE sid='$sid'"));
   $comment = trim($comment);
   $comment = filter($comment, "", 1);
   if ($fake == 1 AND $articlecomm == 1) {
      if (($anonpost == 0 AND is_user($user)) OR $anonpost == 1) {
         if (is_user($user)) {
            $krow = $db->sql_fetchrow($db->sql_query("SELECT karma FROM ".$user_prefix."_users WHERE username='$name'"));
                $koptions = "";
                 $koptions .= "&mode=".$mode;
                $koptions .= "&order=".$order;
                $koptions .= "&thold=".$thold;
            if ($krow['karma'] == 2) {
               $db->sql_query("INSERT INTO ".$prefix."_comments_moderated VALUES (NULL, '$pid', '$sid', now(), '$name', '$email', '$url', '$ip', '$subject', '$comment', '$score', '0', '0')");
               include("header.php");
               title(_MODERATEDTITLE);
               OpenTable();
               echo "<center>"._COMMENTMODERATED."";
               echo "<br><br><a href="modules.php?name=$module_name&file=article&sid=$sid$koptions\">"._MODERATEDRETURN."</a>";
               CloseTable();
               include("footer.php");
               die();
            } elseif ($krow['karma'] == 3) {
               Header("Location: modules.php?name=$module_name&file=article&sid=$sid$koptions");
               die();
            }
         }
      $db->sql_query("INSERT INTO ".$prefix."_comments VALUES (NULL, '$pid', '$sid', now(), '$name', '$email', '$url', '$ip', '$subject', '$comment', '$score','0', 'H')");
      //$db->sql_query("UPDATE ".$prefix."_stories SET comments=comments+1 WHERE sid='$sid'");
      //update_points(5);
         update_points(5);
         if ($ultramode) { ultramode(); }
      } else {
         die("Nice try..");
      }
   } else {
      include("header.php");
      echo "According to my records, the topic you are trying "
      ."to reply to does not exist. If you're just trying to be "
      ."annoying, well then too bad.";
      include("footer.php");
      die();
   }
   $options = "";
   $options .= "&mode=".$mode;
   $options .= "&order=".$order;
   $options .= "&thold=".$thold;
      global $currentlang;
   include('modules/Yorumlar/admin/language/lang-'.$currentlang.'.php');
   echo '<s>a l e r t("'. _YORUM_ONAY_BEKLIYOR .'"); window.location="modules.php?name='.$module_name.'&file=article&sid='.$sid.$options.'";</s>';
    //Header("Location: modules.php?name=$module_name&file=article&sid=$sid$options");
}
// Quake - start
if (isset($sid)) { $sid = intval($sid); } else { $sid = ""; }
if (isset($tid)) { $tid = intval($tid); } else { $tid = ""; }
if (isset($pid)) { $pid = intval($pid); } else { $pid = ""; }
if (isset($order)) { $order = intval($order); }
if (isset($thold)) { $thold = intval($thold); }

if (!isset($mode) OR empty($mode)) {
  if(isset($userinfo['umode'])) {
    $mode = $userinfo['umode'];
  } else {
    $mode = "thread";
  }
}
if (!isset($order) OR empty($order)) {
  if(isset($userinfo['uorder'])) {
    $order = $userinfo['uorder'];
  } else {
    $order = 0;
  }
}
if (!isset($thold) OR empty($thold)) {
  if(isset($userinfo['thold'])) {
    $thold = $userinfo['thold'];
  } else {
    $thold = 0;
  }
}
// Quake - end
switch($op) {

   case "Reply":
   reply($pid, $sid, $mode, $order, $thold);
   break;

   case ""._PREVIEW."":
   replyPreview ($pid, $sid, $subject, $comment, $xanonpost, $mode, $order, $thold);
   break;

   case ""._OK."":
   CreateTopic($xanonpost, $subject, $comment, $pid, $sid, $host_name, $mode, $order, $thold);
   break;

   case "moderate":
   if(!isset($admin)) {
     require_once("mainfile.php");
   }
   global $userinfo;
   if(($admintest==1) || ($moderate==2)) {
      while(list($tdw, $emp) = each($_POST)) {
         if (stripos_clone($tdw,"dkn")) {
            $emp = explode(":", $emp);
            if($emp[1] != 0) {
               $tdw = str_replace("dkn", "", $tdw);
               $emp[0] = intval($emp[0]);
               $emp[1] = intval($emp[1]);
               $tdw = intval($tdw);
               $q = "UPDATE ".$prefix."_comments SET";
               if(($emp[1] == 9) AND ($emp[0]>=0)) { # Overrated
                  $q .= " score=score-1 where tid='$tdw'";
               } elseif (($emp[1] == 10) AND ($emp[0]<4> 4) AND ($emp[0]<=4)) {
                  $q .= " score=score+1, reason='$emp[1]' where tid='$tdw'";
               } elseif (($emp[1] <5> -1)) {
                  $q .= " score=score-1, reason='$emp[1]' where tid='$tdw'";
               } elseif (($emp[0] == -1) || ($emp[0] == 5)) {
                  $q .= " reason='$emp[1]' where tid='$tdw'";
               }
               $row = $db->sql_fetchrow($db->sql_query("SELECT last_moderation_ip FROM ".$prefix."_comments WHERE tid='$tdw'"));
               $ip = $_SERVER['REMOTE_ADDR'];
               if(strlen($q) > 20 AND $row['last_moderation_ip'] != $ip) {
                  $db->sql_query($q);
                  $db->sql_query("UPDATE ".$prefix."_comments SET last_moderation_ip='$ip' WHERE tid='$tdw'");
               }
            }
         }
      }
   }
   $options = "";
        $options .= "&mode=".$mode;
        $options .= "&order=".$order;
        $options .= "&thold=".$thold;
   Header("Location: modules.php?name=$module_name&file=article&sid=$sid$options");
   break;

   case "showreply":
   DisplayTopic($sid, $pid, $tid, $mode, $order, $thold);
   break;

   default:
   if (!empty($tid) AND empty($pid)) {
      singlecomment($tid, $sid, $mode, $order, $thold);
   } elseif (!defined('NUKE_FILE') xor ($pid==0 AND !isset($pid))) {
                $options = "";
                 $options .= "&mode=".$mode;
           $options .= "&order=".$order;
           $options .= "&thold=".$thold;

           Header("Location: modules.php?name=$module_name&file=article&sid=$sid$options");
        } else {
      if(!isset($pid)) $pid=0;
      DisplayTopic($sid, $pid, $tid, $mode, $order, $thold);
   }
   break;

}

?>


kodlarda ben ufak editlemeler yapmistim ama siralamayla alakasi yok tabi.
buraya oldugu gibi koydum ama bilmiyorum kodlar tam aynisi gibi eksiksiz ciktimi

kodlar eksik ciktigi icin dosyayi upload ettim burdan indirebilirsin http://s1.dosya.tc/comments.rar.html
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder E-posta gönder
atakanxx
Mesaj: 200+
Mesaj: 200+





Kayıt: Jan 09, 2009
Mesajlar: 226
Konum: yozgat/Almanya

MesajTarih: 2009-09-06, 17:15:32    Mesaj konusu: Alıntıyla Cevap Gönder

Bu konuda yardimci olabilecek yada ipucu verebilecek bi arkadas yokmu
sorun hala güncel Crying or Very sad
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder E-posta gönder
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> Php Nuke Sorunlarınız Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
Bu forumda yeni başlıklar açamazsınız
Bu forumdaki başlıklara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok Modül isimlerini degistirmek. Bankocu Php Nuke Modülleri 16 2009-03-21, 19:24:59 Son Mesajı Görüntüle
Yeni mesaj yok popup kodlarini degistirmek BAHTIM İnternet Üzerine 0 2008-10-13, 09:59:19 Son Mesajı Görüntüle
Yeni mesaj yok ana sayfadaki haber lerin basliginin ... oktay59 Php-Nuke 4 2008-05-01, 20:31:58 Son Mesajı Görüntüle
Yeni mesaj yok kisitli alani degistirmek murat1981 Php-Nuke 10 2008-04-28, 15:50:20 Son Mesajı Görüntüle
Yeni mesaj yok flaschat rengini degistirmek hulyamm Php-Nuke 11 2008-03-19, 00:41:16 Son Mesajı Görüntüle

Copyright © 2002-2024 Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright