The theme is under construction, please let us know any bugs you see in the meantime.
The theme is under construction, please let us know any bugs you see in the meantime.

Smf Anasayfada Ziyaretçi Karşılama Mesajı

orhan

Moderator
zufo1d.png


Boardindex.template.php
Bul:
Kod:
/* Each category in categories is made up of:

Üstüne ekle:
Kod:
if ($context['user']['is_guest'])
echo'
<div  class="ziyaretci_karsilama">
 
 ', $txt['ziyaretci_karsilama'], '
 
</div>
';

index.css
En alta ekle:
Kod:
.ziyaretci_karsilama
 { 
 background: #FFEB90;
 box-shadow: -2px 2px 2px #C8C8C8;
 clear: both;
 color: #3E3E3E;
 font-size: 12px;
 margin-bottom: 5px;
 padding: 5px 10px;
 text-align: left;
}

index.turkish.php
Bul:
Kod:
?>

Üstüne ekle:
Kod:
$txt['ziyaretci_karsilama'] = '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
<a href="' . $scripturl . '?action=register"><b>Kayıt</b></a> olmalısınız. Üye 
olmayanlar forumumuzda hiçbir şekilde aktivite uygulayamaz; Konu açamaz, Mesaj 
yazamaz, Eklenti indiremez, Özel mesajlasamaz. Forumumuzu tam anlamıyla 
kullanmak için üye olabilirsiniz.';
 
es.png
üstekı kodlar 2.0 icindir 2.1 icin
BoardIndex.template de
bulun
Kod:
/**
 * This actually displays the board index
 */
function template_main()
{
 global $context, $txt, $scripturl;

altina ekleyin

Kod:
if ($context['user']['is_guest'])
echo'
<div class="ts-alert ts-alert--info">
 <div class="ts-alert__item ts-alert__item--icon">
 <i class="ts-alert__icon fas fa-info"></i>
 </div>
 <div class="ts-alert__item ts-alert__item--main">
 
 ', $txt['ziyaretci_karsilama'], '
 
</div>
 </div>
';

index.css ye ekleyin

Kod:
/* ---- ( Alert ) ------------------------------------------------------ */

.ts-alert {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

@media (max-width: 479px) {
  .ts-alert {
    margin-right: 0rem;
    margin-left: 0rem;
  }
  #accordion a.wp {
    padding: 0;
    position: absolute;
    top: 13px;
    right: 86px;
    color: #13111e;
}
}

@media (min-width: 480px) {
  .ts-alert {
    border-radius: 0.25rem;
  }
}

.ts-alert--info {
  color: #6c757d;
  background-color: #f8f8f8;
  margin-bottom: 21px;
}

.ts-alert--success {
  color: #fff;
  background-color: #4caf50;
}

.ts-alert--warning {
  color: #fff;
  background-color: #ff9800;
}

.ts-alert--danger {
  color: #fff;
  background-color: #f44336;
}

.ts-alert__item--icon {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 3rem;
  background: #557ea0;
  box-shadow: 0 16px 20px rgba(255, 255, 255, 0.15) inset;
  text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.2);
}

@media (min-width: 480px) {
  .ts-alert__item--icon {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
  }
}

.ts-alert__item--icon::before {
  content: '';
  position: absolute;
  top: calc(50% - 0.5rem);
  right: -1rem;
  border: 0.5rem solid transparent;
  border-left-color: #75899f;
}

.ts-alert__item--main {
  width: calc(100% - 3rem);
  padding: 1rem 1rem 1rem 1.5rem;
  font-size: 0.875rem;
}

.ts-alert__icon {
  font-size: 1rem;
  color: #fdfeff;
}
.ts-alert__item--main p {
    margin-bottom: 0rem;
}
 
es.png
üstekı kodlar 2.0 icindir 2.1 icin
BoardIndex.template de
bulun
Kod:
/**
 * This actually displays the board index
 */
function template_main()
{
 global $context, $txt, $scripturl;
echo '
 <div id="boardindex_table" class="boardindex_table">';


DEGİŞTİR

Kod:
/**
 * This actually displays the board index
 */
function template_main()
{
 global $context, $txt, $scripturl, $settings;

 if ($context['user']['is_guest'])
  echo'
            <div class="ts-alert ts-alert--info"><link href="', $settings['default_theme_url'], '/css/all.css"; rel="stylesheet">
 <div class="ts-alert__item ts-alert__item--icon">
            <i class="ts-alert__icon fas fa-info"></i>
            </div>
            <div class="ts-alert__item ts-alert__item--main">
        ', $txt['ziyaretci_karsilama'], '
              </div></div>
';
                    
 echo '
 <div id="boardindex_table" class="boardindex_table">';


index.turkish.php
Bul:
Kod:
?>

ÜSTÜNE EKLE :
Kod:
$txt['ziyaretci_karsilama'] = '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
<a href="' . $scripturl . '?action=signup"><b>Kayıt</b></a> olmalısınız. Üye
olmayanlar forumumuzda hiçbir şekilde aktivite uygulayamaz; Konu açamaz, Mesaj
yazamaz, Eklenti indiremez, Özel mesajlasamaz. Forumumuzu tam anlamıyla
kullanmak için üye olabilirsiniz.';


index.css ye ekleyin

Kod:
/* ---- ( Alert ) ------------------------------------------------------ */

.ts-alert {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

@media (max-width: 479px) {
  .ts-alert {
    margin-right: 0rem;
    margin-left: 0rem;
  }
  #accordion a.wp {
    padding: 0;
    position: absolute;
    top: 13px;
    right: 86px;
    color: #13111e;
}
}

@media (min-width: 480px) {
  .ts-alert {
    border-radius: 0.25rem;
  }
}

.ts-alert--info {
  color: #6c757d;
  background-color: #f8f8f8;
  margin-bottom: 21px;
}

.ts-alert--success {
  color: #fff;
  background-color: #4caf50;
}

.ts-alert--warning {
  color: #fff;
  background-color: #ff9800;
}

.ts-alert--danger {
  color: #fff;
  background-color: #f44336;
}

.ts-alert__item--icon {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 3rem;
  background: #557ea0;
  box-shadow: 0 16px 20px rgba(255, 255, 255, 0.15) inset;
  text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.2);
}

@media (min-width: 480px) {
  .ts-alert__item--icon {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
  }
}

.ts-alert__item--icon::before {
  content: '';
  position: absolute;
  top: calc(50% - 0.5rem);
  right: -1rem;
  border: 0.5rem solid transparent;
  border-left-color: #75899f;
}

.ts-alert__item--main {
  width: calc(100% - 3rem);
  padding: 1rem 1rem 1rem 1.5rem;
  font-size: 0.875rem;
}

.ts-alert__icon {
  font-size: 1rem;
  color: #fdfeff;
}
.ts-alert__item--main p {
    margin-bottom: 0rem;
}


EKDEKİ DOSYAYI ZİPTEN ÇIKART  ANA  DİZİNE AT  : Ekli dosyayı görüntüle Themes.zip

Sanırım bu anlatım dogru oldu  yapamayanlar için
 

Notice

According to Article 8 of Law No. 5651 and Article 125 of the Turkish Republic Law, all our members are responsible for their posts. Content that you think is against the law and legislation FROM HERE You can report. I will try to get back to you as soon as possible.
Geri
Üst