Vbulletin Benzeri Yeni Konu Aç ve Cevapla Butonu Ekleme - SMF

SMF forum sistemine vbulletin ve xenforoda görmeye alışık olduğumuz yeni konu aç ve cevapla butonlarını eklemek için aşağıdaki değişiklikleri yapabilirsiniz. Kullandığınız sürüme göre kodlarda farklılık gösterebilir, bu konu...

Başlatan: Maui - Güncelleme: 27 Mart 2022, 21:36:55 - Gösterim: 647

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

Vbulletin Benzeri Yeni Konu Aç ve Cevapla Butonu Ekleme - SMF


SMF forum sistemine vbulletin ve xenforoda görmeye alışık olduğumuz yeni konu aç ve cevapla butonlarını eklemek için aşağıdaki değişiklikleri yapabilirsiniz. Kullandığınız sürüme göre kodlarda farklılık gösterebilir, bu konu altından talep ederseniz yardımcı olmaya çalışırım. Örnek olarak yeni konu aç butonu forumumuzda var zaten.


Temanızın index.css dosyasında;

En sona ekleyin:
/* New buttons like Vb Style */
.newbuttons_up
{
    height: 28px;
    padding-top: 2px;
}
.newbuttons_down
{
    height: 28px;
    padding-top: 2px;
    padding-bottom: 2px;
}
.newbuttons_up a, .newbuttons_down a
{
    background: #06090a;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-box-shadow: 0 3px 8px #dddddd;
    -webkit-box-shadow: 0 3px 8px #dddddd;
    font:   normal 14px Arial, sans-serif;
    color: #fff;
    padding: 4px 15px 4px 15px;
    border: 1px solid #000000;
    display:block;
    float: left;
    clear: right;
}
.newbuttons_up a span, .newbuttons_down a span
{
    font-size:15px;
    font-weight:bold;
    display:inline;
}
.newbuttons_up a:link, .newbuttons_up a:visited
.newbuttons_down a:link, .newbuttons_down a:visited
{
    color: #fff;
}
.newbuttons_up a:hover, .newbuttons_down a:hover
{
    background: #141415;
    color: #fff;
    text-decoration: none;
}



Temanızın/MessageIndex.template.php 'de bul:
 if (!$context['no_topic_listing'])
    {
        echo '
    <div class="pagesection">

Altına Ekle:
        <div class="newbuttons_up"><a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0','"><span>+</span> ', $txt['post_new_thread'], '</a></div>


Bul:
        <div class="pagelinks">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '&nbsp;&nbsp;<a href="#top"><strong>' . $txt['go_up'] . '</strong></a>' : '', '</div>

Altına Ekle:
        <div class="newbuttons_down"><a href="', $scripturl . '?action=post;board=' . $context['current_board'] . '.0','"><span>+</span> ', $txt['post_new_thread'], '</a></div>


Temanızın/Display.template.php 'de

Bulun:
                <div class="nextlinks">', $context['previous_next'], '</div>', template_button_strip($normal_buttons, 'right'), '

Üstüne Ekle:
                <div class="newbuttons_up"><a href="',  $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';last_msg=' . $context['topic_last_message'],'"><span>+</span> ', $txt['reply_to_thread'] , '</a></div>

Bul:
                <div class="nextlinks_bottom">', $context['previous_next'], '</div>


Altına Ekle:
                <div class="newbuttons_down"><a href="',  $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';last_msg=' . $context['topic_last_message'],'"><span>+</span> ', $txt['reply_to_thread'], '</a></div>


Default temanızın dil klösöründe

index.turkish.php 'de

Bulun:
?>

Üstüne Ekleyin:
$txt['post_new_thread'] = 'Yeni Konu Aç';
$txt['reply_to_thread'] = 'Cevapla';

Forumsever.com a aittir, izinsiz paylaşımı yasaktır.
Kerem imza


Deli tarafıma denk gelmeyin, zira orada ben bile hükümsüzüm...

Benzer Konular (5)

696

Yanıtlar: 6
Gösterim: 1720

4210

Yanıtlar: 1
Gösterim: 251

1462

Yanıtlar: 0
Gösterim: 599

21 Haziran 2021, 07:29:16
Gül34 tarafından
Clicky