Would you like to react to this message? Create an account in a few clicks or log in to continue.



|Başlık Sayısı :1981| Mesaj Sayısı:3050|
 
PortalAnasayfaGaleriLatest imagesAramaKayıt OlGiriş yap

 

 Default Alt Kategorileri Dibermc deki Gibi Kategori İçinde Gösterme...

Aşağa gitmek 
YazarMesaj
Misafir
Misafir
Anonymous



Default Alt Kategorileri Dibermc deki Gibi Kategori İçinde Gösterme... Empty
MesajKonu: Default Alt Kategorileri Dibermc deki Gibi Kategori İçinde Gösterme...   Default Alt Kategorileri Dibermc deki Gibi Kategori İçinde Gösterme... Icon_minitimePaz Mart 02, 2008 4:22 pm

İvan Arkadaşımızın Yayınlamış Olduğu Alt Kategori Modunda Aşağıda Belirtmiş Olduğum Çakışmalar Giderilmiş Olduğu İçin Buradaki Modu Uygulamamanızı Tavsiye Ederim İvanın Yayınlamış Olduğu Modu Uygulamanız Tavsiyemdir...

Kendim Hiç Bir Kod Yazmadım Zaten Yazmayıda Bilmiyorum Tamamen Deneme Yanılma Yöntemi İle Dilbermc nin Kodları İle Default Temasının Kodlarını Değiştirerek Sonuca Ulaştım...[b]

[b]Not:
Boardicon Modunu Kullanan Arkadaşlar Şimdilik Uygulamasın Kodlarda Çakışma Var Temanız Sağa Sola Doğru Dağılma Yapar En Kısa Sürede Bunuda Çözmeye Çalışıcam...

Aşağıda Verdiğim resimleri Temanızın image Klasörüne Atın


[img width=9 height=9]http://rengeyik.net/Themes/Default_Orange/images/offk.gif[/img]

[img width=9 height=9]http://www.rengeyik.net/Themes/Default_Orange/images/onk.gif[/img]

[img width=600 height=258]https://2img.net/r/ihimizer/img175/7214/adszbb6.png[/img]



Default Temanızın / BoardIndex.template.php Dosyasını Açın Ve Aşağıda Verdiğim Kodları Bulun.

Kod:
         /* Each board in each category's boards has:
         new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
         children (see below.), link_children (easier to use.), children_new (are they new?),
         topics (# of), posts (# of), link, href, and last_post. (see below.) */
         foreach ($category['boards'] as $board)
         {
            echo '
         <tr>
            <td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

            // If the board is new, show a strong indicator.
            if ($board['new'])
               echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
            // This board doesn't have new posts, but its children do.
            elseif ($board['children_new'])
               echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
            // No new posts at all! The agony!!
            else
               echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';

            echo '</a>
            </td>
            <td class="windowbg2">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
                  ', $board['description'];

            // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
            if (!empty($board['moderators']))
               echo '
               <div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';

            // Show some basic information about the number of posts, etc.
               echo '
            </td>
            <td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
               ', $board['posts'], ' ', $txt[21], ' <br />
               ', $board['topics'],' ', $txt[330], '
            </span></td>
            <td class="windowbg2" valign="middle" width="22%">
               <span class="smalltext">';

            /* The board's and children's 'last_post's have:
            time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
            link, href, subject, start (where they should go for the first unread post.),
            and member. (which has id, name, link, href, username in it.) */
            if (!empty($board['last_post']['id']))
               echo '
                  <b>', $txt[22], '</b>  ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
                  ', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
                  ', $txt[30], ' ', $board['last_post']['time'];
            echo '
               </span>
            </td>
         </tr>';
            // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
            if (!empty($board['children']))
            {
               // Sort the links into an array with new boards bold so it can be imploded.
               $children = array();
               /* Each child in each board's children has:
                     id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
               foreach ($board['children'] as $child)
               {
                     $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                     $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
               }

               echo '
         <tr>
            <td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
               <span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
            </td>
         </tr>';
            }
         }
         echo '
      </table>';
      }
      echo '
   </div>';
   }

   if ($context['user']['is_logged'])
   {
      echo '
   <table border="0" width="100%" cellspacing="0" cellpadding="5">
      <tr>
         <td align="', !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
            <img src="' . $settings['images_url'] . '/new_some.gif" alt="" align="middle" /> ', $txt[333], '
            <img src="' . $settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt[334], '
         </td>
         <td align="', !$context['right_to_left'] ? 'right' : 'left', '">';

Aşağıda Verdiğim Kod İle Değiştirin:

Kod:
         /* Each board in each category's boards has:
         new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
         children (see below.), link_children (easier to use.), children_new (are they new?),
         topics (# of), posts (# of), link, href, and last_post. (see below.) */
         foreach ($category['boards'] as $board)
         {
            echo '
         <tr>
            <td class="windowbg" width="51" align="center" valign="middle"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

            // If the board is new, show a strong indicator.
            if ($board['new'])
               echo '<img src="', $settings['images_url'] . '/'. $settings['theme_main_color'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
            // This board doesn't have new posts, but its children do.
            elseif ($board['children_new'])
               echo '<img src="', $settings['images_url'] . '/'. $settings['theme_main_color'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
            // No new posts at all! The agony!!
            else
               echo '<img src="', $settings['images_url'] . '/'. $settings['theme_main_color'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';

            echo '</a>
            </td>
            <td class="windowbg2" style="padding-top:12px; padding-bottom:12px;">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
                  ', $board['description'];

            // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
            if (!empty($board['moderators']))
               echo '
               <div style="padding-top: 1px;" class="smalltext"><br/><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';
            
            // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
            if (!empty($board['children']))
            {
               // Sort the links into an array with new boards bold so it can be imploded.
               $children = array();
               /* Each child in each board's children has:
                     id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
               foreach ($board['children'] as $child)
               {
                     $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                     $children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/' . $settings['theme_main_color'] . '/onk.gif" alt="' . $txt[333] . '"/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/' . $settings['theme_main_color'] . '/offk.gif" alt="' . $txt[334] . '"/>' . $child['link'];                     
               }

               echo '
               <table style="float:right; margin-top: 15px;" width="100%" cellspacing="0" cellpadding="3" border="0">
                  <tr>
                     <td class="middletext" valign="middle" align="center" width="30%">
                        <b>', $txt['parent_boards'], ':</b>
                     ';

               $child_counter = 0;
               
               if(empty($settings['child_boards_rows']))
               {
                  echo '   
                     </td>
                     <td class="middletext" valign="top">';
                        
                        for(; $child_counter < ceil(count($children)/2); $child_counter++)
                              echo $children[$child_counter], '<br/>';
               }
               
               echo '
                     </td>
                     <td class="middletext" valign="top">';   
                        for(; $child_counter < count($children); $child_counter++)
                              echo $children[$child_counter], '<br/>';
               echo '
                     </td>
                  </tr>
               </table>';
            }
            // Show some basic information about the number of posts, etc.
               echo '
            </td>
            <td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
               ', $board['posts'], ' ', $txt[21], ' <br />
               ', $board['topics'],' ', $txt[330], '
            </span></td>
            <td class="windowbg2" valign="middle" width="22%">
               <span class="smalltext">';

            /* The board's and children's 'last_post's have:
            time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
            link, href, subject, start (where they should go for the first unread post.),
            and member. (which has id, name, link, href, username in it.) */
            if (!empty($board['last_post']['id']))
               echo '
                  <b>', $txt[22], '</b>  ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
                  ', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
                  ', $txt[30], ' ', $board['last_post']['time'];
            echo '
               </span>
            </td>
         </tr>';
         }
         echo '
      </table>';
      }
      echo '
   </div>';
   }

   if ($context['user']['is_logged'])
   {
      echo '
   <table border="0" width="100%" cellspacing="0" cellpadding="5">
      <tr>
         <td align="', !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
            <img src="' . $settings['images_url'] . '/'. $settings['theme_main_color'] . '/new_some.gif" alt="" align="middle" /> ', $txt[333], '
            <img src="' . $settings['images_url'] . '/'. $settings['theme_main_color'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt[334], '
         </td>
         <td align="', !$context['right_to_left'] ? 'right' : 'left', '">';

Not: Boardicon Modunu Kullanan Arkadaşlar Şimdilik Uygulamasın Uyguladıkları Taktirde Temada Dilbermc deki Gibi Bir Karmaşa Meydan Geliyor...
Sayfa başına dön Aşağa gitmek
 
Default Alt Kategorileri Dibermc deki Gibi Kategori İçinde Gösterme...
Sayfa başına dön 
1 sayfadaki 1 sayfası
 Similar topics
-

Bu forumun müsaadesi var:Bu forumdaki mesajlara cevap veremezsiniz
 :: Web Tasarımı :: SMF - Simple Machines Forum-
Buraya geçin:  
Powered by phpBB ©
© 2007, 2008 Forumzen
Powered ßy como TeaM
Yetkinforum.com | ©phpBB | Bedava yardımlaşma forumu | Suistimalı göstermek | Son tartışmalar