Smf 2.0 Son İletiler Kısmının Başa Taşınması

Merhaba, tekrar hoş geldiniz!

Bilgi sahibi olanlarla ihtiyaç duyanları buluşturmak, farklı bakış açılarına sahip insanları bir araya getirerek birbirlerini daha iyi anlamalarını sağlamak ve herkesin bilgisini paylaşmasını sağlamak istiyoruz.

medeniyetmuhendisi

Kayitli Üye
Katılım
11 Ara 2018
Mesajlar
15
Tepkime puanı
0
Puanları
1
Yaş
1020
Web sitesi
www.medeniyetmuhendisleri.com
Smf 2.0 sürümler için son iletiler kısmını forumun üst kısmına taşımak için;

BoardIndex.template.php dosyasında

Bul; (Sadece üstte olması için kes)
Kod:
        // This is the "Recent Posts" bar.
    if (!empty($settings['number_recent_posts']))
    {
        echo '
            <div class="title_barIC">
                <h4 class="titlebg">
                    <span class="ie6_header floatleft">
                        <a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
                        ', $txt['recent_posts'], '
                    </span>
                </h4>
            </div>
            <div class="hslice" id="recent_posts_content">
                <div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '</div>
                <div class="entry-content" style="display: none;">
                    <a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '</a>
                </div>';

        // Only show one post.
        if ($settings['number_recent_posts'] == 1)
        {
            // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
            echo '
                <strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '</a></strong>
                <p id="infocenter_onepost" class="middletext">
                    ', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')

                </p>';
        }
        // Show lots of posts.
        elseif (!empty($context['latest_posts']))
        {
            echo '
                <dl id="ic_recentposts" class="middletext">';

            /* Each post in latest_posts has:
                    board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
                    subject, short_subject (shortened with...), time, link, and href. */
            foreach ($context['latest_posts'] as $post)
                echo '
                    <dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
                    <dd>', $post['time'], '</dd>';
            echo '
                </dl>';
        }
        echo '
            </div>';
    }



Üstüne Ekle;
Kod:
echo '
 <div id="boardindex_table">
 <table class="table_list">';

 /* Each category in categories is made up of:
 id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
 new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
 and boards. (see below.) */

son-iletiler.png
 
Geri
Üst Alt