Toplam 1 adet sonuctan sayfa basi 1 ile 1 arasi kadar sonuc gösteriliyor
-
03.Ağustos.2014, 11:26 #1Super Moderator
- Üyelik tarihi
- 05.Ekim.2013
- Mesajlar
- 334
Benzer Konular - Related Topics - Edit
Hızlı cevabın altında görüntülenen benzer konular listesini daha sade hale getirir ve konunun ilk iletisinde de görüntülenmesini sağlar.
ışlem Basamakları:
Öncelikle Benzer Konular - Related Topics - Konu - SMF Destek modu kurulu değilse kurulur.
Display.template.php
Bul:
Kod:
// Assuming there are attachments...
Üstüne ekle:
Kod:
if ($message['id'] == $context['topic_first_message'] and (!empty($context['related_topics'])) )
{
echo '
', $txt['related_topics'], '
';
// Added by Related Topics
if (!empty($context['related_topics'])) // TODO: Have ability to display no related topics?
{
foreach ($context['related_topics'] as $topic)
{
echo '
- ', $topic['first_post']['link'], '
';
}
}
echo '
';
}
Bul:
Kod:
// Added by Related Topics
if (!empty($context['related_topics'])) // TODO: Have ability to display no related topics?
{
echo '
';
}
Değiştir:
Kod:
if (!empty($context['related_topics']))
{
echo '
', $txt['related_topics'], '
';
if (!empty($context['related_topics']))
{
foreach ($context['related_topics'] as $topic)
{
echo '
- ', $topic['first_post']['link'], '
';
}
}
echo '
';
}
index.css en alta ekle:
Kod:
ul.related_topics {padding-left: 30px; margin-top: -10px;}
.related_topics li {margin-bottom: -10px; }
.related_topics_right{width: 50%; }
Bul
Kod:
fieldset
{
border: 1px solid #c4c4c4;
padding: 1em;
margin: 0 0 0.5em 0;
}
Değiştir:
Kod:
fieldset{border:1px solid #c4c4c4;padding:1em;margin:0 0 0.5em 0; border-radius: 5px;}
Orjinakonu: Benzer Konular - Related Topics - Edit - 2.0 Modifikasyonlar
Kaynak: Benzer Konular - Related Topics - Edit
Konu Bilgileri
Bu Konuya Gözatan Kullanıcılar
Şu anda 1 kullanıcı bu konuyu görüntülüyor. (0 kayıtlı ve 1 misafir)
Benzer Konular
-
Dünya'ya benzer bir gezegen keşfedildi: Kepler-452b
Konu Sahibi erkolay Forum BilimCevap: 0Son Mesaj : 25.Temmuz.2015, 16:41 -
Related Grup Visilabs’i satın aldı
Konu Sahibi megatron Forum Teknolojik MakalelerCevap: 0Son Mesaj : 12.Ocak.2015, 16:44 -
Ajax recent topics edit - Son konular listesine görsellik katın
Konu Sahibi bolubeyi Forum SMF EklentileriCevap: 0Son Mesaj : 03.Ağustos.2014, 11:26 -
Benzer Konular - Related Topics - Edit
Konu Sahibi bolubeyi Forum SMF EklentileriCevap: 0Son Mesaj : 23.Nisan.2014, 23:00 -
Ajax recent topics edit - Son konular listesine görsellik katın
Konu Sahibi bolubeyi Forum SMF EklentileriCevap: 0Son Mesaj : 16.Nisan.2014, 21:51
Shopsocks5 - Service Socks5 Cheap...
Dün, 14:47 in Güvenlik