Son iletilier eklentisi hk.

Başlatan wtrk, 28 Şub 2017, 15:36

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

wtrk

Arkadaşlar merhaba.

Ektaki gibi son iletiler eklentisini nerden bulabilriim ?


tarantula901

sitenizde o kısım mevcut admin panelde kullanılan tema ayarlarında "Forum ana sayfasında gösterilecek son ileti sayısı" kısmı var orası sıfır ise istediğiniz sayıyı yazın son mesajlar çıkacaktır.
Sitenizde işlem yapmadan önce mutlaka yedek alın, yedek alın yedek almayı unutmayın her şeyden önce bu önemli

Pm'den ve Skype'den istenilen destekler ücretlidir. Ücret ödememek için lütfen sitede sorunuzu konu açarak sorabilirsiniz.

Ücretli Smf Destek İçin

wtrk

Alıntı yapılan: tarantula901 - 28 Şub 2017, 16:12sitenizde o kısım mevcut admin panelde kullanılan tema ayarlarında "Forum ana sayfasında gösterilecek son ileti sayısı" kısmı var orası sıfır ise istediğiniz sayıyı yazın son mesajlar çıkacaktır.

Hocam forumun navbarında çıkmasını istiyorum, aşağıda görünmesin onu nasıl ayarlarız peki ?

tarantula901

#3
Dosyanızda düzenleme yapmak gerekiyor.

Temanızdaki yok ise defulttaki boardindex.template.php dosyasını açın.

şu kodu arayıp silin.

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
{
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>';
}

sonra

şu kodu arayın.

Each category in categories is made u
üste kaldırdığınız kodu aradığınız kodun üstüne ekleyin.

Sitenizde işlem yapmadan önce mutlaka yedek alın, yedek alın yedek almayı unutmayın her şeyden önce bu önemli

Pm'den ve Skype'den istenilen destekler ücretlidir. Ücret ödememek için lütfen sitede sorunuzu konu açarak sorabilirsiniz.

Ücretli Smf Destek İçin

wtrk

Alıntı yapılan: tarantula901 - 28 Şub 2017, 16:18Dosyanızda düzenleme yapmak gerekiyor.

Temanızdaki yok ise defulttaki boardindex.template.php dosyasını açın.

şu kodu arayıp silin.

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
{
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>';

sonra

şu kodu arayın.

Each category in categories is made u
üste kaldırdığınız kodu aradığınız kodun üstüne ekleyin.




Şu hatayı verdi ustam..



Tema Ayrıştırma Hatası!
/Themes/default/BoardIndex.template.php adındaki terma veya dil dosyasının yüklenmesinde sorun var. Lütfen söz dizimini denetleyin ve tekrar deneyin, tek tire işaretleri önünde tek yatık çizgiler olmalı (') ve tek yatık çizgi kullanacaksanız iki tane yazmalısınız (\). PHP kodlarında hatayı daha belirgin görmek istiyorsanız, doğrudan dosyaya erişmeyi deneyin.

Tekrar denemek istiyorsanız sayfayı yenileyin veya varsayılan temayı kullanın.

tarantula901

Hata vermemesi lazım kodları düzgün eklediğinize emin olun. kodları ekledikten sonra eke ekleyin bakayım.
Sitenizde işlem yapmadan önce mutlaka yedek alın, yedek alın yedek almayı unutmayın her şeyden önce bu önemli

Pm'den ve Skype'den istenilen destekler ücretlidir. Ücret ödememek için lütfen sitede sorunuzu konu açarak sorabilirsiniz.

Ücretli Smf Destek İçin

wtrk

Kodlaı yüklemek isteğimde hata veriyor..

Aşağıdaki gibi oldu hocam.


wtrk

Kodları kestiğimde sorun yok ancak

   /* Each category in categories is made up of:
üzerine kestiğim kodları yapıstırınca hata alıyorum malesef..

tarantula901

üsteki kodları güncelledim onları kullanın.
Sitenizde işlem yapmadan önce mutlaka yedek alın, yedek alın yedek almayı unutmayın her şeyden önce bu önemli

Pm'den ve Skype'den istenilen destekler ücretlidir. Ücret ödememek için lütfen sitede sorunuzu konu açarak sorabilirsiniz.

Ücretli Smf Destek İçin

wtrk

#9
Şimdi oldu hocam teşekkürler...

Emeğinize sağlık

tarantula901

Sitenizde işlem yapmadan önce mutlaka yedek alın, yedek alın yedek almayı unutmayın her şeyden önce bu önemli

Pm'den ve Skype'den istenilen destekler ücretlidir. Ücret ödememek için lütfen sitede sorunuzu konu açarak sorabilirsiniz.

Ücretli Smf Destek İçin

Ziyaretci

#11
Arkadaşlar benim temamda da böyle bir özellik var fakat nasıl haberlerin altına alabilirim ?

ındex.template.php dosyamı eke koyuyorum.



tarantula901

#12
BoardIndex.template.php dosyasında

ara

       // 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>';
    }


yine BoardIndex.template.php  dosyasında yukarıya satır 81 84 arasındaki açıklamanın altına ekliyoruz

/* 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.) */

yukarıdaki açıklamanın altına kestiğimiz kodlar eklenince ilk kategorinin üstünde son iletiler görünüyor

Sitenizde işlem yapmadan önce mutlaka yedek alın, yedek alın yedek almayı unutmayın her şeyden önce bu önemli

Pm'den ve Skype'den istenilen destekler ücretlidir. Ücret ödememek için lütfen sitede sorunuzu konu açarak sorabilirsiniz.

Ücretli Smf Destek İçin

Ziyaretci

#13
Alıntı yapılan: tarantula901 - 09 Eyl 2018, 22:18BoardIndex.template.php dosyasında

ara

      // 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>';
    }


yine BoardIndex.template.php  dosyasında yukarıya satır 81 84 arasındaki açıklamanın altına ekliyoruz

/* 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.) */

yukarıdaki açıklamanın altına kestiğimiz kodlar eklenince ilk kategorinin üstünde son iletiler görünüyor


Aradığım şey bu teşekkürler fakat satır 81 84 arasında değil ayrıca daha üstteki dediğinizide yaptım olmadı halen altta

tarantula901

şu kodun üstüne ekle

/* 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.) */
Sitenizde işlem yapmadan önce mutlaka yedek alın, yedek alın yedek almayı unutmayın her şeyden önce bu önemli

Pm'den ve Skype'den istenilen destekler ücretlidir. Ücret ödememek için lütfen sitede sorunuzu konu açarak sorabilirsiniz.

Ücretli Smf Destek İçin