smf 2.1 son mesajları üstte alma

Başlatan gevv, 26 Şub 2018 16:17

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

*

  1. 202

  2. 54

  3. 136
26 Şub 2018 16:17 Son düzenlenme: 27 Şub 2018 21:35 snrj

@snrj  hocam  bu bölümü en üste nasıl taşırız ?  2.0 serisinde BoardIndex.template.php  dosyasında

       // 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'], ')<br />
                </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>';
    }


kodlarını kesip satır 81 84 arasında ki açıklamanın altına ekliyordum  bu düzenleme ile en üstte görünüyordu


2.1 içinde aynı işlemi yapıyorum bir türlü üste çıkmıyor

*

  1. 3,263

  2. 596

  3. 1077
örnekle göstereyim BoardIndex.template.php de
bul
echo '
<div id="boardindex_table" class="boardindex_table">';
değiştir
echo '
<div id="boardindex_table" class="boardindex_table">';
template_ic_block_recent();

hepsi bu kadar :D

şimdi sen hem altta hem üstte gözüktü bunu nasıl engelleriz dersin sen demeden ben cevaplayım :D
bul

$func = 'template_ic_block_' . $block['tpl'];
$func();
değiştir

$func = 'template_ic_block_' . $block['tpl'];
if($func == 'template_ic_block_recent')
echo'';
else
$func();

*

  1. 202

  2. 54

  3. 136
Teşekkürler @snrj  hocam  elinize sağlık.  Hemen denedim istediğim gibi oldu sağ olun.

**

  1. 66

  2. 15

  3. 4

Elinize sağlık hocam.

*

  1. 13

  2. 3
Alıntı yapılan: snrj - 26 Şub 2018 17:04örnekle göstereyim BoardIndex.template.php de
bul
echo '
<div id="boardindex_table" class="boardindex_table">';
değiştir
echo '
<div id="boardindex_table" class="boardindex_table">';
template_ic_block_recent();

hepsi bu kadar :D

şimdi sen hem altta hem üstte gözüktü bunu nasıl engelleriz dersin sen demeden ben cevaplayım :D
bul

$func = 'template_ic_block_' . $block['tpl'];
$func();
değiştir

$func = 'template_ic_block_' . $block['tpl'];
if($func == 'template_ic_block_recent')
echo'';
else
$func();

son on konuyu nasıl yapıyoruz acaba yardımcı olurmusunuz

*

  1. 150

  2. 40

  3. 175
Alıntı yapılan: Ajan - 09 Ekm 2021 00:32
Alıntı yapılan: snrj - 26 Şub 2018 17:04örnekle göstereyim BoardIndex.template.php de
bul
echo '
<div id="boardindex_table" class="boardindex_table">';
değiştir
echo '
<div id="boardindex_table" class="boardindex_table">';
template_ic_block_recent();

hepsi bu kadar :D

şimdi sen hem altta hem üstte gözüktü bunu nasıl engelleriz dersin sen demeden ben cevaplayım :D
bul

$func = 'template_ic_block_' . $block['tpl'];
$func();
değiştir

$func = 'template_ic_block_' . $block['tpl'];
if($func == 'template_ic_block_recent')
echo'';
else
$func();

son on konuyu nasıl yapıyoruz acaba yardımcı olurmusunuz

yönetim-Yapılandırma-Kullanılan Tema-Forum ana sayfasında gösterilecek son ileti sayısı:: burayı 10 yapın

*

  1. 13

  2. 3
alttaki son on konuyu altta koyuyo fakatt ikinici verdiginiz kodu koydugumda üstte gözüksün diye atıyorum kodu ne allatta nede üstte çıkıyor sıkıntıyı çözemedim birde smiley ve avatar kodusunda yardımcı olabilirmisiniz


Benzer Konular (5)


MENU ×