phpnuke Forum Konularının Başına İcon Eklemek

Eklenti: Forum Konularının Başına İcon Eklemek

Kurulum Süresi : 10 dk

Kurulum Zorluğu: Kolay

Kurulum Türkçeleştirme : artistbaron

Mod u kim yapmış ? : bilmiyorum yabancı bi sitede gördüm ismi yazmıyordu sadece kod vardı 🙂

NETOPSİYON.COM – TÜRKİYE’NİN 1 NUMARALI PHP-NUKE DESTEK SİTESİ


#
#—–[ SQL – VERİ TANINDAN SORGULATIN]——————————————
#

ALTER TABLE `nuke_bbforums` ADD `forum_icon` VARCHAR( 255 ) default NULL;

#
#—–[ AÇ ]——————————————
#
language/lang_english/lang_admin.php

#
#—–[ BUL ]——————————————
#

Kod:
$lang[‘Forum_status’] = ‘Forum status’;


#
#—–[ SONRASINA EKLE ]——————————————
#

Kod:  
$lang[‘Forum_icon’] = ‘Forum icon’; // Forum Icon MOD


#
#—–[ AÇ ]——————————————
#
admin/admin_forums.php

#
#—–[ BUL ]——————————————
#

Kod:  
            $forumstatus = $row[‘forum_status’];

#
#—–[ SONRASINA EKLE ]——————————————
#

Kod:
            $forumicon = $row[‘forum_icon’]; // Forum Icon MOD


#
#—–[ BUL ]——————————————
#

Kod:
            $forumstatus = FORUM_UNLOCKED;


#
#—–[ SONRASINA EKLE ]——————————————
#

Kod:  
            $forumicon = ”; // Forum Icon MOD


#
#—–[ BUL ]——————————————
#

Kod:  
            ‘L_FORUM_STATUS’ => $lang[‘Forum_status’],


#
#—–[ SONRASINA EKLE ]——————————————
#

Kod: 
            ‘L_FORUM_ICON’ => $lang[‘Forum_icon’], // Forum Icon MOD


#
#—–[ BUL ]——————————————
#

Kod:
            ‘DEscriptION’ => $forumdesc)


#
#—–[ DEĞİŞTİR ]——————————————
#

Kod: 
            ‘DEscriptION’ => $forumdesc,
            ‘ICON’ => ( $forumicon ) ? $forumicon : ”, // Forum Icon MOD
            ‘ICON_DISPLAY’ => ( $forumicon ) ? ‘<img src=”‘ . $phpbb_root_path . $forumicon . ‘” />’ : ” // Forum Icon MOD
            )

#
#—–[ BUL ]——————————————
#

Kod: 
         // There is no problem having duplicate forum names so we won’t check for it.
         $sql = “INSERT INTO ” . FORUMS_TABLE . ” (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable” . $field_sql . “)

#
#—–[ SATIR İÇİNDE BUL ]——————————————
#

Kod:  
forum_status


#
#—–[ SONRASINA EKLE ]——————————————
#

Kod:
, forum_icon


#
#—–[ BUL ]——————————————
#

Kod: 
            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 . “)”;

#
#—–[ SATIR İÇİNDE BUL ]——————————————
#

Kod: 
, ” . intval($HTTP_POST_VARS[‘forumstatus’]) . “


#
#—–[ SONRASINA EKLE ]——————————————
#

Kod: 
, ‘” . str_replace(“\'”, “””, $HTTP_POST_VARS[‘forumicon’]) . “‘


#
#—–[ BUL ]——————————————
#

Kod:
         $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]);


#
#—–[ SATIR İÇİNDE BUL ]——————————————
#

Kod:
, forum_status = ” . intval($HTTP_POST_VARS[‘forumstatus’]) . “


#
#—–[ SONRASINA EKLE ]——————————————
#

Kod:  
, forum_icon = ‘” . str_replace(“\'”, “””, $HTTP_POST_VARS[‘forumicon’]) . “‘

#
#—–[ BUL ]——————————————
#

Kod:  
               ‘FORUM_DESC’ => $forum_rows[$j][‘forum_desc’],


#
#—–[ SONRASINA EKLE ]——————————————
#

Kod:  
               ‘FORUM_ICON_IMG’ => ( $forum_rows[$j][‘forum_icon’] ) ? ‘<img src=”‘ . $phpbb_root_path . $forum_rows[$j][‘forum_icon’] . ‘” alt=”‘.$forum_data[$j][‘forum_name’].'” title=”‘.$forum_data[$j][‘forum_name’].'” />’ : ”, // Forum Icon Mod

#
#—–[ AÇ ]——————————————
#
index.php

#
#—–[ BUL ]——————————————
#

Kod:  
                     $posts = $forum_data[$j][‘forum_posts’];
                     $topics = $forum_data[$j][‘forum_topics’];

#
#—–[ SONRASINA EKLE ]——————————————
#

Kod: 
                     $icon = $forum_data[$j][‘forum_icon’];   // Forum Icon Mod


#
#—–[ BUL ]——————————————
#

Kod: 
                        ‘FORUM_FOLDER_IMG’ => $folder_image,


#
#—–[ SONRASINA EKLE ]——————————————
#

Kod:  
                        ‘FORUM_ICON_IMG’ => ($icon) ? ‘<img src=”‘ . $phpbb_root_path . $icon . ‘” alt=”‘.$forum_data[$j][‘forum_name’].'” title=”‘.$forum_data[$j][‘forum_name’].'” />’ : ”,   // Forum Icon Mod

#
#—–[ AÇ ]——————————————
#
viewforum.php

#
#—–[ BUL ]——————————————
#

Kod:
   ‘FORUM_NAME’ => $forum_row[‘forum_name’],

#
#—–[ SONRASINA EKLE ]——————————————
#

Kod:
   ‘FORUM_ICON_IMG’ => ($forum_row[‘forum_icon’]) ? ‘<img src=”‘ . $phpbb_root_path . $forum_row[‘forum_icon’] . ‘” alt=”‘.$forum_row[‘forum_name’].'” title=”‘.$forum_row[‘forum_name’].'” />&nbsp;’ : ”,   // Forum Icon Mod Icon Mod

#
#—–[ AÇ ]——————————————
#
templates/subSilver/admin/forum_edit_body.tpl

#
#—–[ BUL ]——————————————
#

Kod:  
   <tr>
     <td class=”row1″>{L_FORUM_NAME}</td>
     <td class=”row2″><input type=”text” size=”25″ name=”forumname” value=”{FORUM_NAME}” class=”post” /></td>
   </tr>

#
#—–[ SONRASINA EKLE ]——————————————
#

Kod:  ‹
   <tr>
     <td class=”row1″>{L_FORUM_ICON}</td>
     <td class=”row2″><input type=”text” size=”35″ name=”forumicon” value=”{ICON}” class=”post” />&nbsp;&nbsp;&nbsp;{ICON_DISPLAY}</td>
   </tr>

#
#—–[ AÇ ]——————————————
#
templates/subSilver/admin/forum_admin_body.tpl

#
#—–[ BUL ]——————————————
#

Kod:  
      <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>

#
#—–[ SATIR İÇİNDE BUL ]——————————————
#

Kod:  
      <td class=”row2″><span class=”gen”>


#
#—–[ SONRASINA EKLE ]——————————————
#

Kod: 
{catrow.forumrow.FORUM_ICON_IMG}&nbsp;&nbsp;


#
#—–[ AÇ ]——————————————
#
templates/subSilver/index_body.tpl

#
#—–[ BUL ]——————————————
#

Kod:  
   <th colspan=”2″ class=”thCornerL” height=”25″ nowrap=”nowrap”>&nbsp;{L_FORUM}&nbsp;</th>

#
#—–[ SATIR İÇİNDE BUL ]——————————————
#

Kod:
colspan=”2″


#
#—–[ DEĞİŞTİR ]——————————————
#

Kod:
colspan=”3″


#
#—–[ BUL ]——————————————
#

Kod:
   <td class=”catLeft” colspan=”2″ height=”28″><span class=”cattitle”><a href=”{catrow.U_VIEWCAT}” class=”cattitle”>{catrow.CAT_DESC}</a></span></td>

#
#—–[ SATIR İÇİNDE BUL ]——————————————
#

Kod:  
colspan=”2″


#
#—–[ DEĞİŞTİR ]——————————————
#

Kod:
colspan=”3″


#
#—–[ BUL ]——————————————
#

Kod:  
   <td class=”row1″ align=”center” valign=”middle” height=”50″><img src=”{catrow.forumrow.FORUM_FOLDER_IMG}” width=”46″ height=”25″ alt=”{catrow.forumrow.L_FORUM_FOLDER_ALT}” title=”{catrow.forumrow.L_FORUM_FOLDER_ALT}” /></td>

#
#—–[ SONRASINA EKLE ]——————————————
#

Kod:
   <td class=”row1″ align=”center” valign=”middle” height=”50″>{catrow.forumrow.FORUM_ICON_IMG}</td>

#
#—–[ AÇ ]——————————————
#

Kod:  
templates/subSilver/viewforum_body.tpl


#
#—–[ BUL ]——————————————
#

Kod:  
     <td align=”left” valign=”bottom” colspan=”2″><a class=”maintitle” href=”{U_VIEW_FORUM}”>{FORUM_NAME}</a>

#
#—–[ SATIR İÇİNDE BUL ]——————————————
#

Kod:  
     <td align=”left” valign=”bottom” colspan=”2″>


#
#—–[ SONRASINA EKLE ]——————————————
#

Kod:
{FORUM_ICON_IMG}


#
#—–[ KAYDET – GÖNDER ]——————————————
#

# BİTTİ—-

Bir Cevap Yazın

Aşağıya bilgilerinizi girin veya oturum açmak için bir simgeye tıklayın:

WordPress.com Logosu

WordPress.com hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Twitter resmi

Twitter hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Facebook fotoğrafı

Facebook hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Connecting to %s