[MOD] Pseudo sub-forums / Alt Forum (Çok basit kurulum)

[url=http://www.phpbbturkey.com/mods.html:34cnv4ga]phpBB 2.0.x MOD Veritabanımızda[/url:34cnv4ga] yayınlanan ve tarafınızca eklenen tüm yeni phpBB 2.0.x sürümleri için MODların duyuruları buradan yapılmaktadır. MODlar hakkında ihtiyacınız olan desteği lütfen [b:34cnv4ga]2.0.x MOD Destek[/b:34cnv4ga] forumuna başlık açarak sorunuz.
Kullanıcı avatarı
NEFRİT
Uzaklaştırıldı
Mesajlar: 1404
Kayıt: 28.01.2006, 04:15
Konum: DarkKingdom
İletişim:

[MOD] Pseudo sub-forums / Alt Forum (Çok basit kurulum)

Mesaj gönderen NEFRİT »

10 DK DA ALT FORUM

Alt forumların zorluğundan, kurdukran sonra sorunlar çıkmasından şikayet eden yeni mod kurmayı öğrenen phpBB kullanıcıları için araştırdım ve en kolay alt forum sistemini kapıp getirdim.

Bu alt forum sistemi ne easy sub forums nede simple sub forum değildir. Ayrıca kurulumu demin saydığım bu 2 farklı alt forum sisteminden daha kısadır.

Paralı satılan vbulletin forumunda vede phpbb Plus sisteminde olduğu gibi forumunuza bu mod ile istediğiniz kadar alt forum ekleyebilirsiniz. Hatta bu mod o kadar kolaydır ki nuke gelşitiricileri ancak bu modu kendi nuke sistemlerine çevirmeyi başarabilmişler ve nukeye bile bu modu çevirmişlerdir.


İşte 10 dakikada kurulumlu alt forum sistemi :

Kod: Tümünü seç

############################################################## 
## MOD Title: Attached forums or pseudo sub-forums MOD 
## MOD Author: harishankar < v_harishankar@yahoo.co.in > (Harishankar) http://literaryforums.org 
## MOD Description: This mod allows you to "attach" specific forums to another so that they are not displayed on the main index page but inside another forum. This emulates the sub-forums features but does not really create true sub-forum functionality. 
## 
## MOD Version: 1.0.1 (alpha) 
## 
## Installation Level: (Easy) 
## Installation Time: 10 Minutes 
## Files To Edit:    admin/admin_forums.php 
##                  templates/subSilver/admin/forum_edit_body.tpl 
##                  index.php 
##                  templates/subSilver/index_body.tpl 
##                  viewforum.php 
##                  templates/subSilver/viewforum_body.tpl 
##                  language/lang_english/lang_main.php 
##                  language/lang_english/lang_admin.php 
## 
## Included Files: (n/a) 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
## 
##      Test this MOD in a testing/isolated enviroment. Although 
##      no obvious bugs have been found yet, this MOD *should* 
##      work in a live environment as well. I am well aware of 
##      certain features missing. That is due to two reasons: 
## 
##      1. I don't want to make this MOD too difficult and 
##         cumbersome to install which I wanted to avoid. 
##      2. To add certain features like "last post" on index 
##         to integrate with this MOD a lot of functionality 
##         will have to be duplicated. 
## 
############################################################## 
## MOD History: 
## 
##   2004-12-11 - Version 1.0.1 
##      - Alpha release :) 
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ SQL ]------------------------------------------------- 
# 
#       If your phpbb table prefix is different, then change it to 
#      reflect the correct one. 
# 
     ALTER TABLE phpbb_forums ADD attached_forum_id MEDIUMINT(8) DEFAULT '-1' NOT NULL; 

# 
#-----[ OPEN ]------------------------------------------------ 
# 
   admin/admin_forums.php 

# 
#-----[ FIND ]------------------------------------------------ 
# 
   $forumstatus = $row['forum_status']; 
    
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
   // Added by Harishankar's Attached Forums MOD 
   $forum_attached_id = $row['attached_forum_id']; 
   // End add 

# 
#-----[ FIND ]------------------------------------------------ 
# 
    
   'S_PRUNE_ENABLED' => $prune_enabled, 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
   // Added by Harishankar's Attached Forums MOD 
   'S_ATTACHED_FORUM_ID' => $forum_attached_id, 
   // End add 
       
# 
#-----[ FIND ]------------------------------------------------ 
# 
   'L_CATEGORY' => $lang['Category'], 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

   // Added by Harishankar's Attached Forums MOD 
   'L_ATTACHED_FORUM' => $lang['Attached_Field_Title'] , 
   'L_ATTACHED_DESC' => $lang['Attached_Description'], 
   // End add 

# 
#-----[ FIND ]------------------------------------------------ 
# 
   $sql = "INSERT INTO " . FORUMS_TABLE . 

# 
#-----[ IN-LINE FIND ]---------------------------------------- 
# 
   cat_id, 

# 
#-----[ IN-LINE AFTER, ADD ]----------------------------------- 
#       
   attached_forum_id, 
    
# 
#-----[ IN-LINE FIND ]----------------------------------------- 
# 
   intval($HTTP_POST_VARS[POST_CAT_URL]) . 

# 
#-----[ IN-LINE AFTER, ADD ]----------------------------------- 
# 
   ", " . intval($HTTP_POST_VARS['attached_forum_id']) . 

# 
#-----[ FIND ]------------------------------------------------ 
# 
   $sql = "UPDATE " . FORUMS_TABLE . " 
      SET forum_name = '" . 

# 
#-----[ IN-LINE FIND ]---------------------------------------- 
# 
   cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . 
    
# 
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
# 
   ", attached_forum_id = " . intval($HTTP_POST_VARS['attached_forum_id']) . 

# 
#-----[ OPEN ]------------------------------------------------ 
# 
   templates/subSilver/admin/forum_edit_body.tpl 

#-----[ FIND ]------------------------------------------------ 
    
   <tr> 
     <td class="row1">{L_CATEGORY}</td> 
     <td class="row2"><select name="c">{S_CAT_LIST}</select></td> 
   </tr> 

#-----[ AFTER, ADD ]------------------------------------------ 

   <tr> 
     <td class="row1">{L_ATTACHED_FORUM}</td> 
     <td class="row2"><input type="text" name="attached_forum_id" value="{S_ATTACHED_FORUM_ID}" class="post" /><br />{L_ATTACHED_DESC}</td> 
   </tr> 

# 
#-----[ OPEN ]------------------------------------------------ 
# 
   index.php 

# 
#-----[ FIND ]------------------------------------------------ 
# 
   $forum_id = $forum_data[$j]['forum_id']; 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
   // Added by Harishankar's Attached Forums MOD 
   $attached_id = $forum_data[$j]['attached_forum_id']; 
   // End add 

# 
#-----[ FIND ]------------------------------------------------ 
# 
    
   if ( $is_auth_ary[$forum_id]['auth_view'] ) 

# 
#-----[ REPLACE WITH ]---------------------------------------- 
# 
    
   if ( $is_auth_ary[$forum_id]['auth_view'] && $attached_id == -1 ) 

# 
#-----[ FIND ]------------------------------------------------ 
# 
    
   if ( $forum_data[$j]['forum_status'] == FORUM_LOCKED ) 
   { 
      $folder_image = $images['forum_locked']; 
      $folder_alt = $lang['Forum_locked']; 
   } 
    
# 
#-----[ BEFORE, ADD ]----------------------------------------- 
# 
   // Added by Harishankar's Attached Forums MOD 
   $sql2 = "SELECT forum_name, forum_id FROM " . FORUMS_TABLE . " 
         WHERE attached_forum_id = " . $forum_id ; 
   $result2 = $db->sql_query ($sql2); 
   $list_of_attached = ''; 
    
   if (! $result2 ) 
   { 
      message_die(GENERAL_ERROR, 'Could not get attached forums.', '', __LINE__, __FILE__, $sql); 
   } 
   $count_attached = $db->sql_numrows ($result2); 
   if ($count_attached == 1) 
      $list_of_attached = $lang['Attached_forum'] . ': '; 
   else if ($count_attached > 1) 
      $list_of_attached = $lang['Attached_forums'] . ': '; 
    
   if ($count_attached != 0) 
   { 
      $row2 = $db->sql_fetchrow ($result2); 
      do 
      { 
         if ($row2) 
         { 
            $url_row2 = '<a href="' . append_sid ('viewforum.php?f=' . $row2['forum_id'] ) . '">' . $row2['forum_name'] . '</a>' ; 
             
            $list_of_attached = $list_of_attached . $url_row2 ; 
         } 
         $row2 = $db->sql_fetchrow ($result2); 
         if ( $row2 ) 
            $list_of_attached = $list_of_attached . ', '; 
      } 
      while ($row2); 
       
      $list_of_attached = $list_of_attached . '<br />' ; 
   } 
    
   $db->sql_freeresult ($result2); 
   // End add 

# 
#-----[ FIND ]------------------------------------------------ 
# 
   'LAST_POST' => $last_post, 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
   // Added by Harishankar's Attached Forums MOD 
   'ATTACHED_FORUMS_LIST' => $list_of_attached, 
   // End add 

# 
#-----[ OPEN ]------------------------------------------------ 
# 
   /templates/subSilver/index_body.tpl 

# 
#-----[ FIND ]------------------------------------------------ 
# 
   <span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span> 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
   <br /><span class="genmed">{catrow.forumrow.ATTACHED_FORUMS_LIST}</span> 

# 
#-----[ OPEN ]------------------------------------------------ 
# 
   viewforum.php 

# 
#-----[ FIND ]------------------------------------------------ 
# 
   // 
   // Okay, lets dump out the page ... 
   // 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

   // Added by Harishankar's Attached Forums MOD 
   $sql2 = "SELECT * FROM " . FORUMS_TABLE . 
         " WHERE attached_forum_id = " . $forum_id ; 
          
   $result2 = $db->sql_query ($sql2); 
   if (! $result2 ) 
   { 
      message_die ('Could not gather attached forum info', __LINE__, __FILE__, $sql2); 
   } 
   if ($db->sql_numrows ($result2) != 0) 
   { 
      if ($db->sql_numrows ($result2) == 1) 
         $attached_forum_title = $lang['Attached_forum']; 
      else 
         $attached_forum_title = $lang['Attached_forums']; 
       
      $template->assign_block_vars ('switch_attached_list', 
                           array( 'L_ATTACHED_FORUM' => $attached_forum_title, 
                                 'L_ATTACHED_TOPICS' => $lang['Topics'], 
                                 'L_ATTACHED_POSTS' => $lang['Posts'] 
                               ) 
                            ); 
      while ( $row2 = $db->sql_fetchrow ($result2) ) 
      { 
         $attach_forum_name = '<a href="' . append_sid('viewforum.php?f=' . $row2['forum_id']) . '">' . $row2['forum_name'] . '</a>' ; 
         $attach_forum_desc = '<br />' . $row2['forum_desc']; 
          
         $attach_forum_topics = $row2['forum_topics']; 
         $attach_forum_posts = $row2['forum_posts']; 
          
         $last_post_id = $row2['forum_last_post_id']; 
       
         $template->assign_block_vars ('switch_attached_list.switch_attached_present', 
                                 array 
                                 ( 
                                 'FORUM_NAME' => $attach_forum_name, 
                                 'FORUM_DESC' => $attach_forum_desc, 
                                 'TOPICS' => $attach_forum_topics, 
                                 'POSTS' => $attach_forum_posts 
                                 ) 
                              ); 
      }    
   } 
    
   $db->sql_freeresult ($result2); 
   // End add 

# 
#-----[ OPEN ]------------------------------------------------ 
# 
   /templates/subSilver/viewforum_body.tpl 

# 
#-----[ FIND ]------------------------------------------------ 
# 
   <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> 

# 
#-----[ BEFORE, ADD ]----------------------------------------- 
# 
    
   <!-- BEGIN switch_attached_list --> 
   <br /> 
   <table width="100%" border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> 
     <tr> 
      <th colspan="1" 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> 
     </tr> 
     <!-- BEGIN switch_attached_present --> 
     <tr> 
      <td class="row1" width="75%"><span class="forumlink">{switch_attached_list.switch_attached_present.FORUM_NAME}</span><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> 
       </tr> 
     <!-- END switch_attached_present --> 
   </table> 
   <br /> 
   <!-- END switch_attached_list --> 

# 
#-----[ OPEN ]------------------------------------------------ 
# 
     language/lang_english/lang_admin.php 
    
# 
#-----[ FIND ]------------------------------------------------ 
# 
   // 
   // That's all Folks! 

# 
#-----[ BEFORE, ADD ]----------------------------------------- 
# 
   // Added by Harishankar's Attached Forums MOD 
   $lang['Attached_Field_Title'] = 'Attached to forum'; 
   $lang['Attached_Description'] = "This field has been added by Harishankar's attached forums mod. If you wish this forum to be a pseudo sub-forum or attached to another forum, then enter the id of the forum you wish to attach it to. For regular (normal) forums, leave this value as -1"; 
   // End Add 
    
# 
#-----[ OPEN ]------------------------------------------------ 
# 
    language/lang_english/lang_main.php 
    
# 
#-----[ FIND ]------------------------------------------------ 
# 
   // 
   // That's all, Folks! 

# 
#-----[ BEFORE, ADD ]----------------------------------------- 
# 

   // Added by Harishankar's Attached Forums MOD 

   $lang['Attached_forum'] = 'Attached Forum'; 
   $lang['Attached_forums'] = 'Attached Forums'; 
    
   // End Add 

# 
#-----[ SAVE/CLOSE ALL FILES ]-------------------------------- 
# 
# EoM
Bu modu beğeniğte daha uzun ama aha gelşimiş olanını kurmak isteyenler bunu indirsinler.

http://www.hemenpaylas.com/download/156 ... 6.txt.html
En son NEFRİT tarafından 14.09.2006, 16:28 tarihinde düzenlendi, toplamda 1 kere düzenlendi.
Özellerden kullanıcılara reklam yaptığım için sayın yöneticim beni uzaklaştırdı.
Kullanıcı avatarı
cupra
Kayıtlı Kullanıcı
Mesajlar: 2505
Kayıt: 01.04.2006, 02:33
Konum: smyrna
İletişim:

Mesaj gönderen cupra »

bende kurayım baKayım... peki mod uninstall edilince mesajlarda çıkmama bbcodelarda çıkmama vs bir durum olurmuki. modu incelemedim ama işallah yoktur .. alpha olmasına rağmen heralde phpbb onaylar :)
2004 yılından bu yana alpha :( şimdi gördüm.
Kullanıcı avatarı
cupra
Kayıtlı Kullanıcı
Mesajlar: 2505
Kayıt: 01.04.2006, 02:33
Konum: smyrna
İletişim:

Mesaj gönderen cupra »

nefrit biraz araştırdım bu mod şu anda geliştirilmiyor. Geliştiricisinin başlığı kilitli "abondoned" olmuş başlık. http://www.phpbb.com/phpBB/viewtopic.php?t=279979
hatta 1.0.6 versiyonuda var buyrun isteyen denesin.
beta olmuş ama dediğim gibi yapımcısı ilgilenmiyor bu modla..
En son cupra tarafından 14.09.2006, 14:33 tarihinde düzenlendi, toplamda 1 kere düzenlendi.
Kullanıcı avatarı
GodBeach
Uzaklaştırıldı
Mesajlar: 734
Kayıt: 05.05.2006, 23:12
Konum: Güngören, İSTANBUL
İletişim:

Mesaj gönderen GodBeach »

Modda sorun yoksa alpha olmasına gerek yok çünkü hiçbir hata yada başka birşey yok güncellene güncellene saten mod simple forums kadar uzun olacaktır.
Bir php kodu
$GodBeach = "Php Script Yazılır";

print $GodBeach;

Önizleme: Php Script Yazılır
jnkb
Kayıtlı Kullanıcı
Mesajlar: 17
Kayıt: 29.07.2006, 15:58
Konum: www.ajdar.forumlari.net
İletişim:

Mesaj gönderen jnkb »

ben bu modu kurdum sorunsuz çalişiyo..ama alt forum yerine Attached Forums yazio bunu nasil değiştirebilirim..
Kullanıcı avatarı
GodBeach
Uzaklaştırıldı
Mesajlar: 734
Kayıt: 05.05.2006, 23:12
Konum: Güngören, İSTANBUL
İletişim:

Mesaj gönderen GodBeach »

Kod: Tümünü seç

#
#-----[ AÇ ]------------------------------------------------
#
    /language/lang_turkish/lang_main.php

#
#-----[ BUL ]-----------------------------------------
#

   // Added by Attached Forums MOD

   $lang['Attached_forum'] = 'SubForum';
   $lang['Attached_forums'] = 'SubForums';
   
   // End Added by Attached Forums MOD

#
#-----[ DEĞİŞTİR ]--------------------------------
#


   // Added by Attached Forums MOD

   $lang['Attached_forum'] = 'Alt Forum';
   $lang['Attached_forums'] = 'Alt Forumlar';
   
   // End Added by Attached Forums MOD
Bir php kodu
$GodBeach = "Php Script Yazılır";

print $GodBeach;

Önizleme: Php Script Yazılır
jnkb
Kayıtlı Kullanıcı
Mesajlar: 17
Kayıt: 29.07.2006, 15:58
Konum: www.ajdar.forumlari.net
İletişim:

Mesaj gönderen jnkb »

sağol.. :lol: ya bide alt forum yazısı siyah kalın çıkmıyo..normal yazi gibi çıkıyo onu nasıl halledebiliriz..
Kullanıcı avatarı
GodBeach
Uzaklaştırıldı
Mesajlar: 734
Kayıt: 05.05.2006, 23:12
Konum: Güngören, İSTANBUL
İletişim:

Mesaj gönderen GodBeach »

[AÇ]

Kod: Tümünü seç

index_body.tpl
[BUL]

Kod: Tümünü seç

          <!-- 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 --> 
[DEĞİŞTİR]

Kod: Tümünü seç

          <strong><!-- 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 --></strong> 
Bir php kodu
$GodBeach = "Php Script Yazılır";

print $GodBeach;

Önizleme: Php Script Yazılır
jnkb
Kayıtlı Kullanıcı
Mesajlar: 17
Kayıt: 29.07.2006, 15:58
Konum: www.ajdar.forumlari.net
İletişim:

Mesaj gönderen jnkb »

Kod: Tümünü seç

// Added by Attached Forums MOD 

   $lang['Attached_forum'] = '<font color=black><b>Alt Forum'; 
   $lang['Attached_forums'] = '<font color=black><b>Alt Forumlar'; 
    
   // End Added by Attached Forums MOD
ben böyle yaptim..daha ilkel yoldan :lol: yinede sağol :wink:
Kullanıcı avatarı
GodBeach
Uzaklaştırıldı
Mesajlar: 734
Kayıt: 05.05.2006, 23:12
Konum: Güngören, İSTANBUL
İletişim:

Mesaj gönderen GodBeach »

kodu kapatmayı unutmuşsun sonlarına </b> </font> ekle yoksa o yazıdan itibaren tüm site kalın olur
Bir php kodu
$GodBeach = "Php Script Yazılır";

print $GodBeach;

Önizleme: Php Script Yazılır
jnkb
Kayıtlı Kullanıcı
Mesajlar: 17
Kayıt: 29.07.2006, 15:58
Konum: www.ajdar.forumlari.net
İletişim:

Mesaj gönderen jnkb »

ok..sağol..yalnız..bunda alt kategori isimleri gözükmüyo..ancak forumlarin id numaralari ile yapiliyo
Kullanıcı avatarı
cupra
Kayıtlı Kullanıcı
Mesajlar: 2505
Kayıt: 01.04.2006, 02:33
Konum: smyrna
İletişim:

Mesaj gönderen cupra »

iyi ozaman beta olmuş zatende 1.06 versiyonunu kurun,
beta bölümünde açılsaydı iyi olurdu
Kullanıcı avatarı
GodBeach
Uzaklaştırıldı
Mesajlar: 734
Kayıt: 05.05.2006, 23:12
Konum: Güngören, İSTANBUL
İletişim:

Mesaj gönderen GodBeach »

nefritin mesajını editle istersen yenisini koy . girenin kafası karışıyor.
Bir php kodu
$GodBeach = "Php Script Yazılır";

print $GodBeach;

Önizleme: Php Script Yazılır
Kullanıcı avatarı
cupra
Kayıtlı Kullanıcı
Mesajlar: 2505
Kayıt: 01.04.2006, 02:33
Konum: smyrna
İletişim:

Mesaj gönderen cupra »

beta 1.0.6 güncel versiyonunu ilk mesaja ekledim 1.0.1 versiyonunu kuranlar, modu tekrar kurmanız iyi olur.
beta bölümüne aldım.
Kullanıcı avatarı
GodBeach
Uzaklaştırıldı
Mesajlar: 734
Kayıt: 05.05.2006, 23:12
Konum: Güngören, İSTANBUL
İletişim:

Mesaj gönderen GodBeach »

Cupra başlık acayip uzun oldu sunu bi txt dosyasında verleim ya .
Bir php kodu
$GodBeach = "Php Script Yazılır";

print $GodBeach;

Önizleme: Php Script Yazılır
Kilitli

“2.0.x MOD Duyuruları” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 8 misafir