Gönderen Konu: Alt Bölümleri Alt Alta Sıralama|2.x ve 1.1.x|Çalışan Sürüm  (Okunma sayısı 2251 defa)

0 Üye ve 2 Ziyaretçi konuyu incelemekte.

Çevrimdışı xxnine

  • echo'<br />SMFGrup.com';
  • Sr. Member
  • **
  • İleti: 1613
  • PR ( Rep ) : 155
  • Cinsiyet: Bay
Alt Bölümleri Alt Alta Sıralama|2.x ve 1.1.x|Çalışan Sürüm
« : SmfGrup Saati : 11 Ağustos Sal 2009, 08:38 »
Anlatımların hepsi default içindir.

1.x versiyonu için.
2'li olarak:
BoardIndex.template.php'de bulun:
Kod: [Seç]
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>
Değiştirin:
Kod: [Seç]
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 src="' . $settings['images_url'] . '/on.gif" alt="' . $txt[333] . '" width="15" height="15" style="vertical-align: middle; margin-left: 2px;" /><b>' . $child['link'] . '</b>' : '<img src="' . $settings['images_url'] . '/off.gif" alt="' . $txt[334] . '" width="15" height="15" style="vertical-align: middle; margin-right: 2px;" />' . $child['link'];
                    }

                    echo '
            <tr>
                <td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
                    <table>
                        <tr>';

                    foreach ($children as $key => $child)
                    {
                        if ($key % 2 == 0 && $key != 0)
                            echo '
                        </tr>
                        <tr>';

                        echo '
                            <td style="padding-left: 10px;"><span class="smalltext">', $child, '</span></td>';
                    }

                        echo '
                        </tr>
                    </table>
                </td>
Sütunları fazlalaştırmak için:
   Değiştirdiğiniz kodun içerisinde bulunan if ($key % 2 == 0 && $key != 0) kodundaki 2 değerini, istediğiniz değerle değiştirin.


2.0 versiyonu için.
 2'li olarak:
 BoardIndex.template.php'de bulun:
 
Kod: [Seç]
foreach ($board['children'] as $child)
                    {
                        if (!$child['is_redirect'])
                            $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . $child['topics'] . ', ' . $txt['posts'] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                        else
                            $child['link'] = '<a href="' . $child['href'] . '" title="' . $child['posts'] . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

                        // Has it posts awaiting approval?
                        if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
                            $child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > $child['unapproved_posts'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

                        $children[] = $child['new'] ? '<strong>' . $child['link'] . '</strong>' : $child['link'];
                    }
                    echo '
            <tr>
                <td class="windowbg3 smalltext largepadding"><strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '</td>
Değiştirin:
 
Kod: [Seç]
foreach ($board['children'] as $child)
                    {
                        if (!$child['is_redirect'])
                            $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . $child['topics'] . ', ' . $txt['posts'] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                        else
                            $child['link'] = '<a href="' . $child['href'] . '" title="' . $child['posts'] . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

                        // Has it posts awaiting approval?
                        if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
                            $child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > $child['unapproved_posts'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

                        $children[] = $child['new'] ? '<img src="' . $settings['images_url'] . '/on.gif" alt="' . $txt['new_posts'] . '" width="15" height="15" style="vertical-align: middle; margin-left: 2px;" /><strong>' . $child['link'] . '</strong>' : '<img src="' . $settings['images_url'] . '/off.gif" alt="' . $txt['old_posts'] . '" width="15" height="15" style="vertical-align: middle; margin-right: 2px;" />' . $child['link'];
                    }
                    echo '
            <tr>
                <td class="windowbg3 smalltext largepadding">
                    <table>
                        <tr>';

                    foreach ($children as $key => $child)
                    {
                        if ($key % 2 == 0 && $key != 0)
                            echo '
                        </tr>
                        <tr>';

                        echo '
                            <td style="padding-left: 10px;">', $child, '</td>';
                    }

                        echo '
                        </tr>
                    </table>
                </td>
Sütunları fazlalaştırmak için:
    Değiştirdiğiniz kodun içerisinde bulunan if ($key % 2 == 0 && $key != 0) kodundaki 2 değerini, istediğiniz değerle değiştirin.

Tenma'ya teşekkürler.

Çevrimdışı kalelim

  • Yeni Üye
  • *
  • İleti: 1
  • PR ( Rep ) : 0
  • Kendinize İmza Seciniz
Ynt: Alt Bölümleri Alt Alta Sıralama|2.x ve 1.1.x|Çalışan Sürüm
« Yanıtla #1 : SmfGrup Saati : 21 Ekim Çrş 2009, 18:09 »
süper oldu çok işime yaradı tşkler  :evet

Çevrimdışı snowfalcon

  • Yeni Üye
  • *
  • İleti: 2
  • PR ( Rep ) : 0
  • Kendinize İmza Seciniz
Ynt: Alt Bölümleri Alt Alta Sıralama|2.x ve 1.1.x|Çalışan Sürüm
« Yanıtla #2 : SmfGrup Saati : 29 Ekim Prş 2009, 16:19 »
şükür bulabildim elinize sağlık :D

Çevrimdışı mco_tuning

  • Yeni Üye
  • *
  • İleti: 11
  • PR ( Rep ) : 1
  • Cinsiyet: Bay
    • WwW.CeReZ.NeT
Ynt: Alt Bölümleri Alt Alta Sıralama|2.x ve 1.1.x|Çalışan Sürüm
« Yanıtla #3 : SmfGrup Saati : 22 Kasım Paz 2009, 15:39 »
hocam ben yapamadım yardım edebilirmisiniz ?

Çevrimdışı Fearlessss

  • Yeni Üye
  • *
  • İleti: 26
  • PR ( Rep ) : 0
  • Kendinize İmza Seciniz
Ynt: Alt Bölümleri Alt Alta Sıralama|2.x ve 1.1.x|Çalışan Sürüm
« Yanıtla #4 : SmfGrup Saati : 15 Aralık Sal 2009, 03:10 »
Arkadaşım ben de yapamadım. 2.0 için denedim ama kodları tam olarak bulamadım. İlk satırı çıktı ama bitiş satırını bulamadım. Tam olarak hangi aralıkta yapacağız ? Yardımcı olursan sevinirim.

Çevrimdışı hhmercan

  • Yeni Üye
  • *
  • İleti: 46
  • PR ( Rep ) : 0
  • Bir Bu Eksik. Buda Olsun!
    • Facebook Güvenlik Platformu
Ynt: Alt Bölümleri Alt Alta Sıralama|2.x ve 1.1.x|Çalışan Sürüm
« Yanıtla #5 : SmfGrup Saati : 31 Ocak Paz 2010, 23:13 »
teşekkürler. süper oldu :)

 :3S

Çevrimdışı onderede

  • Yeni Üye
  • *
  • İleti: 1
  • PR ( Rep ) : 0
  • Kendinize İmza Seciniz
Ynt: Alt Bölümleri Alt Alta Sıralama|2.x ve 1.1.x|Çalışan Sürüm
« Yanıtla #6 : SmfGrup Saati : 28 Nisan Prş 2011, 11:49 »
Ben eklentiyi kurdum oldukça başarılı ancak alt bölümlerin sayfaya yayılmasını istiyorum umarım anlatabilmişimdir. Teşekkürler
« Son Düzenleme: SmfGrup Saati : 28 Nisan Prş 2011, 11:53 Gönderen: onderede »

Çevrimdışı Cado

  • ...
  • SGT-Admin
  • *
  • İleti: 1975
  • PR ( Rep ) : 53
  • Cinsiyet: Bay
  • Sabır .
    • Smf Tema,Mod,Destek
  • SMF Sürümü: 2.0
Ynt: Alt Bölümleri Alt Alta Sıralama|2.x ve 1.1.x|Çalışan Sürüm
« Yanıtla #7 : SmfGrup Saati : 28 Nisan Prş 2011, 18:23 »
colspan'ı 4 yapın
selenka.net