News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Alt Bölümleri Alt Alta Sıralama

Started by Yağız..., November 08, 2008, 08:46:39 AM

Previous topic - Next topic

Hüsamettin

#120
QuoteArkadaşlar Benim Dosyamda Yapabilecek Var Mı ,Bir Türlü Olmuyor !??
board index templatene ekle yapayım ben
---------------------------------------------------------------------------------------------------------
benim sorunum şu alt alt yapınca alt bölümler ve tüm yazılar dev gibi oldu nasıl düzelecek  birde albölümler içinde ki alt bölümler nasıl altalta olur






Not:
forum sürümüm 2.0rc 1-1



kurulu eklentiler

1.     Simple Image Upload     
2.    Hide Tag    
3.    Full Top 10 Stats    
4.    SimplePortal - Turkish    
5.    SimplePortal    
6.    Pretty URLs    
7.    Hide Tag BBC Image    
8.    Member Color Link
9.    Sitemap    
10.    nneonneo's AJAX ShoutBox

Restorasyon

Quote from: Restorasyon on July 12, 2009, 12:12:53 PM
arkadaşlar alt bölümler biri sağda biri solda çok kötü duruyor bunların hepsini izalamam mümkünmü sağ tarafta duranlar aynı izada olmalı ? jpeg ekliyorum..




http://img34.imageshack.us/i/62832110.jpg/
"Bayrakları bayrak yapan üstündeki kandır 
Toprak,eğer uğrunda ölen varsa vatandır."

Restorasyon - Gece Görüş Dürbünü - Mimari Forum

Hkan

Restorasyon, BoardIndex.template.php dosyasını ekte verir misin?

Restorasyon

Quote from: biggboss on July 28, 2009, 02:29:00 AM
Restorasyon, BoardIndex.template.php dosyasını ekte verir misin?

ek seçeneklerde dosya yükleme olayı çıkmıyo dostum o yüzden aşağıdaki linke yükledim tşkler ilgine..

http://www.dosya.tc/BoardIndex.template.rar.html
"Bayrakları bayrak yapan üstündeki kandır 
Toprak,eğer uğrunda ölen varsa vatandır."

Restorasyon - Gece Görüş Dürbünü - Mimari Forum


Restorasyon

Quote from: biggboss on July 28, 2009, 01:35:20 PM
Bununla değiştir. http://www.dosya.tc/BoardIndex.template_8680.rar.html

eet kardeşim böle süper oldu çok teşekkür ederim.. bazı yerlerde yine oynama var ama ondada alt bölümlerin adı çok uzun o yüzdendir sanırım düzeltilme imkanı yok... ohh be :D uyuz oluyodum öle biri sağda biri solda bölee çok ii ... eline sağlık
"Bayrakları bayrak yapan üstündeki kandır 
Toprak,eğer uğrunda ölen varsa vatandır."

Restorasyon - Gece Görüş Dürbünü - Mimari Forum

Hkan



Yağız...

Aynı işlemi MessageIndex.template.php dosyasında yapın.

Hüsamettin

yağız olmadı kodlar farklı  dediğin dosyada


dosyayı siteme yüklüyorum ordan bak

site sürümüm 2.0rc 1-2

http://www.forum-merkezi.com/indir/MessageIndex.template.rar

kodların farklı olduğunu göreceksin

bilasdem

#130
yağız benimkide alt karegoriler uyumsuz bir bakarmısınız resim koyuyorum




http://img254.yukle.tc/images/4521Ekran_Goruntusu.png

sorunumu çözdüm.
şu an localde çalışaçağım

Balaban

Bir türlü beceremedim...Önce sağa kaydı,sonra sola...bir yardımcı olabilir misiniz ?


// 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)
      $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
     echo '
   <i class="smalltext"><br />
   ', $txt['parent_boards'], ': ', implode(', ', $children), '</i>';
    }
    echo '
  </td>';
if (!$board['is_redirect'])
  echo '
  <td class="windowbg" valign="middle" align="center" width="6%">', $board['topics'], '</td>
  <td class="windowbg" valign="middle" align="center" width="6%">', $board['posts'], '</td>';
else
  echo '
  <td class="windowbg" valign="middle" align="center" colspan="2" width="12%">', $board['posts'], ' ', $txt['redirects'], '</td>';
    /* 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.) */
    echo '
  <td class="windowbg2" valign="middle" width="22%">
   <span class="smalltext">
    ', $board['last_post']['time'], '<br />
    ', $txt['in'], ' ', $board['last_post']['link'], '<br />
    ', $txt['by'], ' ', $board['last_post']['member']['link'], '
   </span>
  </td>
</tr>';
   }
  }
}
.

bilasdem

şu an localde çalışaçağım

bilasdem

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 style="float:right; padding-left:0px;margin-top: 0px;" width="98%" cellspacing="0" cellpadding="0" border="0">
                        <tr>';

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

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

                        echo '
                        </tr>
                    </table>
                </td>


smf 2.0 için bunu dene
şu an localde çalışaçağım

Balaban

olmuyor...ilk denediğimden bir farkı yok :S
.

bilasdem

farkı

<td class="windowbg3 smalltext largepadding">
                   <table style="float:right; padding-left:0px;margin-top: 0px;" width="98%" cellspacing="0" cellpadding="0" border="0">
şu an localde çalışaçağım

Gökhan | Brestgerfich

#136
Quote from: Pяєηѕєѕ 丂√丂 on January 16, 2009, 02:44:17 PM
Quote from: Mucize on January 16, 2009, 12:46:06 PM
Konuyla alakalı değil ama Boardicon modifikasyonu 1.1.2 sürümü ile uyumlu yazıyor ancak 1.1.7 forumlarda da gördüm. Uyarlanması kolay mı + 2.0 Beta 4 için de uyarlanabilir mi ?



Istersen buna bakabilirsin belki isini görebilir 2.0 Beta 4 içinde uyumlu :

http://custom.simplemachines.org/mods/index.php?mod=1266

Bu kadar zaman sonra, tekrar lazım oldu ya bu mod ve ipucu...

Yağız ve Prenses... Teşekkürler.

by_bosnia

Quote from: Yağız... on November 08, 2008, 08:46:39 AM
Anlatımların hepsi default içindir.

1.x versiyonu için.
2'li olarak:
BoardIndex.template.php'de bulun:
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:
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:
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:
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.



sütun derken ben yanyana ama sadece 2 sıra olacak şekilde konuları dizmek istiyorum bu onun içinmiydi pardon  ??? :D

grafitus

Yağız, SMF ile alakasız bir soru ancak yardımcı olursan sevinirim. Bir betik hazırlıyorum da bir türlü sütunlamayı yapamadım. Google'da iyi sonuç vermedi. Verdikleri de çalışmıyordu. Ama benim aşağıdaki sorguma yönelik bir sütunlama yapar mısın? :

<?php
$kid $_GET['kid'];
$sql mysql_query("
SELECT *
FROM uruns
WHERE kid = 
$kid");

while ($yaz mysql_fetch_array($sql))
{

}
?>


Advertisement: