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: 558
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 facebookda paylas eklenti..
(11632 okuma, 11 yanıt)
 Üyelerin profilerine yoru..
(11481 okuma, 10 yanıt)
 Forum Mesajları..
(7159 okuma, 4 yanıt)
 Forumun üst bölümüne nası..
(6214 okuma, 2 yanıt)
 Power Nuke Hakkinda Uzma..
(16160 okuma, 19 yanıt)
 mesajı begenme eklentisi..
(7138 okuma, 4 yanıt)
 imza karakterlerinin sayı..
(6519 okuma, 4 yanıt)
 Forumda Embed kodlar..
(66945 okuma, 11 yanıt)
 Eğitim Sitesi için banner..
(8490 okuma, 5 yanıt)
 Forum Da ki katogorileri ..
(6289 okuma, 5 yanıt)
 Forum Admin Panelde Kulla..
(4257 okuma, 1 yanıt)
 lewel mod..
(7054 okuma, 5 yanıt)
 Avatar boyunu ayarlama..
(7064 okuma, 5 yanıt)
 Foruma iframe Kodları Cal..
(6388 okuma, 4 yanıt)
 Üye paneli..
(12227 okuma, 14 yanıt)
 popüler Hikaye Yan Blok..
(3778 okuma, 0 yanıt)
 Rütbe resmi..
(5448 okuma, 3 yanıt)
 Alt Forum Ekletisinde Alt..
(6061 okuma, 3 yanıt)
 Advanced Username Color..
(11179 okuma, 12 yanıt)
 body kismi hangi nuke say..
(5470 okuma, 2 yanıt)
 Forumda Son konuları Site..
(3749 okuma, 0 yanıt)
 wep sitesi yapanlar..
(4635 okuma, 2 yanıt)
 Bu Eklentinin Aynısı Lazı..
(9743 okuma, 11 yanıt)
 Forumu düzenleyeyim derke..
(5296 okuma, 3 yanıt)
 www.teselliver.com siteye..
(5012 okuma, 2 yanıt)
 Php Nuke BB Calısmaları..
(3587 okuma, 1 yanıt)
 İstek İstatistikler Modu..
(4788 okuma, 2 yanıt)
 Formumuzu Gelistirmek Ve ..
(3338 okuma, 0 yanıt)
 Arkadaşlar cinsiyet ve do..
(8015 okuma, 6 yanıt)
 7.9 Blue Editoins Formunu..
(3652 okuma, 0 yanıt)
 mesajdan sonra sponsor re..
(4729 okuma, 2 yanıt)
 Buyrun yapamayanlar için ..
(33297 okuma, 38 yanıt)
 Entegreler Sıtede bulamad..
(4097 okuma, 1 yanıt)
 En Gelısmıs Phpbb Sürümü ..
(6638 okuma, 5 yanıt)
 konu başlıkları hazır for..
(3915 okuma, 0 yanıt)
 Eklenti..
(4088 okuma, 1 yanıt)
 AJAX Sohbet Odası - Shout..
(14027 okuma, 17 yanıt)
 Sohbet Modu..
(5744 okuma, 3 yanıt)
 Smilar Topics..
(4038 okuma, 1 yanıt)
 Foruma Small Shoutbox..
(3326 okuma, 0 yanıt)
 Php Nuke 8.0 A FCK Editör..
(6608 okuma, 5 yanıt)
 mod fourum message..
(4913 okuma, 2 yanıt)
 Php Nuke Formunu Nasıl Ge..
(9241 okuma, 10 yanıt)
 Bu eklentinin adı nedir ?..
(5158 okuma, 2 yanıt)
 Cash Mod 221 - Türkçe [MO..
(6395 okuma, 3 yanıt)
 Kilitlenen Konunun Üzerin..
(16529 okuma, 16 yanıt)
 Forum da Bu Hatayı veriyo..
(7283 okuma, 4 yanıt)
 phpnuke foruma güvenlik k..
(5805 okuma, 3 yanıt)
 daha önce bu konuya bakan..
(6015 okuma, 3 yanıt)
 BBtoNuke 2.22 to BBtoNuke..
(3770 okuma, 0 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - alt forumlar admin paneli
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


alt forumlar admin paneli

 
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 -> NukeBB Eklentileri
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
ultrAslanYavuz
Tema Sorumlusu
Tema Sorumlusu





Kayıt: Jun 25, 2006
Mesajlar: 1217

MesajTarih: 2007-01-27, 16:27:33    Mesaj konusu: alt forumlar admin paneli Alıntıyla Cevap Gönder

arkadaşlar alt forumu kurdum sorunsuz güzel calısıyor.ancak admin paneline girdiğimde yeni forum olusturdummu saçma sapan yazılar cıkıyor.komple karısmıs.forum bilgisinde forumun renk kodu yazıyor.iconuna baska birşey.bende hep phpmyadminden alt forum acıyorum.buda biraz zahmetli oluyor.su anda acmam gereken yaklasık 100 tane alt forum var Very Happy phpmyadminden uraşmak istmiyorum.

forumun admin bölümünden mi neden ekleyemiyorum.yeni forum olustururken hem icon hemde renk kodu istiyoru.yani önceden kurdugum forum_icon ve forum_color eklentileri kodları karıstırmama neden oluyor.orjinal kodları yükleyincede icon ve color calısmyor.mecbur değiştirip yüklemek laızm.

sonuc olarak bu icon,color,subforum bu üçünüde sitesinde yapmıs bir hayırsever arkadaş var mı? bana admin/admin_forums.php sini yollayacak.yada bu konuca bana yardımcı ollacak Crying or Very sad Crying or Very sad
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-06-28, 21:31:32    Mesaj konusu: Forum Arası Reklamlar


Başa dön
sosge
Mesaj: 200+
Mesaj: 200+





Kayıt: Nov 28, 2004
Mesajlar: 240
Konum: belcika

MesajTarih: 2007-01-27, 19:00:25    Mesaj konusu: Re: alt forumlar admin paneli Alıntıyla Cevap Gönder

valal yavuzbey aslinda biraz kasarsan olur benim forumdada cok eklenti var yaklasik 45 tane filan ben gondereyim sana calisirsa ne ala:)

www.muhurgozlum.com/admin_forums.rar

inşallah calısır
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yahoo Messenger MSN Messenger
ultrAslanYavuz
Tema Sorumlusu
Tema Sorumlusu





Kayıt: Jun 25, 2006
Mesajlar: 1217

MesajTarih: 2007-01-27, 19:21:59    Mesaj konusu: Alıntıyla Cevap Gönder

cok saol sosge.elimde iki tane oldu.yeni bir sanada teşekkür ederim.şimdi bu 3 tane admin forumsu karsılastırayım Very Happy
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
ultrAslanYavuz
Tema Sorumlusu
Tema Sorumlusu





Kayıt: Jun 25, 2006
Mesajlar: 1217

MesajTarih: 2007-01-27, 20:02:33    Mesaj konusu: Alıntıyla Cevap Gönder

cok teşekkürler sosge allah bin kere razı olsun.senin kini direk yapıstırdım.inş sorun olmaz.sanırım sende forumcolor yok.seninkini ona göre editledimmi tam olacak.simdilik sorun yok.Very Happy
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
sosge
Mesaj: 200+
Mesaj: 200+





Kayıt: Nov 28, 2004
Mesajlar: 240
Konum: belcika

MesajTarih: 2007-01-27, 20:46:52    Mesaj konusu: Re: alt forumlar admin paneli Alıntıyla Cevap Gönder

rica ederim yavuz bey evet bendede forumcloor yok aslinda iyi dedin bari onuda kurayim tam olsun :)
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yahoo Messenger MSN Messenger
ultrAslanYavuz
Tema Sorumlusu
Tema Sorumlusu





Kayıt: Jun 25, 2006
Mesajlar: 1217

MesajTarih: 2007-01-27, 20:48:18    Mesaj konusu: Alıntıyla Cevap Gönder

eğer kurarsanız admin_forums.php yi editlemeyin o zaman ben size yollarım Very Happy
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
KaRmAkArIsIk
Mesaj: 1+
Mesaj: 1+





Kayıt: Dec 10, 2006
Mesajlar: 12

MesajTarih: 2007-01-30, 16:19:17    Mesaj konusu: Re: alt forumlar admin paneli Alıntıyla Cevap Gönder

ya arkadaşlar ben kurdum ama bazı yerlerde aranan kodları bulamadım ona uygun değiştirmeler eklemeler yaptım ama yine de olmadı ne admin ne de başka bi yerde tık yok. Nasıl düzgünce kurucam ben bunu ya? Nuke 7.9 3.3 yama var ve forum 2.0.22 kurdum. ama 22 yaparken bile bazı kodlar yoktu :) nasıl yaparım ben bu işi?
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
ultrAslanYavuz
Tema Sorumlusu
Tema Sorumlusu





Kayıt: Jun 25, 2006
Mesajlar: 1217

MesajTarih: 2007-01-30, 17:58:32    Mesaj konusu: Alıntıyla Cevap Gönder

valla arkadaşım benim elimde 3 tane değişik değişik alt forum uygulaması var.2 sini hiç çalıştıramadım birisi sorunsuz calısıyor.oda biraz eski sürüm herhalde
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-06-28, 21:31:32    Mesaj konusu: Forum Arası Reklamlar


Başa dön
KaRmAkArIsIk
Mesaj: 1+
Mesaj: 1+





Kayıt: Dec 10, 2006
Mesajlar: 12

MesajTarih: 2007-01-30, 20:40:20    Mesaj konusu: Alıntıyla Cevap Gönder

Ya benim sorunum galiba kodları eklemede çünkü şu kodu bulun diyor ama o kodlardan 3-4 yerde geçiyor, hangisinde oynama yapıcam anlamıyorum. Elindeki örnekleri yollarsan bana sevinirim...
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
ultrAslanYavuz
Tema Sorumlusu
Tema Sorumlusu





Kayıt: Jun 25, 2006
Mesajlar: 1217

MesajTarih: 2007-01-30, 21:01:51    Mesaj konusu: Alıntıyla Cevap Gönder

insallah calıstırırsın

Kod:

#######################################################################
#
#    Bu  Mod Sayesinde Sitenizdeki forumlara  cok  Basit Bir Sekilde Alt Kategoriler Acabilirsiniz
#    Dogacak Sorunlardan  Kesinlikle Sitemiz Mesiliyet Kabul  Etmez
#                                        www.phpturk.de
#
####################################################
#  Dosyalarinizin Birer Yedeklerini Aliniz
####################################################

Asagidaki Sol  Sorgusunu phpmyadminden  sorgulatin

#################################################

ALTER TABLE `nuke_bbforums` ADD attached_forum_id MEDIUMINT(8) DEFAULT '-1' NOT NULL;

####################################################


   
#
#-----[ ACINIZ ]------------------------------------------------
#
   includes/functions.php


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

function get_db_stat($mode)
{


#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]------------------------------------------
#
   

function check_unread($forum_id)
{
global $new_topic_data, $tracking_topics, $tracking_forums, $HTTP_COOKIE_VARS, $board_config;
   if ( !empty($new_topic_data[$forum_id]) )
   {
      $forum_last_post_time = 0;

      while( list($check_topic_id, $check_post_time) = @each($new_topic_data[$forum_id]) )
      {
         if ( empty($tracking_topics[$check_topic_id]) )
         {
            $unread_topics = true;
            $forum_last_post_time = max($check_post_time, $forum_last_post_time);

         }
         else
         {
            if ( $tracking_topics[$check_topic_id] < $check_post_time )
            {
               $unread_topics = true;
               $forum_last_post_time = max($check_post_time, $forum_last_post_time);
            }
         }
      }

      if ( !empty($tracking_forums[$forum_id]) )
      {
         if ( $tracking_forums[$forum_id] > $forum_last_post_time )
         {
            $unread_topics = false;
         }
      }

      if ( isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f_all']) )
      {
         if ( $HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f_all'] > $forum_last_post_time )
         {
            $unread_topics = false;
         }
      }

   }

return $unread_topics;

}

   


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

function make_jumpbox($action, $match_forum_id = 0)
{
   global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID;


#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#

   global $parent_lookup;


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

               if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $forum_rows[$j]['auth_view'] <= AUTH_REG )
               {


#
#-----[BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]------------------------------------------
#

                  if ($parent_lookup==$forum_rows[$j]['forum_id'] && !$assigned)
                  {
                     $template->assign_block_vars('switch_parent_link', array() );

                     $template->assign_vars(array(
                        'PARENT_NAME' => $forum_rows[$j]['forum_name'],
                        'PARENT_URL'=>append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id'])
                        ));
                     $assigned=TRUE;
                  }


#
#-----[ ACINIZ ]------------------------------------------------
#

   modules/Forums/admin/admin_forums.php

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   $forumstatus = $row['forum_status'];
   
#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#
   
   
            $forum_attached_id = $row['attached_forum_id'];
            $sql = "SELECT * from ". FORUMS_TABLE. " WHERE attached_forum_id = $forum_id";
            if( !$r = $db->sql_query($sql) )
            {
               message_die(GENERAL_ERROR, "Couldn't get list of children Forums", "", __LINE__, __FILE__, $sql);
            }

            if( $db->sql_numrows($r) > 0 )
            {

               $not_attachable=1;
               $has_subforums=1;
               $template->assign_block_vars('switch_attached_no', array());
               if (intval($HTTP_POST_VARS['detach_enabled'])) $detach_enabled = "checked=\"checked\"";

            }
            else
            {

               // this forum is not a parent of any other forum
               $sql = "SELECT * FROM ". FORUMS_TABLE. " WHERE attached_forum_id=-1 and cat_id= $cat_id and forum_id<>$forum_id ORDER BY forum_order";

               if( !$result1 = $db->sql_query($sql) )
               {
                  message_die(GENERAL_ERROR, "Couldn't get list of attachable Forums", "", __LINE__, __FILE__, $sql);
               }
               if( $db->sql_numrows($result1) > 0 )
               {
                  $attachable_forums = '<option value = "-1"'.($forum_attached_id==-1?' selected':'').'> NOT ATTACHED TO ANY FORUM </a>';
                  while( $row1 = $db->sql_fetchrow($result1) )
                  {
                     $s='';
                     if ($forum_attached_id == $row1['forum_id'])
                     {
                        $s = " selected=\"selected\"";
                     }
                     $attachable_forums .= '<option value="'.$row1[forum_id].$s.'">' . $row1[forum_name] . '</option>\n';
                  }
               }
               else
               {
                  $no_attachable_forums=1;
               }

            }
   


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

            $forum_id = '';
            $prune_enabled = '';
#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#
   

               $sql = "SELECT * FROM ". FORUMS_TABLE. " WHERE attached_forum_id=-1 and cat_id= $cat_id ORDER BY forum_order";

               if( !$result1 = $db->sql_query($sql) )
               {
                  message_die(GENERAL_ERROR, "Couldn't get list of Categories/Forums", "", __LINE__, __FILE__, $sql);
               }
            if( $db->sql_numrows($result1) > 0 )
            {
               $attachable_forums = '<option value = "-1"'.(($forum_attached_id==-1 || !$forum_attached_id)?' selected':'').'> NOT ATTACHED TO ANY FORUM </a>';
               while( $row1 = $db->sql_fetchrow($result1) )
               {

                  if ($forum_attached_id == $row1['forum_id'])
                  {
                     $s = " selected=\"selected\"";
                  }
                  $attachable_forums .= '<option value="'.$row1[forum_id].$s.'">' . $row1[forum_name] . '</option>\n';
               }


            }
            else
            {
               $no_attachable_forums=1;
            }
   

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   $catlist = get_list('category', $cat_id, TRUE);

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]------------------------------------------
#

   

         $forum_attached_id = $attachable_forums;
   


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

         $s_hidden_fields = '<input type="hidden" name="mode" value="' . $newmode .'" /><input type="hidden" name="' . POST_FORUM_URL . '" value="' . $forum_id . '" />';

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#
   

         if ($not_attachable or $no_attachable_forums)
         {
            if ($has_subforums)
            {
               $lang['Attached_Description'] = $lang['Has_attachments'].'<br>'. $lang['Attached_Description'];
               $s_hidden_fields .='<input type="hidden" name="has_subforums" value="1" />';
            }
            if ($no_attachable_forums) $lang['Attached_Description'] = $lang['No_attach_forums'].'<br>'. $lang['Attached_Description'];
            $s_hidden_fields .='<input type="hidden" name="attached_forum_id" value="-1" />';
         }
         else
         {
            $template->assign_block_vars('switch_attached_yes', array());
         }
            $s_hidden_fields .='<input type="hidden" name="old_cat_id" value="'.$cat_id.'" />';
   

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
   
   'S_PRUNE_ENABLED' => $prune_enabled,

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#
   
   'S_ATTACHED_FORUM_ID' => $forum_attached_id,
   'S_DETACH_ENABLED'=> $detach_enabled,
   
     
#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   'L_CATEGORY' => $lang['Category'],

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#

   
   'L_ATTACHED_FORUM' => $lang['Attached_Field_Title'] ,
   'L_ATTACHED_DESC' => $lang['Attached_Description'],
   'L_DETACH_DESC'   => $lang['Detach_Description'],
   

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

      $sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ")
            VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#
   
   
         if (intval($HTTP_POST_VARS['old_cat_id']) != intval($HTTP_POST_VARS[POST_CAT_URL]))
         {
               $HTTP_POST_VARS['attached_forum_id']=-1;
            }

      $sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, attached_forum_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ")
            VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) .  ", " . intval($HTTP_POST_VARS['attached_forum_id']) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";



#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

            $sql = "UPDATE " . FORUMS_TABLE . "
            SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
            WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]);

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#

   
         if (isset($HTTP_POST_VARS['detach_enabled']) && isset($HTTP_POST_VARS['has_subforums']))
         {
            $sql = "UPDATE ". FORUMS_TABLE. " SET attached_forum_id=-1 WHERE attached_forum_id=" . intval($HTTP_POST_VARS[POST_FORUM_URL]);
            if( !$result = $db->sql_query($sql) )
            {
               message_die(GENERAL_ERROR, "Couldn't detach subforums", "", __LINE__, __FILE__, $sql);
            }

         }

          if (intval($HTTP_POST_VARS['old_cat_id']) != intval($HTTP_POST_VARS[POST_CAT_URL]))
            {
            $HTTP_POST_VARS['attached_forum_id']=-1;
            if (isset($HTTP_POST_VARS['has_subforums']) && !isset($HTTP_POST_VARS['detach_enabled']))
            {
               $sql = "UPDATE ". FORUMS_TABLE ." SET cat_id=". intval($HTTP_POST_VARS[POST_CAT_URL]) ." WHERE attached_forum_id=" . intval($HTTP_POST_VARS[POST_FORUM_URL]);
               if( !$result = $db->sql_query($sql) )
               {
                  message_die(GENERAL_ERROR, "Couldn't update subforums to new category", "", __LINE__, __FILE__, $sql);
               }

            }
         }

         $sql = "UPDATE " . FORUMS_TABLE . "
            SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) .", attached_forum_id = " . intval($HTTP_POST_VARS['attached_forum_id']) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
            WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]);
   

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   if( $total_forums = $db->sql_numrows($q_forums) )
   {
      $forum_rows = $db->sql_fetchrowset($q_forums);
   }

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#

   $subforum_rows=$forum_rows;


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

            $template->assign_block_vars("catrow.forumrow",   array(
               'FORUM_NAME' => $forum_rows[$j]['forum_name'],
               'FORUM_DESC' => $forum_rows[$j]['forum_desc'],
               'ROW_COLOR' => $row_color,
               'NUM_TOPICS' => $forum_rows[$j]['forum_topics'],
               'NUM_POSTS' => $forum_rows[$j]['forum_posts'],

               'U_VIEWFORUM' => append_sid($phpbb_root_path."viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"),
               'U_FORUM_EDIT' => append_sid("admin_forums.$phpEx?mode=editforum&amp;" . POST_FORUM_URL . "=$forum_id"),
               'U_FORUM_DELETE' => append_sid("admin_forums.$phpEx?mode=deleteforum&amp;" . POST_FORUM_URL . "=$forum_id"),
               'U_FORUM_MOVE_UP' => append_sid("admin_forums.$phpEx?mode=forum_order&amp;move=-15&amp;" . POST_FORUM_URL . "=$forum_id"),
               'U_FORUM_MOVE_DOWN' => append_sid("admin_forums.$phpEx?mode=forum_order&amp;move=15&amp;" . POST_FORUM_URL . "=$forum_id"),
               'U_FORUM_RESYNC' => append_sid("admin_forums.$phpEx?mode=forum_sync&amp;" . POST_FORUM_URL . "=$forum_id"))
            );

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#

            $sub_error=false;
            $do_template=false;
            if ($forum_rows[$j]['attached_forum_id'] !=-1)
            {
            $ok='';
               for($k = 0; $k < $total_forums; $k++)
               {
                  $subforum_id = $subforum_rows[$k]['forum_id'];

                  if ($subforum_id == $forum_rows[$j]['attached_forum_id'] && $forum_rows[$k]['attached_forum_id']==-1)
                  {
                     $ok=TRUE;//normal parent found
                  }
               }
               if ($forum_rows[$j]['attached_forum_id']==$forum_id) $ok=FALSE; //attached to itself
               if ($forum_rows[$j]['attached_forum_id']==0) $ok=FALSE; //invalid parent
               if (!$ok)
               {
                  $do_template=TRUE;
                  $sub_error=true;
               }
            }
            else
            {
               $do_template=true;
            }//attached_forum_id'] ==-1


            if ($do_template)
            {
               $template->assign_block_vars("catrow.forumrow",   array(
                  'FORUM_NAME' => $forum_rows[$j]['forum_name'],
                  'FORUM_DESC' => $forum_rows[$j]['forum_desc'],
                  'ROW_COLOR' => $row_color,
                  'NUM_TOPICS' => $forum_rows[$j]['forum_topics'],
                  'NUM_POSTS' => $forum_rows[$j]['forum_posts'],

                  'U_VIEWFORUM' => append_sid($phpbb_root_path."viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"),
                  'U_FORUM_EDIT' => append_sid("admin_forums.$phpEx?mode=editforum&amp;" . POST_FORUM_URL . "=$forum_id"),
                  'U_FORUM_DELETE' => append_sid("admin_forums.$phpEx?mode=deleteforum&amp;" . POST_FORUM_URL . "=$forum_id"),
                  'U_FORUM_MOVE_UP' => append_sid("admin_forums.$phpEx?mode=forum_order&amp;move=-15&amp;" . POST_FORUM_URL . "=$forum_id"),
                  'U_FORUM_MOVE_DOWN' => append_sid("admin_forums.$phpEx?mode=forum_order&amp;move=15&amp;" . POST_FORUM_URL . "=$forum_id"),
                  'U_FORUM_RESYNC' => append_sid("admin_forums.$phpEx?mode=forum_sync&amp;" . POST_FORUM_URL . "=$forum_id"))
               );
               if ($sub_error)
               {
                  $template->assign_block_vars ('catrow.forumrow.switch_error',array());
               }

               for($k = 0; $k < $total_forums; $k++)
               {
                  $subforum_id = $subforum_rows[$k]['forum_id'];
                  if ($subforum_rows[$k]['attached_forum_id'] == $forum_id)
                  {
                     $template->assign_block_vars("catrow.forumrow",   array(
                        'FORUM_NAME' => $subforum_rows[$k]['forum_name'],
                        'FORUM_DESC' => $subforum_rows[$k]['forum_desc'],
                        'ROW_COLOR' => $row_color,
                        'NUM_TOPICS' => $subforum_rows[$k]['forum_topics'],
                        'NUM_POSTS' => $subforum_rows[$k]['forum_posts'],

                        'U_VIEWFORUM' => append_sid($phpbb_root_path."viewforum.$phpEx?" . POST_FORUM_URL . "=$subforum_id"),
                        'U_FORUM_EDIT' => append_sid("admin_forums.$phpEx?mode=editforum&amp;" . POST_FORUM_URL . "=$subforum_id"),
                        'U_FORUM_DELETE' => append_sid("admin_forums.$phpEx?mode=deleteforum&amp;" . POST_FORUM_URL . "=$subforum_id"),
                        'U_FORUM_MOVE_UP' => append_sid("admin_forums.$phpEx?mode=forum_order&amp;move=-15&amp;" . POST_FORUM_URL . "=$subforum_id"),
                        'U_FORUM_MOVE_DOWN' => append_sid("admin_forums.$phpEx?mode=forum_order&amp;move=15&amp;" . POST_FORUM_URL . "=$subforum_id"),
                        'U_FORUM_RESYNC' => append_sid("admin_forums.$phpEx?mode=forum_sync&amp;" . POST_FORUM_URL . "=$subforum_id"))
                     );
                     $template->assign_block_vars ('catrow.forumrow.switch_attached_forum',array());
                  }
               }
            }


#
#-----[ ACINIZ ]------------------------------------------------
#

   modules/Forums/index.php


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

         $sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
            FROM (( " . FORUMS_TABLE . " f
            LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
            LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
            ORDER BY f.cat_id, f.forum_order";
#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#
   

         $sql = "SELECT f.*, p.post_time, p.post_username,  u.username, u.user_id, t.topic_id, t.topic_title
            FROM ((( " . FORUMS_TABLE . " f
            LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
            LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
            LEFT JOIN " . TOPICS_TABLE . " t ON t.topic_last_post_id = f.forum_last_post_id)
            GROUP BY f.forum_id ORDER BY f.cat_id, f.forum_order";
   



#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   {
      $forum_data[] = $row;
   }

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#
   
   
   $attach=$forum_data;
   
   
#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   $forum_id = $forum_data[$j]['forum_id'];


#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#



   $attached_id = $forum_data[$j]['attached_forum_id'];
                  if ( $is_auth_ary[$forum_id]['auth_view'] && $attached_id == -1 )
                  {
                     $attached_forums = array();
                     foreach ($attach as $key => $value)
                     {
                        $sub_forum_id = $value['forum_id'];
                        if ($value['attached_forum_id']==$forum_id && $is_auth_ary[$sub_forum_id]['auth_view'])
                        {
                           //combining topic and post count for forum and subforums
                           $forum_data[$j]['forum_posts']=$forum_data[$j]['forum_posts']+$value['forum_posts'];
                           $forum_data[$j]['forum_topics']=$forum_data[$j]['forum_topics']+$value['forum_topics'];
                           //END combining topic and post count

                           //Last post link - check if any of subforums have newest posts and link to them instead
                           if ($value['post_time']>$forum_data[$j]['post_time'])
                           {
                              $forum_data[$j]['user_id'] = $value['user_id'];
                              $forum_data[$j]['post_username'] = $value['post_username'];
                              $forum_data[$j]['forum_last_post_id'] = $value['forum_last_post_id'];
                              $forum_data[$j]['post_time'] = $value['post_time'];
                              $forum_data[$j]['username'] = $value['username'];
                              $forum_data[$j]['topic_title'] = $value['topic_title'];
                           }
                           // END last post check

                           $unread_topics = false;
                           if ( $userdata['session_logged_in'] )
                           {
                              if (check_unread($value['forum_id']))
                              {
                                 $attach_img = $images['icon_minipost_new'];
                                 $l_attach_img = $lang['New_posts'];
                              }
                              else
                              {
                                 $attach_img = $images['icon_minipost'];
                                 $l_attach_img = $lang['No_new_posts'];
                              }
                           }
                           else
                           {
                              $attach_img = $images['icon_minipost'];
                              $l_attach_img = $lang['No_new_posts'];
                           }

                           $attached_forums[] = array(
                              'sub_img'=>$attach_img,
                              'sub_alt'=>$l_attach_img,
                              'sub_name'=>$value['forum_name'],
                              'sub_url'=>append_sid ('viewforum.php?f=' . $value['forum_id'] )
                              );
                        }
                     }
                     


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#


                           if ( !empty($new_topic_data[$forum_id]) )
                           {
                              $forum_last_post_time = 0;

                              while( list($check_topic_id, $check_post_time) = @each($new_topic_data[$forum_id]) )
                              {
                                 if ( empty($tracking_topics[$check_topic_id]) )
                                 {
                                    $unread_topics = true;
                                    $forum_last_post_time = max($check_post_time, $forum_last_post_time);

                                 }
                                 else
                                 {
                                    if ( $tracking_topics[$check_topic_id] < $check_post_time )
                                    {
                                       $unread_topics = true;
                                       $forum_last_post_time = max($check_post_time, $forum_last_post_time);
                                    }
                                 }
                              }

                              if ( !empty($tracking_forums[$forum_id]) )
                              {
                                 if ( $tracking_forums[$forum_id] > $forum_last_post_time )
                                 {
                                    $unread_topics = false;
                                 }
                              }

                              if ( isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f_all']) )
                              {
                                 if ( $HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f_all'] > $forum_last_post_time )
                                 {
                                    $unread_topics = false;
                                 }
                              }

                           }


#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#

$unread_topics=check_unread($forum_id);



#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#


                        $last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);

                        $last_post = $last_post_time . '<br />';

                        $last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
                         
                        $last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#


                        if (strlen($forum_data[$j]['topic_title'])>=25)
                        {
                           $forum_data[$j]['topic_title']=substr($forum_data[$j]['topic_title'],0,25). "...";
                        }

                        $last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
                        $last_post = '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '">'.$forum_data[$j]['topic_title'].' <img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';

                        $last_post .= '<br /> ';
                        $last_post .= ' '.$last_post_time;                         
                        $last_post .= '<br /> ';
                        $last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#


                        $l_moderators = '&nbsp;';
                        $moderator_list = '&nbsp;';

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#


                        $l_moderators = '';
                        $moderator_list = '';



#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

                        'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
                     );

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#

                     $attached_forum_count = count($attached_forums);
                     if($attached_forum_count)
                     {
                       
                  $template->assign_block_vars('catrow.forumrow.switch_attached_forums', array(
                        'L_ATTACHED_FORUMS' => ($attached_forum_count ==1)? $lang['Attached_forum']: $lang['Attached_forums']
                  ));
                  if (count($forum_moderators[$forum_id]) > 0 )
                  {
                     $template->assign_block_vars('catrow.forumrow.switch_attached_forums.br', array());
                  }
                        for($k = 0; $k < $attached_forum_count; $k++)
                        {
                           $template->assign_block_vars('catrow.forumrow.switch_attached_forums.attached_forums', array(
                              'FORUM_IMAGE' => $attached_forums[$k]['sub_img'],
                              'FORUM_NAME' => $attached_forums[$k]['sub_name'],
                              'L_FORUM_IMAGE' => $attached_forums[$k]['sub_alt'],
                              'U_VIEWFORUM' => $attached_forums[$k]['sub_url']
                           ));
                        }
                     }

   
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
     } // for ... categories

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#
   }

 
#
#-----[ ACINIZ ]------------------------------------------------
#
   modules/Forums/viewforum.php

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   $sql = "SELECT *
      FROM " . FORUMS_TABLE . "
      WHERE forum_id = $forum_id";
#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#


   $sql = "SELECT *
      FROM " . FORUMS_TABLE . "
      WHERE forum_id = $forum_id OR attached_forum_id =$forum_id
      ORDER BY attached_forum_id ASC";


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#


if ( !($forum_row = $db->sql_fetchrow($result)) )
{
   message_die(GENERAL_MESSAGE, 'Forum_not_exist');
}

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#

$attachments='';
if ($db->sql_numrows ($result) > 1)
{
   $attachments=TRUE;
}


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

 make_jumpbox('viewforum.'.$phpEx);

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]------------------------------------------
#



if ($forum_row[attached_forum_id]>0)
{
   $parent_lookup=$forum_row[attached_forum_id];
}


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
   //
   // Okay, lets dump out the page ...
   //

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#


if ($attachments)
{

      //
      // Obtain a list of topic ids which contain
      // posts made since user last visited
      //
      if ( $userdata['session_logged_in'] )
      {
         $sql = "SELECT t.forum_id, t.topic_id, p.post_time
            FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p
            WHERE p.post_id = t.topic_last_post_id
               AND p.post_time > " . $userdata['user_lastvisit'] . "
               AND t.topic_moved_id = 0";
         if ( !($result = $db->sql_query($sql)) )
         {
            message_die(GENERAL_ERROR, 'Could not query new topic information', '', __LINE__, __FILE__, $sql);
         }

         $new_topic_data = array();
         while( $topic_data = $db->sql_fetchrow($result) )
         {
            $new_topic_data[$topic_data['forum_id']][$topic_data['topic_id']] = $topic_data['post_time'];
         }
      }

      $sql2 = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id, t.topic_id, t.topic_title
         FROM ((( " . FORUMS_TABLE . " f
         LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
         LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
         LEFT JOIN " . TOPICS_TABLE . " t ON t.topic_last_post_id = f.forum_last_post_id)
         WHERE attached_forum_id = " . $forum_id . "
         GROUP by f.forum_id ORDER BY f.forum_order";

      $result2 = $db->sql_query ($sql2);
      if (!$result2 )
      {
         message_die ('Could not gather attached forum info', __LINE__, __FILE__, $sql2);
      }

      if ($db->sql_numrows ($result2) != 0)
      {
         while( $row = $db->sql_fetchrow($result2) )
         {
            $forum_data[] = $row;
         }
         $is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data);

         $x=0;
         foreach ($forum_data as $row2 => $value)
         {
            if ($is_auth_ary[$value['forum_id']]['auth_view'])
            {
               $x++;
               if ($x==1)
               {
                  $template->assign_block_vars ('switch_attached_list',
                           array( 'L_ATTACHED_FORUM' => $lang['Attached_forums'],
                               'L_ATTACHED_TOPICS' => $lang['Topics'],
                               'L_ATTACHED_POSTS' => $lang['Posts'],
                               'L_LAST_POST'=>$lang['Last_Post']
                              )
                           );

               }
               $attach_forum_link = append_sid('viewforum.php?f=' . $value['forum_id']);
               $attach_forum_name = '<a href="' . append_sid('viewforum.php?f=' . $value['forum_id']) . '">' . $value['forum_name'] . '</a>' ;
               $attach_forum_desc = $value['forum_desc'];
               $attach_forum_topics = $value['forum_topics'];
               $attach_forum_posts = $value['forum_posts'];
               $last_post_id = $value['forum_last_post_id'];

                  if ( $value['forum_status'] == FORUM_LOCKED )
               {
                  $folder_image = $images['forum_locked'];
                  $folder_alt = $lang['Forum_locked'];
               }
               else
               {
                  $unread_topics = false;
                  if ( $userdata['session_logged_in'] )
                  {
                     $unread_topics=check_unread($value['forum_id']);
                  }

                  $folder_image = ( $unread_topics ) ? $images['forum_new'] : $images['forum'];
                  $folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts'];
               }

               if ( $value['forum_last_post_id'] )
               {

                  if (strlen($value['topic_title'])>=25)
                  {
                     $value['topic_title']=substr($value['topic_title'],0,25). "...";
                  }

                  $last_post_time = create_date($board_config['default_dateformat'], $value['post_time'], $board_config['board_timezone']);
                  $last_post = '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $value['forum_last_post_id']) . '#' . $value['forum_last_post_id'] . '">'.$value['topic_title'].' <img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';

                  $last_post .= '<br /> ';
                  $last_post .= ' '.$last_post_time;   
                  $last_post .= '<br /> ';
                  $last_post .= ( $value['user_id'] == ANONYMOUS ) ? ( ($value['post_username'] != '' ) ? $value['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $value['user_id']) . '">' . $value['username'] . '</a> ';
                                       


               }
               else
               {
                  $last_post = $lang['No_Posts'];
               }




             $template->assign_block_vars ('switch_attached_list.switch_attached_present',
                               array
                               (
                                 'FORUM_FOLDER_IMG' => $folder_image,
                                 'L_FORUM_FOLDER_ALT' => $folder_alt,
                                 'FORUM_NAME' => $attach_forum_name,
                                 'U_VIEWFORUM' => $attach_forum_link,
                                 'FORUM_DESC' => $attach_forum_desc,
                                 'TOPICS' => $attach_forum_topics,
                                 'POSTS' => $attach_forum_posts,
                                 'LAST_POST_ID' => $last_post,
                               ));
            }
      }

   }
      $db->sql_freeresult ($result2);
}


#
#-----[ ACINIZ ]------------------------------------------------
#
modules/Forums/viewtopic.php

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------
#
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "

#
#-----[ BULDUGUNUZ SATIRIN ICINDE BULUNUZ ]---------------------------------
#

" . $count_sql . "

#
#-----[ BULDUGUN SATIRIN BIR ÖNCESINE  EKLE ]------------------------------------------
#

, f.attached_forum_id

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

make_jumpbox('viewforum.'.$phpEx, $forum_id);

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]------------------------------------------
#

if (intval($forum_topic_data['attached_forum_id'])>0)
{
   $parent_lookup=intval($forum_topic_data['attached_forum_id']);
}
#
#-----[ ACINIZ ]------------------------------------------------
#

modules/Forums/posting.php


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

make_jumpbox('viewforum.'.$phpEx);

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]------------------------------------------
#

if ($post_info[attached_forum_id]>0)
{
   $parent_lookup=$post_info[attached_forum_id];
}
#
#-----[ ACINIZ ]------------------------------------------------
#

   modules/Forums/templates/subSilver/admin/forum_admin_body.tpl

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
      <td class="row2"><span class="gen"><a href="{catrow.forumrow.U_VIEWFORUM}" target="_new">{catrow.forumrow.FORUM_NAME}</a></span><br /><span class="gensmall">{catrow.forumrow.FORUM_DESC}</span></td>


#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]------------------------------------------
#
      <td class="row2"><span class="gen">
   <!-- BEGIN switch_attached_forum -->
      &nbsp;&nbsp;|__
   <!-- END switch_attached_forum -->
   <!-- BEGIN switch_error -->
      ERROR
   <!-- END switch_error -->
<a href="{catrow.forumrow.U_VIEWFORUM}" target="_new">{catrow.forumrow.FORUM_NAME}</a></span><br />
<span class="gensmall">       
<!-- BEGIN switch_attached_forum -->
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!-- END switch_attached_forum -->
{catrow.forumrow.FORUM_DESC}</span></td>


#
#-----[ ACINIZ ]------------------------------------------------
#

modules/Forums/templates/subSilver/admin/forum_edit_body.tpl


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   <tr>
     <td class="row1">{L_CATEGORY}</td>
     <td class="row2"><select name="c">{S_CAT_LIST}</select></td>
   </tr>

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#

   <tr>
      <td class="row1">{L_ATTACHED_FORUM}</td>
      <td class="row2">
      <!-- BEGIN switch_attached_yes -->
      <select name="attached_forum_id">{S_ATTACHED_FORUM_ID}</select>
      <!-- END switch_attached_yes -->
      <!-- BEGIN switch_attached_no -->
      {L_DETACH_DESC} <input type="checkbox" name="detach_enabled" value="1" {S_DETACH_ENABLED} /><br />
      <!-- END switch_attached_no -->
      {L_ATTACHED_DESC}
      </td>
   </tr>


#
#-----[ ACINIZ ]------------------------------------------------
#

   themes/SITENIZIN TEMASI/forums/index_body.tpl
   modules/Forums//templates/subSilver/index_body.tpl


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>


#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]------------------------------------------------
#
     </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span>
     <!-- BEGIN switch_attached_forums -->
     <!-- BEGIN br -->
     <br />
     <!-- END br -->
     <span class="genmed">{catrow.forumrow.switch_attached_forums.L_ATTACHED_FORUMS}:
          <!-- BEGIN attached_forums -->
           <a class="nav" href="{catrow.forumrow.switch_attached_forums.attached_forums.U_VIEWFORUM}"><img alt="{catrow.forumrow.switch_attached_forums.attached_forums.L_FORUM_IMAGE}" border="0" src="{catrow.forumrow.switch_attached_forums.attached_forums.FORUM_IMAGE}" title="{catrow.forumrow.switch_attached_forums.attached_forums.L_FORUM_IMAGE}" />{catrow.forumrow.switch_attached_forums.attached_forums.FORUM_NAME}</a>
          <!-- END attached_forums -->
     <span class="genmed">
     <!-- END switch_attached_forums -->
</td>

#
#-----[ ACINIZ ]------------------------------------------------
#

   themes/SITENIZIN TEMASI/forums/viewforum_body.tpl
   modules/Forums/templates/subSilver/viewforum_body.tpl

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

     <td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]------------------------------------------------
#

     <td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>

          <!-- BEGIN switch_parent_link -->
           -> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
          <!-- END switch_parent_link -->
 -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
 
#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]-----------------------------------------
#
   
<!-- BEGIN switch_attached_list -->
   <br />
   <table width="100%" border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
     <tr>
      <th colspan="2" class="thCornerL" height="15" nowrap="nowrap">&nbsp;{switch_attached_list.L_ATTACHED_FORUM}&nbsp;</th>
      <th width="50" class="thTop" nowrap="nowrap">&nbsp;{switch_attached_list.L_ATTACHED_TOPICS}&nbsp;</th>
      <th width="50" class="thTop" nowrap="nowrap">&nbsp;{switch_attached_list.L_ATTACHED_POSTS}&nbsp;</th>
      <th width="50" class="thTop" nowrap="nowrap">&nbsp;{switch_attached_list.L_LAST_POST}&nbsp;</th>
     </tr>
   <!-- BEGIN switch_attached_present -->
   <tr>
      <td class="row1" align="center" valign="middle" height="38"><img src="{switch_attached_list.switch_attached_present.FORUM_FOLDER_IMG}" width="46" height="25" alt="{switch_attached_list.switch_attached_present.L_FORUM_FOLDER_ALT}" title="{switch_attached_list.switch_attached_present.L_FORUM_FOLDER_ALT}" /></td>
      <td class="row1" width="75%"><span class="forumlink"><a class="forumlink" href="{switch_attached_list.switch_attached_present.U_VIEWFORUM}">{switch_attached_list.switch_attached_present.FORUM_NAME}</a></span><br /><span class="genmed">{switch_attached_list.switch_attached_present.FORUM_DESC}</span></td>
      <td class="row2" align="center" valign="middle"><span class="gensmall">{switch_attached_list.switch_attached_present.TOPICS}</span></td>
      <td class="row2" align="center" valign="middle"><span class="gensmall">{switch_attached_list.switch_attached_present.POSTS}</span></td>
      <td class="row2" align="center" nowrap="nowrap" valign="middle"><span class="gensmall">{switch_attached_list.switch_attached_present.LAST_POST_ID}</span></td>
   </tr>
   <!-- END switch_attached_present -->
   </table>
   <br />
<!-- END switch_attached_list -->

 
#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
     <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]------------------------------------------------
#
     <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
          <!-- BEGIN switch_parent_link -->
           -> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
          <!-- END switch_parent_link -->
 -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>


#
#-----[ ACINIZ ]------------------------------------------------
#
   themes/SITENIZIN TEMASI/forums/viewtopic_body.tpl
   modules/Forums/templates/subSilver/viewtopic_body.tpl

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
   <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
     -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]------------------------------------------------
#
   <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
   
          <!-- BEGIN switch_parent_link -->
 -> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
          <!-- END switch_parent_link -->
 -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
   <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
     -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
     

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]------------------------------------------------
#
   <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
          <!-- BEGIN switch_parent_link -->
     -> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
          <!-- END switch_parent_link -->
     -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>

#
#-----[ ACINIZ ]------------------------------------------------
#

   themes/SITENIZIN TEMASI/forums/posting_body.tpl
   modules/Forums/templates/subSilver/posting_body.tpl

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

<td align="left"><span  class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a>

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------------
#

          <!-- BEGIN switch_parent_link -->
     -> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
          <!-- END switch_parent_link -->


#
#-----[ ACINIZ ]------------------------------------------------
#

     modules/Forums/language/lang_turkish/lang_admin.php
   
#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   //
   // That's all Folks!

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]-----------------------------------------
#

   $lang['Attached_Field_Title'] = 'Attached to forum';
   $lang['Attached_Description'] = "This field has been added by sub-forums mod.
   It will display all attachable forums (if available) in this category";
   $lang['Detach_Description'] = "Detach all forums";
   $lang['Has_attachments'] = 'This forum has other forums attached to it. If you assign new category to this forum it will move all it\'s subforums to new category unless you select detach checkbox';
   $lang['No_attach_forums'] = 'No attachable forums in this category';

   
#
#-----[ ACINIZ ]------------------------------------------------
#

    modules/Forums/language/lang_turkish/lang_main.php
   

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   //
   // That's all, Folks!

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]-----------------------------------------
#



   $lang['Attached_forum'] = 'Alt Kategori';
   $lang['Attached_forums'] = 'Alt Kategori';
   


#
#-----[ KAYDEDIN VE HEBSINI  SERVERE YOLLAYIN ]--------------------------------
#
# [b][color=red][/color][/b]
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
KaRmAkArIsIk
Mesaj: 1+
Mesaj: 1+





Kayıt: Dec 10, 2006
Mesajlar: 12

MesajTarih: 2007-01-30, 23:44:41    Mesaj konusu: Alıntıyla Cevap Gönder

yavuzbey :
insallah calıstırırsın

Kod:

#######################################################################
#
#    Bu  Mod Sayesinde Sitenizdeki forumlara  cok  Basit Bir Sekilde Alt Kategoriler Acabilirsiniz
#    Dogacak Sorunlardan  Kesinlikle Sitemiz Mesiliyet Kabul  Etmez
#                                        www.phpturk.de
#
####################################################
#  Dosyalarinizin Birer Yedeklerini Aliniz
####################################################

Asagidaki Sol  Sorgusunu phpmyadminden  sorgulatin

#################################################

ALTER TABLE `nuke_bbforums` ADD attached_forum_id MEDIUMINT(8) DEFAULT '-1' NOT NULL;

####################################################


   
#
#-----[ ACINIZ ]------------------------------------------------
#
   includes/functions.php


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

function get_db_stat($mode)
{


#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]------------------------------------------
#
   

function check_unread($forum_id)
{
global $new_topic_data, $tracking_topics, $tracking_forums, $HTTP_COOKIE_VARS, $board_config;
   if ( !empty($new_topic_data[$forum_id]) )
   {
      $forum_last_post_time = 0;

      while( list($check_topic_id, $check_post_time) = @each($new_topic_data[$forum_id]) )
      {
         if ( empty($tracking_topics[$check_topic_id]) )
         {
            $unread_topics = true;
            $forum_last_post_time = max($check_post_time, $forum_last_post_time);

         }
         else
         {
            if ( $tracking_topics[$check_topic_id] < $check_post_time )
            {
               $unread_topics = true;
               $forum_last_post_time = max($check_post_time, $forum_last_post_time);
            }
         }
      }

      if ( !empty($tracking_forums[$forum_id]) )
      {
         if ( $tracking_forums[$forum_id] > $forum_last_post_time )
         {
            $unread_topics = false;
         }
      }

      if ( isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f_all']) )
      {
         if ( $HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f_all'] > $forum_last_post_time )
         {
            $unread_topics = false;
         }
      }

   }

return $unread_topics;

}

   


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

function make_jumpbox($action, $match_forum_id = 0)
{
   global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID;


#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#

   global $parent_lookup;


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

               if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $forum_rows[$j]['auth_view'] <= AUTH_REG )
               {


#
#-----[BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]------------------------------------------
#

                  if ($parent_lookup==$forum_rows[$j]['forum_id'] && !$assigned)
                  {
                     $template->assign_block_vars('switch_parent_link', array() );

                     $template->assign_vars(array(
                        'PARENT_NAME' => $forum_rows[$j]['forum_name'],
                        'PARENT_URL'=>append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id'])
                        ));
                     $assigned=TRUE;
                  }


#
#-----[ ACINIZ ]------------------------------------------------
#

   modules/Forums/admin/admin_forums.php

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   $forumstatus = $row['forum_status'];
   
#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#
   
   
            $forum_attached_id = $row['attached_forum_id'];
            $sql = "SELECT * from ". FORUMS_TABLE. " WHERE attached_forum_id = $forum_id";
            if( !$r = $db->sql_query($sql) )
            {
               message_die(GENERAL_ERROR, "Couldn't get list of children Forums", "", __LINE__, __FILE__, $sql);
            }

            if( $db->sql_numrows($r) > 0 )
            {

               $not_attachable=1;
               $has_subforums=1;
               $template->assign_block_vars('switch_attached_no', array());
               if (intval($HTTP_POST_VARS['detach_enabled'])) $detach_enabled = "checked=\"checked\"";

            }
            else
            {

               // this forum is not a parent of any other forum
               $sql = "SELECT * FROM ". FORUMS_TABLE. " WHERE attached_forum_id=-1 and cat_id= $cat_id and forum_id<>$forum_id ORDER BY forum_order";

               if( !$result1 = $db->sql_query($sql) )
               {
                  message_die(GENERAL_ERROR, "Couldn't get list of attachable Forums", "", __LINE__, __FILE__, $sql);
               }
               if( $db->sql_numrows($result1) > 0 )
               {
                  $attachable_forums = '<option value = "-1"'.($forum_attached_id==-1?' selected':'').'> NOT ATTACHED TO ANY FORUM </a>';
                  while( $row1 = $db->sql_fetchrow($result1) )
                  {
                     $s='';
                     if ($forum_attached_id == $row1['forum_id'])
                     {
                        $s = " selected=\"selected\"";
                     }
                     $attachable_forums .= '<option value="'.$row1[forum_id].$s.'">' . $row1[forum_name] . '</option>\n';
                  }
               }
               else
               {
                  $no_attachable_forums=1;
               }

            }
   


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

            $forum_id = '';
            $prune_enabled = '';
#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#
   

               $sql = "SELECT * FROM ". FORUMS_TABLE. " WHERE attached_forum_id=-1 and cat_id= $cat_id ORDER BY forum_order";

               if( !$result1 = $db->sql_query($sql) )
               {
                  message_die(GENERAL_ERROR, "Couldn't get list of Categories/Forums", "", __LINE__, __FILE__, $sql);
               }
            if( $db->sql_numrows($result1) > 0 )
            {
               $attachable_forums = '<option value = "-1"'.(($forum_attached_id==-1 || !$forum_attached_id)?' selected':'').'> NOT ATTACHED TO ANY FORUM </a>';
               while( $row1 = $db->sql_fetchrow($result1) )
               {

                  if ($forum_attached_id == $row1['forum_id'])
                  {
                     $s = " selected=\"selected\"";
                  }
                  $attachable_forums .= '<option value="'.$row1[forum_id].$s.'">' . $row1[forum_name] . '</option>\n';
               }


            }
            else
            {
               $no_attachable_forums=1;
            }
   

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   $catlist = get_list('category', $cat_id, TRUE);

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]------------------------------------------
#

   

         $forum_attached_id = $attachable_forums;
   


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

         $s_hidden_fields = '<input type="hidden" name="mode" value="' . $newmode .'" /><input type="hidden" name="' . POST_FORUM_URL . '" value="' . $forum_id . '" />';

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#
   

         if ($not_attachable or $no_attachable_forums)
         {
            if ($has_subforums)
            {
               $lang['Attached_Description'] = $lang['Has_attachments'].'<br>'. $lang['Attached_Description'];
               $s_hidden_fields .='<input type="hidden" name="has_subforums" value="1" />';
            }
            if ($no_attachable_forums) $lang['Attached_Description'] = $lang['No_attach_forums'].'<br>'. $lang['Attached_Description'];
            $s_hidden_fields .='<input type="hidden" name="attached_forum_id" value="-1" />';
         }
         else
         {
            $template->assign_block_vars('switch_attached_yes', array());
         }
            $s_hidden_fields .='<input type="hidden" name="old_cat_id" value="'.$cat_id.'" />';
   

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
   
   'S_PRUNE_ENABLED' => $prune_enabled,

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#
   
   'S_ATTACHED_FORUM_ID' => $forum_attached_id,
   'S_DETACH_ENABLED'=> $detach_enabled,
   
     
#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   'L_CATEGORY' => $lang['Category'],

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#

   
   'L_ATTACHED_FORUM' => $lang['Attached_Field_Title'] ,
   'L_ATTACHED_DESC' => $lang['Attached_Description'],
   'L_DETACH_DESC'   => $lang['Detach_Description'],
   

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

      $sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ")
            VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#
   
   
         if (intval($HTTP_POST_VARS['old_cat_id']) != intval($HTTP_POST_VARS[POST_CAT_URL]))
         {
               $HTTP_POST_VARS['attached_forum_id']=-1;
            }

      $sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, attached_forum_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ")
            VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) .  ", " . intval($HTTP_POST_VARS['attached_forum_id']) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";



#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

            $sql = "UPDATE " . FORUMS_TABLE . "
            SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
            WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]);

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#

   
         if (isset($HTTP_POST_VARS['detach_enabled']) && isset($HTTP_POST_VARS['has_subforums']))
         {
            $sql = "UPDATE ". FORUMS_TABLE. " SET attached_forum_id=-1 WHERE attached_forum_id=" . intval($HTTP_POST_VARS[POST_FORUM_URL]);
            if( !$result = $db->sql_query($sql) )
            {
               message_die(GENERAL_ERROR, "Couldn't detach subforums", "", __LINE__, __FILE__, $sql);
            }

         }

          if (intval($HTTP_POST_VARS['old_cat_id']) != intval($HTTP_POST_VARS[POST_CAT_URL]))
            {
            $HTTP_POST_VARS['attached_forum_id']=-1;
            if (isset($HTTP_POST_VARS['has_subforums']) && !isset($HTTP_POST_VARS['detach_enabled']))
            {
               $sql = "UPDATE ". FORUMS_TABLE ." SET cat_id=". intval($HTTP_POST_VARS[POST_CAT_URL]) ." WHERE attached_forum_id=" . intval($HTTP_POST_VARS[POST_FORUM_URL]);
               if( !$result = $db->sql_query($sql) )
               {
                  message_die(GENERAL_ERROR, "Couldn't update subforums to new category", "", __LINE__, __FILE__, $sql);
               }

            }
         }

         $sql = "UPDATE " . FORUMS_TABLE . "
            SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) .", attached_forum_id = " . intval($HTTP_POST_VARS['attached_forum_id']) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
            WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]);
   

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   if( $total_forums = $db->sql_numrows($q_forums) )
   {
      $forum_rows = $db->sql_fetchrowset($q_forums);
   }

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#

   $subforum_rows=$forum_rows;


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

            $template->assign_block_vars("catrow.forumrow",   array(
               'FORUM_NAME' => $forum_rows[$j]['forum_name'],
               'FORUM_DESC' => $forum_rows[$j]['forum_desc'],
               'ROW_COLOR' => $row_color,
               'NUM_TOPICS' => $forum_rows[$j]['forum_topics'],
               'NUM_POSTS' => $forum_rows[$j]['forum_posts'],

               'U_VIEWFORUM' => append_sid($phpbb_root_path."viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"),
               'U_FORUM_EDIT' => append_sid("admin_forums.$phpEx?mode=editforum&amp;" . POST_FORUM_URL . "=$forum_id"),
               'U_FORUM_DELETE' => append_sid("admin_forums.$phpEx?mode=deleteforum&amp;" . POST_FORUM_URL . "=$forum_id"),
               'U_FORUM_MOVE_UP' => append_sid("admin_forums.$phpEx?mode=forum_order&amp;move=-15&amp;" . POST_FORUM_URL . "=$forum_id"),
               'U_FORUM_MOVE_DOWN' => append_sid("admin_forums.$phpEx?mode=forum_order&amp;move=15&amp;" . POST_FORUM_URL . "=$forum_id"),
               'U_FORUM_RESYNC' => append_sid("admin_forums.$phpEx?mode=forum_sync&amp;" . POST_FORUM_URL . "=$forum_id"))
            );

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#

            $sub_error=false;
            $do_template=false;
            if ($forum_rows[$j]['attached_forum_id'] !=-1)
            {
            $ok='';
               for($k = 0; $k < $total_forums; $k++)
               {
                  $subforum_id = $subforum_rows[$k]['forum_id'];

                  if ($subforum_id == $forum_rows[$j]['attached_forum_id'] && $forum_rows[$k]['attached_forum_id']==-1)
                  {
                     $ok=TRUE;//normal parent found
                  }
               }
               if ($forum_rows[$j]['attached_forum_id']==$forum_id) $ok=FALSE; //attached to itself
               if ($forum_rows[$j]['attached_forum_id']==0) $ok=FALSE; //invalid parent
               if (!$ok)
               {
                  $do_template=TRUE;
                  $sub_error=true;
               }
            }
            else
            {
               $do_template=true;
            }//attached_forum_id'] ==-1


            if ($do_template)
            {
               $template->assign_block_vars("catrow.forumrow",   array(
                  'FORUM_NAME' => $forum_rows[$j]['forum_name'],
                  'FORUM_DESC' => $forum_rows[$j]['forum_desc'],
                  'ROW_COLOR' => $row_color,
                  'NUM_TOPICS' => $forum_rows[$j]['forum_topics'],
                  'NUM_POSTS' => $forum_rows[$j]['forum_posts'],

                  'U_VIEWFORUM' => append_sid($phpbb_root_path."viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"),
                  'U_FORUM_EDIT' => append_sid("admin_forums.$phpEx?mode=editforum&amp;" . POST_FORUM_URL . "=$forum_id"),
                  'U_FORUM_DELETE' => append_sid("admin_forums.$phpEx?mode=deleteforum&amp;" . POST_FORUM_URL . "=$forum_id"),
                  'U_FORUM_MOVE_UP' => append_sid("admin_forums.$phpEx?mode=forum_order&amp;move=-15&amp;" . POST_FORUM_URL . "=$forum_id"),
                  'U_FORUM_MOVE_DOWN' => append_sid("admin_forums.$phpEx?mode=forum_order&amp;move=15&amp;" . POST_FORUM_URL . "=$forum_id"),
                  'U_FORUM_RESYNC' => append_sid("admin_forums.$phpEx?mode=forum_sync&amp;" . POST_FORUM_URL . "=$forum_id"))
               );
               if ($sub_error)
               {
                  $template->assign_block_vars ('catrow.forumrow.switch_error',array());
               }

               for($k = 0; $k < $total_forums; $k++)
               {
                  $subforum_id = $subforum_rows[$k]['forum_id'];
                  if ($subforum_rows[$k]['attached_forum_id'] == $forum_id)
                  {
                     $template->assign_block_vars("catrow.forumrow",   array(
                        'FORUM_NAME' => $subforum_rows[$k]['forum_name'],
                        'FORUM_DESC' => $subforum_rows[$k]['forum_desc'],
                        'ROW_COLOR' => $row_color,
                        'NUM_TOPICS' => $subforum_rows[$k]['forum_topics'],
                        'NUM_POSTS' => $subforum_rows[$k]['forum_posts'],

                        'U_VIEWFORUM' => append_sid($phpbb_root_path."viewforum.$phpEx?" . POST_FORUM_URL . "=$subforum_id"),
                        'U_FORUM_EDIT' => append_sid("admin_forums.$phpEx?mode=editforum&amp;" . POST_FORUM_URL . "=$subforum_id"),
                        'U_FORUM_DELETE' => append_sid("admin_forums.$phpEx?mode=deleteforum&amp;" . POST_FORUM_URL . "=$subforum_id"),
                        'U_FORUM_MOVE_UP' => append_sid("admin_forums.$phpEx?mode=forum_order&amp;move=-15&amp;" . POST_FORUM_URL . "=$subforum_id"),
                        'U_FORUM_MOVE_DOWN' => append_sid("admin_forums.$phpEx?mode=forum_order&amp;move=15&amp;" . POST_FORUM_URL . "=$subforum_id"),
                        'U_FORUM_RESYNC' => append_sid("admin_forums.$phpEx?mode=forum_sync&amp;" . POST_FORUM_URL . "=$subforum_id"))
                     );
                     $template->assign_block_vars ('catrow.forumrow.switch_attached_forum',array());
                  }
               }
            }


#
#-----[ ACINIZ ]------------------------------------------------
#

   modules/Forums/index.php


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

         $sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
            FROM (( " . FORUMS_TABLE . " f
            LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
            LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
            ORDER BY f.cat_id, f.forum_order";
#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#
   

         $sql = "SELECT f.*, p.post_time, p.post_username,  u.username, u.user_id, t.topic_id, t.topic_title
            FROM ((( " . FORUMS_TABLE . " f
            LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
            LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
            LEFT JOIN " . TOPICS_TABLE . " t ON t.topic_last_post_id = f.forum_last_post_id)
            GROUP BY f.forum_id ORDER BY f.cat_id, f.forum_order";
   



#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   {
      $forum_data[] = $row;
   }

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#
   
   
   $attach=$forum_data;
   
   
#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   $forum_id = $forum_data[$j]['forum_id'];


#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#



   $attached_id = $forum_data[$j]['attached_forum_id'];
                  if ( $is_auth_ary[$forum_id]['auth_view'] && $attached_id == -1 )
                  {
                     $attached_forums = array();
                     foreach ($attach as $key => $value)
                     {
                        $sub_forum_id = $value['forum_id'];
                        if ($value['attached_forum_id']==$forum_id && $is_auth_ary[$sub_forum_id]['auth_view'])
                        {
                           //combining topic and post count for forum and subforums
                           $forum_data[$j]['forum_posts']=$forum_data[$j]['forum_posts']+$value['forum_posts'];
                           $forum_data[$j]['forum_topics']=$forum_data[$j]['forum_topics']+$value['forum_topics'];
                           //END combining topic and post count

                           //Last post link - check if any of subforums have newest posts and link to them instead
                           if ($value['post_time']>$forum_data[$j]['post_time'])
                           {
                              $forum_data[$j]['user_id'] = $value['user_id'];
                              $forum_data[$j]['post_username'] = $value['post_username'];
                              $forum_data[$j]['forum_last_post_id'] = $value['forum_last_post_id'];
                              $forum_data[$j]['post_time'] = $value['post_time'];
                              $forum_data[$j]['username'] = $value['username'];
                              $forum_data[$j]['topic_title'] = $value['topic_title'];
                           }
                           // END last post check

                           $unread_topics = false;
                           if ( $userdata['session_logged_in'] )
                           {
                              if (check_unread($value['forum_id']))
                              {
                                 $attach_img = $images['icon_minipost_new'];
                                 $l_attach_img = $lang['New_posts'];
                              }
                              else
                              {
                                 $attach_img = $images['icon_minipost'];
                                 $l_attach_img = $lang['No_new_posts'];
                              }
                           }
                           else
                           {
                              $attach_img = $images['icon_minipost'];
                              $l_attach_img = $lang['No_new_posts'];
                           }

                           $attached_forums[] = array(
                              'sub_img'=>$attach_img,
                              'sub_alt'=>$l_attach_img,
                              'sub_name'=>$value['forum_name'],
                              'sub_url'=>append_sid ('viewforum.php?f=' . $value['forum_id'] )
                              );
                        }
                     }
                     


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#


                           if ( !empty($new_topic_data[$forum_id]) )
                           {
                              $forum_last_post_time = 0;

                              while( list($check_topic_id, $check_post_time) = @each($new_topic_data[$forum_id]) )
                              {
                                 if ( empty($tracking_topics[$check_topic_id]) )
                                 {
                                    $unread_topics = true;
                                    $forum_last_post_time = max($check_post_time, $forum_last_post_time);

                                 }
                                 else
                                 {
                                    if ( $tracking_topics[$check_topic_id] < $check_post_time )
                                    {
                                       $unread_topics = true;
                                       $forum_last_post_time = max($check_post_time, $forum_last_post_time);
                                    }
                                 }
                              }

                              if ( !empty($tracking_forums[$forum_id]) )
                              {
                                 if ( $tracking_forums[$forum_id] > $forum_last_post_time )
                                 {
                                    $unread_topics = false;
                                 }
                              }

                              if ( isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f_all']) )
                              {
                                 if ( $HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f_all'] > $forum_last_post_time )
                                 {
                                    $unread_topics = false;
                                 }
                              }

                           }


#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#

$unread_topics=check_unread($forum_id);



#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#


                        $last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);

                        $last_post = $last_post_time . '<br />';

                        $last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
                         
                        $last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#


                        if (strlen($forum_data[$j]['topic_title'])>=25)
                        {
                           $forum_data[$j]['topic_title']=substr($forum_data[$j]['topic_title'],0,25). "...";
                        }

                        $last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
                        $last_post = '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '">'.$forum_data[$j]['topic_title'].' <img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';

                        $last_post .= '<br /> ';
                        $last_post .= ' '.$last_post_time;                         
                        $last_post .= '<br /> ';
                        $last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#


                        $l_moderators = '&nbsp;';
                        $moderator_list = '&nbsp;';

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#


                        $l_moderators = '';
                        $moderator_list = '';



#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

                        'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
                     );

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#

                     $attached_forum_count = count($attached_forums);
                     if($attached_forum_count)
                     {
                       
                  $template->assign_block_vars('catrow.forumrow.switch_attached_forums', array(
                        'L_ATTACHED_FORUMS' => ($attached_forum_count ==1)? $lang['Attached_forum']: $lang['Attached_forums']
                  ));
                  if (count($forum_moderators[$forum_id]) > 0 )
                  {
                     $template->assign_block_vars('catrow.forumrow.switch_attached_forums.br', array());
                  }
                        for($k = 0; $k < $attached_forum_count; $k++)
                        {
                           $template->assign_block_vars('catrow.forumrow.switch_attached_forums.attached_forums', array(
                              'FORUM_IMAGE' => $attached_forums[$k]['sub_img'],
                              'FORUM_NAME' => $attached_forums[$k]['sub_name'],
                              'L_FORUM_IMAGE' => $attached_forums[$k]['sub_alt'],
                              'U_VIEWFORUM' => $attached_forums[$k]['sub_url']
                           ));
                        }
                     }

   
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
     } // for ... categories

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#
   }

 
#
#-----[ ACINIZ ]------------------------------------------------
#
   modules/Forums/viewforum.php

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   $sql = "SELECT *
      FROM " . FORUMS_TABLE . "
      WHERE forum_id = $forum_id";
#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]----------------------------------------
#


   $sql = "SELECT *
      FROM " . FORUMS_TABLE . "
      WHERE forum_id = $forum_id OR attached_forum_id =$forum_id
      ORDER BY attached_forum_id ASC";


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#


if ( !($forum_row = $db->sql_fetchrow($result)) )
{
   message_die(GENERAL_MESSAGE, 'Forum_not_exist');
}

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#

$attachments='';
if ($db->sql_numrows ($result) > 1)
{
   $attachments=TRUE;
}


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

 make_jumpbox('viewforum.'.$phpEx);

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]------------------------------------------
#



if ($forum_row[attached_forum_id]>0)
{
   $parent_lookup=$forum_row[attached_forum_id];
}


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
   //
   // Okay, lets dump out the page ...
   //

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#


if ($attachments)
{

      //
      // Obtain a list of topic ids which contain
      // posts made since user last visited
      //
      if ( $userdata['session_logged_in'] )
      {
         $sql = "SELECT t.forum_id, t.topic_id, p.post_time
            FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p
            WHERE p.post_id = t.topic_last_post_id
               AND p.post_time > " . $userdata['user_lastvisit'] . "
               AND t.topic_moved_id = 0";
         if ( !($result = $db->sql_query($sql)) )
         {
            message_die(GENERAL_ERROR, 'Could not query new topic information', '', __LINE__, __FILE__, $sql);
         }

         $new_topic_data = array();
         while( $topic_data = $db->sql_fetchrow($result) )
         {
            $new_topic_data[$topic_data['forum_id']][$topic_data['topic_id']] = $topic_data['post_time'];
         }
      }

      $sql2 = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id, t.topic_id, t.topic_title
         FROM ((( " . FORUMS_TABLE . " f
         LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
         LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
         LEFT JOIN " . TOPICS_TABLE . " t ON t.topic_last_post_id = f.forum_last_post_id)
         WHERE attached_forum_id = " . $forum_id . "
         GROUP by f.forum_id ORDER BY f.forum_order";

      $result2 = $db->sql_query ($sql2);
      if (!$result2 )
      {
         message_die ('Could not gather attached forum info', __LINE__, __FILE__, $sql2);
      }

      if ($db->sql_numrows ($result2) != 0)
      {
         while( $row = $db->sql_fetchrow($result2) )
         {
            $forum_data[] = $row;
         }
         $is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data);

         $x=0;
         foreach ($forum_data as $row2 => $value)
         {
            if ($is_auth_ary[$value['forum_id']]['auth_view'])
            {
               $x++;
               if ($x==1)
               {
                  $template->assign_block_vars ('switch_attached_list',
                           array( 'L_ATTACHED_FORUM' => $lang['Attached_forums'],
                               'L_ATTACHED_TOPICS' => $lang['Topics'],
                               'L_ATTACHED_POSTS' => $lang['Posts'],
                               'L_LAST_POST'=>$lang['Last_Post']
                              )
                           );

               }
               $attach_forum_link = append_sid('viewforum.php?f=' . $value['forum_id']);
               $attach_forum_name = '<a href="' . append_sid('viewforum.php?f=' . $value['forum_id']) . '">' . $value['forum_name'] . '</a>' ;
               $attach_forum_desc = $value['forum_desc'];
               $attach_forum_topics = $value['forum_topics'];
               $attach_forum_posts = $value['forum_posts'];
               $last_post_id = $value['forum_last_post_id'];

                  if ( $value['forum_status'] == FORUM_LOCKED )
               {
                  $folder_image = $images['forum_locked'];
                  $folder_alt = $lang['Forum_locked'];
               }
               else
               {
                  $unread_topics = false;
                  if ( $userdata['session_logged_in'] )
                  {
                     $unread_topics=check_unread($value['forum_id']);
                  }

                  $folder_image = ( $unread_topics ) ? $images['forum_new'] : $images['forum'];
                  $folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts'];
               }

               if ( $value['forum_last_post_id'] )
               {

                  if (strlen($value['topic_title'])>=25)
                  {
                     $value['topic_title']=substr($value['topic_title'],0,25). "...";
                  }

                  $last_post_time = create_date($board_config['default_dateformat'], $value['post_time'], $board_config['board_timezone']);
                  $last_post = '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $value['forum_last_post_id']) . '#' . $value['forum_last_post_id'] . '">'.$value['topic_title'].' <img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';

                  $last_post .= '<br /> ';
                  $last_post .= ' '.$last_post_time;   
                  $last_post .= '<br /> ';
                  $last_post .= ( $value['user_id'] == ANONYMOUS ) ? ( ($value['post_username'] != '' ) ? $value['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $value['user_id']) . '">' . $value['username'] . '</a> ';
                                       


               }
               else
               {
                  $last_post = $lang['No_Posts'];
               }




             $template->assign_block_vars ('switch_attached_list.switch_attached_present',
                               array
                               (
                                 'FORUM_FOLDER_IMG' => $folder_image,
                                 'L_FORUM_FOLDER_ALT' => $folder_alt,
                                 'FORUM_NAME' => $attach_forum_name,
                                 'U_VIEWFORUM' => $attach_forum_link,
                                 'FORUM_DESC' => $attach_forum_desc,
                                 'TOPICS' => $attach_forum_topics,
                                 'POSTS' => $attach_forum_posts,
                                 'LAST_POST_ID' => $last_post,
                               ));
            }
      }

   }
      $db->sql_freeresult ($result2);
}


#
#-----[ ACINIZ ]------------------------------------------------
#
modules/Forums/viewtopic.php

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------
#
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "

#
#-----[ BULDUGUNUZ SATIRIN ICINDE BULUNUZ ]---------------------------------
#

" . $count_sql . "

#
#-----[ BULDUGUN SATIRIN BIR ÖNCESINE  EKLE ]------------------------------------------
#

, f.attached_forum_id

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

make_jumpbox('viewforum.'.$phpEx, $forum_id);

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]------------------------------------------
#

if (intval($forum_topic_data['attached_forum_id'])>0)
{
   $parent_lookup=intval($forum_topic_data['attached_forum_id']);
}
#
#-----[ ACINIZ ]------------------------------------------------
#

modules/Forums/posting.php


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

make_jumpbox('viewforum.'.$phpEx);

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]------------------------------------------
#

if ($post_info[attached_forum_id]>0)
{
   $parent_lookup=$post_info[attached_forum_id];
}
#
#-----[ ACINIZ ]------------------------------------------------
#

   modules/Forums/templates/subSilver/admin/forum_admin_body.tpl

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
      <td class="row2"><span class="gen"><a href="{catrow.forumrow.U_VIEWFORUM}" target="_new">{catrow.forumrow.FORUM_NAME}</a></span><br /><span class="gensmall">{catrow.forumrow.FORUM_DESC}</span></td>


#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]------------------------------------------
#
      <td class="row2"><span class="gen">
   <!-- BEGIN switch_attached_forum -->
      &nbsp;&nbsp;|__
   <!-- END switch_attached_forum -->
   <!-- BEGIN switch_error -->
      ERROR
   <!-- END switch_error -->
<a href="{catrow.forumrow.U_VIEWFORUM}" target="_new">{catrow.forumrow.FORUM_NAME}</a></span><br />
<span class="gensmall">       
<!-- BEGIN switch_attached_forum -->
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!-- END switch_attached_forum -->
{catrow.forumrow.FORUM_DESC}</span></td>


#
#-----[ ACINIZ ]------------------------------------------------
#

modules/Forums/templates/subSilver/admin/forum_edit_body.tpl


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   <tr>
     <td class="row1">{L_CATEGORY}</td>
     <td class="row2"><select name="c">{S_CAT_LIST}</select></td>
   </tr>

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------
#

   <tr>
      <td class="row1">{L_ATTACHED_FORUM}</td>
      <td class="row2">
      <!-- BEGIN switch_attached_yes -->
      <select name="attached_forum_id">{S_ATTACHED_FORUM_ID}</select>
      <!-- END switch_attached_yes -->
      <!-- BEGIN switch_attached_no -->
      {L_DETACH_DESC} <input type="checkbox" name="detach_enabled" value="1" {S_DETACH_ENABLED} /><br />
      <!-- END switch_attached_no -->
      {L_ATTACHED_DESC}
      </td>
   </tr>


#
#-----[ ACINIZ ]------------------------------------------------
#

   themes/SITENIZIN TEMASI/forums/index_body.tpl
   modules/Forums//templates/subSilver/index_body.tpl


#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>


#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]------------------------------------------------
#
     </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span>
     <!-- BEGIN switch_attached_forums -->
     <!-- BEGIN br -->
     <br />
     <!-- END br -->
     <span class="genmed">{catrow.forumrow.switch_attached_forums.L_ATTACHED_FORUMS}:
          <!-- BEGIN attached_forums -->
           <a class="nav" href="{catrow.forumrow.switch_attached_forums.attached_forums.U_VIEWFORUM}"><img alt="{catrow.forumrow.switch_attached_forums.attached_forums.L_FORUM_IMAGE}" border="0" src="{catrow.forumrow.switch_attached_forums.attached_forums.FORUM_IMAGE}" title="{catrow.forumrow.switch_attached_forums.attached_forums.L_FORUM_IMAGE}" />{catrow.forumrow.switch_attached_forums.attached_forums.FORUM_NAME}</a>
          <!-- END attached_forums -->
     <span class="genmed">
     <!-- END switch_attached_forums -->
</td>

#
#-----[ ACINIZ ]------------------------------------------------
#

   themes/SITENIZIN TEMASI/forums/viewforum_body.tpl
   modules/Forums/templates/subSilver/viewforum_body.tpl

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

     <td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]------------------------------------------------
#

     <td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>

          <!-- BEGIN switch_parent_link -->
           -> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
          <!-- END switch_parent_link -->
 -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
 
#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]-----------------------------------------
#
   
<!-- BEGIN switch_attached_list -->
   <br />
   <table width="100%" border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
     <tr>
      <th colspan="2" class="thCornerL" height="15" nowrap="nowrap">&nbsp;{switch_attached_list.L_ATTACHED_FORUM}&nbsp;</th>
      <th width="50" class="thTop" nowrap="nowrap">&nbsp;{switch_attached_list.L_ATTACHED_TOPICS}&nbsp;</th>
      <th width="50" class="thTop" nowrap="nowrap">&nbsp;{switch_attached_list.L_ATTACHED_POSTS}&nbsp;</th>
      <th width="50" class="thTop" nowrap="nowrap">&nbsp;{switch_attached_list.L_LAST_POST}&nbsp;</th>
     </tr>
   <!-- BEGIN switch_attached_present -->
   <tr>
      <td class="row1" align="center" valign="middle" height="38"><img src="{switch_attached_list.switch_attached_present.FORUM_FOLDER_IMG}" width="46" height="25" alt="{switch_attached_list.switch_attached_present.L_FORUM_FOLDER_ALT}" title="{switch_attached_list.switch_attached_present.L_FORUM_FOLDER_ALT}" /></td>
      <td class="row1" width="75%"><span class="forumlink"><a class="forumlink" href="{switch_attached_list.switch_attached_present.U_VIEWFORUM}">{switch_attached_list.switch_attached_present.FORUM_NAME}</a></span><br /><span class="genmed">{switch_attached_list.switch_attached_present.FORUM_DESC}</span></td>
      <td class="row2" align="center" valign="middle"><span class="gensmall">{switch_attached_list.switch_attached_present.TOPICS}</span></td>
      <td class="row2" align="center" valign="middle"><span class="gensmall">{switch_attached_list.switch_attached_present.POSTS}</span></td>
      <td class="row2" align="center" nowrap="nowrap" valign="middle"><span class="gensmall">{switch_attached_list.switch_attached_present.LAST_POST_ID}</span></td>
   </tr>
   <!-- END switch_attached_present -->
   </table>
   <br />
<!-- END switch_attached_list -->

 
#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
     <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]------------------------------------------------
#
     <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
          <!-- BEGIN switch_parent_link -->
           -> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
          <!-- END switch_parent_link -->
 -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>


#
#-----[ ACINIZ ]------------------------------------------------
#
   themes/SITENIZIN TEMASI/forums/viewtopic_body.tpl
   modules/Forums/templates/subSilver/viewtopic_body.tpl

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
   <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
     -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]------------------------------------------------
#
   <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
   
          <!-- BEGIN switch_parent_link -->
 -> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
          <!-- END switch_parent_link -->
 -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#
   <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
     -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
     

#
#-----[ BULDUGUNUZ KODU ASAGIDAKI KODLA DEGISTIRINIZ ]------------------------------------------------
#
   <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
          <!-- BEGIN switch_parent_link -->
     -> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
          <!-- END switch_parent_link -->
     -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>

#
#-----[ ACINIZ ]------------------------------------------------
#

   themes/SITENIZIN TEMASI/forums/posting_body.tpl
   modules/Forums/templates/subSilver/posting_body.tpl

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

<td align="left"><span  class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a>

#
#-----[ BULDUGUNUZ KODUN BIR ALTINA EKLEYINIZ ]------------------------------------------------
#

          <!-- BEGIN switch_parent_link -->
     -> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
          <!-- END switch_parent_link -->


#
#-----[ ACINIZ ]------------------------------------------------
#

     modules/Forums/language/lang_turkish/lang_admin.php
   
#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   //
   // That's all Folks!

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]-----------------------------------------
#

   $lang['Attached_Field_Title'] = 'Attached to forum';
   $lang['Attached_Description'] = "This field has been added by sub-forums mod.
   It will display all attachable forums (if available) in this category";
   $lang['Detach_Description'] = "Detach all forums";
   $lang['Has_attachments'] = 'This forum has other forums attached to it. If you assign new category to this forum it will move all it\'s subforums to new category unless you select detach checkbox';
   $lang['No_attach_forums'] = 'No attachable forums in this category';

   
#
#-----[ ACINIZ ]------------------------------------------------
#

    modules/Forums/language/lang_turkish/lang_main.php
   

#
#-----[ BULUNUZ ASAGIDAKI  KODLARI ]------------------------------------------------
#

   //
   // That's all, Folks!

#
#-----[ BULDUGUNUZ KODUN BIR ÖNCESINE EKLEYINIZ ]-----------------------------------------
#



   $lang['Attached_forum'] = 'Alt Kategori';
   $lang['Attached_forums'] = 'Alt Kategori';
   


#
#-----[ KAYDEDIN VE HEBSINI  SERVERE YOLLAYIN ]--------------------------------
#
# [b][color=red][/color][/b]
Bu çalışmıyor Sad Aynen yaptım herşeyi Forumda beyaz sayfa çıkıyor! YARDIM plsss
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
ultrAslanYavuz
Tema Sorumlusu
Tema Sorumlusu





Kayıt: Jun 25, 2006
Mesajlar: 1217

MesajTarih: 2007-01-31, 00:10:19    Mesaj konusu: Alıntıyla Cevap Gönder

bende nasıl calıstı. :S
www.ispirim.org/Forums.asp
Başa dön
Kullanıcının profilini görüntüle Özel mesaj 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 -> NukeBB Eklentileri 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 Bir modülün admin file'ını kullanıcıl... deviLinsidE Php Nuke Sorunlarınız 1 2010-07-16, 12:26:25 Son Mesajı Görüntüle
Yeni mesaj yok Admin panelindeki simge çıkmıyor maximatrax Php Nuke Modülleri 9 2010-06-03, 11:38:46 Son Mesajı Görüntüle
Yeni mesaj yok Forum Admin Panelde Kullanıcı Mail Li... ArKaDaSiM NukeBB Eklentileri 1 2010-06-01, 23:42:33 Son Mesajı Görüntüle
Yeni mesaj yok Admin Paneli Ve Üye Girişi İle İlgili Webkrali Php Nuke Sorunlarınız 1 2010-05-31, 03:10:43 Son Mesajı Görüntüle
Yeni mesaj yok Admin panelden linklere tıklanınca Lo... bybedircan Php Nuke Sorunlarınız 3 2010-05-23, 10:26:02 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