Gönderen Konu: Alt Bölümleri Düzenleme (Smf-1.1.x)  (Okunma sayısı 3263 defa)

danua

  • Yönetici
  • Kıdemli Üye
  • *****
  • İleti: 311
  • Karma 65535
Alt Bölümleri Düzenleme (Smf-1.1.x)
« : 28 Eylül 2016, 15:21:29 »
Alt Bölümleri Düzenleme"Alt alta sıralama" (Smf-1.1.x)
BoardIndex.template.php 'da alttaki kodları 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>

Alttaki Kod ile 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>

if ($key % 2 == 0 && $key != 0) Buradaki 2 değerini değiştirebilirsiniz.
Linkback: Alt Bölümleri Düzenleme (Smf-1.1.x)
« Son Düzenleme: 28 Eylül 2016, 15:27:19 Gönderen: Admin »
𐱅𐰇𐰼𐰚

Sitelerim
:::::::::::::::::::
telkaricim.com

Tags: