Smf Ziyaretçilere Görünen Duyuru Alanı

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.

orhan

Moderator
Katılım
5 Ara 2018
Mesajlar
466
Tepkime puanı
88
Puanları
28
Anlatım Defult temaya güredir
index.template.php

Bulun
Kod:
</div><!-- #footer -->';

Sonrasına Ekleyin

Kod:
if ($context['user']['is_guest'])
echo'
 <div class="welcome_message">
 <button class="welcome_close">x</button>
 ', $txt['welcome_message'], '
 </div>';
scripts-scripts.js

Bul
Kod:
// tooltips
 $('.preview').SMFtooltip();

Sonrasına Ekleyin

Kod:
$(".welcome_close").click(function(){
  $(".welcome_message").hide(0);
});

langues-Modifications.english.php

Bul
Kod:
?>

Üstüne Ekle
Kod:
$txt['welcome_message'] = '<h3>Wouldnt it be better if you signed up? :) </h3>
 <p>Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. Its also quick and totally free, so what are you waiting for? </p>
 <a href="' . $scripturl . '?action=signup" class="welcome_register_btn">' . $txt['register'] . '<span> </span></a>';

Modifications.turkish.php

Kod:
$txt['welcome_message'] = '<h3>Kayıt olursan daha iyi olmaz mı? :) </h3>
 <p>Eğer sitemize yaptığınız ilk ziyaretiniz ise, Lütfen öncelikle
<a href="' . $scripturl . '?action=help"><b>Yardım</b></a> kriterlerini okuyunuz.
Forumumuzda bilgi alışverişinde bulunabilmeniz için öncelikle <b>Kayıt</b> olmalısınız. Eğer kayıtlı değilsen aşağıdaki kayıt ol butonuna tıkla, eğer kayıtlı isen yukarıdaki menüden giriş yap butonuna tıkla. </p>
 <a href="' . $scripturl . '?action=signup" class="welcome_register_btn">' . $txt['register'] . '<span> </span></a>';

css-index.css

Alta ekle

Kod:
/** welcome message **/
.welcome_message {
    -webkit-box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.32);
    box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.32);
    background-color: #ffffff;
    border-radius: 4px;
    padding: 1rem 1.5rem;
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 19rem;
    z-index: 999;
    animation: floating_message 6s infinite;
    color: #757575;
}

.welcome_close {
    position: absolute;
    right: 16px;
    background: transparent !important;
    border: 0;
    box-shadow: none;
    top: 8px;
    color: #9f9f9f;
    font-size: 13px;
    font-weight: 600;
}

.welcome_message:before {
    content: "";
    background-image: url(../images/wt.png);
    width: 76px;
    height: 76px;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 50%;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate(-50% , -50%);
}

.welcome_register_btn {
    width: 100%;
    text-align: center;
    display: block;
    background: #2b373a;
    padding: 6px;
    border-radius: .25rem;
    color: #f4f8f8 !important;
    text-transform: capitalize;
    font-size: 14px;
    font-weight: 600;
}

.welcome_register_btn:hover {
    background: #21282a;
}
.welcome_message > p {
    margin: 0 0 15px 0;
    font-size: 12px;
    font-weight: 400;
    color: #757575;
    text-align: justify;
}

@keyframes floating_message {
    0%{transform:translateY(0)
    }
    40%{transform:translateY(-8%)
    }
} 

@-webkit-keyframes floating_message {
    0%{transform:translateY(0)
    }
    40%{transform:translateY(-8%)
    }
} 

.welcome_message h3 {
    text-align: center;
    display: block;
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.welcome_register_btn span {
    color: #8204db;
}
ekteki resimi images kilasorune atin
 
Orhan bey iyiki varsın teşekkür ederim.
 
AAxAMg.png


yukarıdaki resim gibi oluyo
 
PowerStyle' Alıntı:
AAxAMg.png


yukarıdaki resim gibi oluyo

Bunu eklememişiniz
Modifications.turkish.php

Kod:
$txt['welcome_message'] = '<h3>Kayıt olursan daha iyi olmaz mı? :) </h3>
 <p>Eğer sitemize yaptığınız ilk ziyaretiniz ise, Lütfen öncelikle
<a href="' . $scripturl . '?action=help"><b>Yardım</b></a> kriterlerini okuyunuz.
Forumumuzda bilgi alışverişinde bulunabilmeniz için öncelikle <b>Kayıt</b> olmalısınız. Eğer kayıtlı değilsen aşağıdaki kayıt ol butonuna tıkla, eğer kayıtlı isen yukarıdaki menüden giriş yap butonuna tıkla. </p>
 <a href="' . $scripturl . '?action=signup" class="welcome_register_btn">' . $txt['register'] . '<span> </span></a>';

 
Merhaba site adresinizi eklerimsiniz bir bakayım.
 
index.template.php

theme.js

bu dosyaları ekleyin bir bakayım
 
deneyin
 

Ekli dosyalar

  • duyru.zip
    9 KB · Görüntüleme: 2
  • duyur.png
    duyur.png
    23.3 KB · Görüntüleme: 0
oldu teşekkür ederim ama TR karakter sorunu vaR

4e3IDU.png
 
Merhaba dil dosyasına eklediğiniz kodları silip buradaki kodları tekrar ekleyin düzelir
 

Geri
Üst Alt