Menü

İletileri Göster

Bu özellik size üyenin attığı tüm iletileri gösterme olanağı sağlayacaktır. Not sadece size izin verilen bölümlerdeki iletilerini görebilirsiniz.

İletileri Göster Menü

Konular - husami

#1
Siteyi botlar görsün ziyaretçiler göremesin  modu lazım bulamadım
#2
index.templatede bul
echo '
 <li>', $context['current_time'], '</li>
 </ul>';

değiştir
echo'<span style="color:#0466F9">',timeformat(time(),'%d %B %Y %A'), ' * </span>', $txt['saat'], ' <span style="color:#0466F9" id="clock2">', $txt['loading'], '</span>
 
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function refrClock()
{
var d=new Date();
var s=d.getSeconds();
var m=d.getMinutes();
var h=d.getHours();
var am_pm;
if (s<10) {s="0" + s}
if (m<10) {m="0" + m}
if (h>24) {h="24"}
else {am_pm=""}
if (h<10) {h="0" + h}
document.getElementById("clock2").innerHTML=h + ":" + m + ":" + s + am_pm;
setTimeout("refrClock()",1000);
}
refrClock();
 // ]]></script>';


#3

bu şekilde eklerseniz günüde gösterecektir alttaki kodu herhangi bir tema dosyasına ekleyebilirsiniz tarihi ayın günü ay, yıl ve haftanın günü olarak gösterir kod bütün koddur


index.templatede veya boardindeks.templatede direk çalışır

herhangi bir yere ekleyin

bul

';
altına ekle
echo'<span style="color:#0466F9">',timeformat(time(),'%d %B %Y %A'), ' * </span>', $txt['saat'], ' <span style="color:#0466F9" id="clock2">', $txt['loading'], '</span>

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function refrClock()
{
var d=new Date();
var s=d.getSeconds();
var m=d.getMinutes();
var h=d.getHours();
var am_pm;
if (s<10) {s="0" + s}
if (m<10) {m="0" + m}
if (h>24) {h="24"}
else {am_pm=""}
if (h<10) {h="0" + h}
document.getElementById("clock2").innerHTML=h + ":" + m + ":" + s + am_pm;
setTimeout("refrClock()",1000);
}
refrClock();
// ]]></script>';
#4
themes/

index.template.php de
bul

// The main content should go here.

üstüne ekle

[b]echo '
<br />
 <table border="0" width="100%" class="tborder" cellspacing="' , ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' : '0' , '" cellpadding="4" style="margin-bottom: 2ex;">
  <tr>
 <td class="catbg" align="center">Reklamlar</td>



</tr>
  <tr>
 <td valign="middle" align="center" height="60">';
echo'

', $settings['reklam'], '
</td></tr>
</table>';[/b]


settings.template.php de bul

);
}

?>

üstüne ekle

array(
 'id' => 'reklam',
 'label' => $txt['reklam'],
 'description' => $txt['reklam kodu'],
 'type' => 'text',
 ),



languages /

modification.turkish.php yada modification.turkish-utf8.php de bul


?>
üstüne ekle
 $txt['reklam'] = 'Reklam';

reklamlarınızı yönetim paneli kullanılan tema kısmında bulabilirsiniz


tarafımdan yapılmış olup kesinlikle alıntı değildir


yönetim panelinden resim eklemek için şu kodu kullanabilirsiniz

<img src"resim linki"/>

#5
Smfde Logoyu Ortalama (Mobilden girince düzgün gözükmesi için)

smfde logo sola kayıyor yada sağa kayıyor hatası için çözüm


Temanız
index.template.php de

<img src="', $context['header_logo_url_html_safe'], '" alt="', $context['forum_name_html_safe'], '" />';
Değiştir

<img width="100%" src="', $context['header_logo_url_html_safe'], '" alt="', $context['forum_name_html_safe'], '" />';  


ihtiyacım üzerine yaptım birçok arkadaşımızın işine yarayacaktır
#6
bu tema burak tarafından yapılmış orjinal temadır

sadece bazı yerleri değiştirilerek tarafımda 2.0.x şekline çevrilmiştir

ancak temayı ekten indirdikten sonra dil modifiyeli dil dosyasınıda indirerek kullanabilirsiniz


temayı sitenize kurduktan sonra ekteki languages adlı zip dosyasını açarak ftpden default temanın languages


klasörüne atın  


Not: tema sadece Türkçe utf8 de sorunsuz çalışır
#7
bu temayı tamamen kendim yaptım hiç biyerden alıntı değildir kaç gündür uğraşıyorum

lütfen bi teşekkürü çok görmeyin


tema 2.x serisi temalarda sorunsuz çalışmaktadır ancak modifiyeli dil dosyasınıda indirmeniz gerekmektedir


modifiyeli dil dosyasını zipten çıkartıp default temanın languages klasörüne atmanız gerekmekte


#8
İstatistik / İkonlu İstatistikler
15 Haz 2020, 18:52
boardindex.template de  Bul


template_info_center();
}

function template_info_center()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;

hemen Altına ekle

echo '<br />
    <span class="clear upperframe"><span></span></span>
    <div class="roundframe"><div class="innerframe">
        <div class="cat_bar">
            <h3 class="titlebg">
            </h3>
        </div>
            </h4>
   
<table class="tborder" cellpadding="5" cellspacing="1" width="100%" align="center">
        <tr>
        <th class="catbg" align="left" width="30%">', $txt['board_name'], '</th>
        <th class="catbg" align="left" width="30%">', $txt['recent_posts'], '</th>
        <th class="catbg" align="left" width="17%">', $txt['by'], '</th>
        <th class="catbg" align="left" width="23%">', $txt['date'], '</th></tr>
    </table>

<table cellspacing="1" width="100%" cellpadding="0"  border="0">';
if (!empty($context['latest_posts']))
foreach ($context['latest_posts'] as $post)
echo '
<tr><td class="windowbg2" valign="top" width="30%"><img alt="" src="', $settings['images_url'], '/husami1.gif" /><span class="smalltext">', $post['board']['link'],  '</span></td>
<td class="windowbg2" valign="top" width="30%"><img alt="" src="', $settings['images_url'], '/husami2.gif" /><span class="smalltext"><a href="',$post['href'],'">', $post['short_subject'], '</a></span></td>
<td class="windowbg2" valign="top" width="17%"><img alt="" src="', $settings['images_url'], '/husami3.gif" /><span class="smalltext">', $post['poster']['link'],'</span></td>
<td class="windowbg2" valign="top" width="23%"><img alt="" src="', $settings['images_url'], '/husami4.gif" /><span class="smalltext">', $post['time'], '</span></td></tr>';
echo '</div></table>
';

not Ekteki resim dosyasını indirerek ftpden temanızın images klasörüne atın
#9
Temanızın


index.template.php



Bul


// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer_section"><div class="frame">
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li><a id="button_xhtml" href="http://validator.w3.org/check/referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';

// Show the load time?

Değiştir

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer_section"><div class="frame">
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<a name="top"></a> <style> a.yukari { position:fixed; bottom:15px; right:20px; font:11px arial; text-transform:uppercase; } </style> <a href="#" _fcksavedurl="#" class="yukari"><img src="https://i.hizliresim.com/ecTaVM.png" _fcksavedurl="https://i.hizliresim.com/ecTaVM.png" border="0" title="Yukarı" /></a>
<li><a id="button_xhtml" href="http://validator.w3.org/check/referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
<li><a href=>2O11</a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';

// Show the load time?


#10
bu dosya Türkçe utf8 olarak tarafımdan 1 serisi temaların çoğunluğunu çalıştıracak şekilde modifiye edilmiştir


zipli dosyayı ekten indirerek zipten çıkartın ve default temadaki languagesklasörüne kopyalayın ftpden bu sayede

1 serisinde bulunan ancak 2 serisinde olmayan birçok temayı çalıştırabilirsiniz 2 serisinde
#11
ayarlari_onar.php dosyası şu amaçlar için gerektiğinde kullanılır:
1. Sitemizi başka bir hostinge taşıdığımızda forum dosya yollarını düzeltmek için,
2. Domain değişikliğinde yeni dosya yollarını düzeltmek için,
3. Panelden sunucu ayarlarını (db adını, db şifresi, db kullanıcı adı gibi) değiştirdiğimizde yeni bilgileri smfye tanıtmak için,
4. Forum dilini değiştirmek için,
5. Forumu bakım moduna almak ya da bakım modundan çıkarmak için,
6. Settings.php dosyası bilgimiz dışında değiştirildiğinde ayarlarımızı düzeltmek için kullanılır.

Nasıl kullanılır?
1. Ekteki dosya forum dizinine (Settings.php dosyasının olduğu yere) atılır.
2. Dosya adresi tarayıcımızın adres çubuğuna yazılır ve enter tuşuna basılır.
3. Açılan sayfada mavi linklere birer kere tıklanır.
4. Panelden db bilgilerimizde değişiklik yaptı isek db bilgileri ilgili satırlara yazılır.
5. Settings.php dosyasının chmodu 777 yapılır.
6. Kaydet butonuna basılır.
7. Yukarıda anlatılanlar bir kere daha tekrarlanır.

kullandıktan sonra sunucunuzdan silin

tarafımdan gerekli yerleri Türkçeleştirildi






https://www.dosya.tc/server29/5yakj9/ayarlari_onar.rar.html



#12
Smf Temaları / Teonun Laneti 4 (2.x)
15 Haz 2020, 01:18



https://s7.dosya.tc/server16/p4oort/teonun_laneti-4-_2.x_.zip.html


bu dil dosyasını zipten çıkartıp ftpden defaulttaki dil dosyanızla değiştirin  utf8dir sadece

https://www.dosya.tc/server29/uo6z0h/languages.zip.html
#14



sources/Subs-Recent.php de  bul
'short_subject' => shorten_subject($row['subject'], 24),



değiştir

'short_subject' => shorten_subject($row['subject'], 50),


#15
<html>
<head>
<style>
*{
font-family:sans-serif;
text-align:center
}
#countdown_container{
border-radius: 2px;
text-align: center;
font-weight: bold;
background: #a0a0a0;
border: 5px dashed #ffffff;
display: inline-block;
padding: 0 5px;
}

#countdown_timer>div{
float: left;
//background:#777777; /*black theme*/
background:#e0e0e0; /*white theme*/
padding:15px 20px;
margin:10px 5px;
text-align:center;
border-radius: 4px;
}

#countdown_timer>div>div:first-child{
font-size:28px;
//color:#ff6000; /*black theme*/
color:#0ab306; /*white theme*/
text-shadow: 0px 1px 0px #056d03; /*white theme*/
}

#countdown_timer>div>div:last-child{
text-transform: capitalize;
font-size:14px;
//color:#fff; /*black theme*/
color:#444; /*white theme*/
}
</style>
</head>
<body>

<div id="countdown_container">
<div id="countdown_timer"></div>
<div style="clear:both"></div>
</div>

<script>
var countDownDate = new Date("2020/06/05 21:00:00").getTime(); //geri sayılacak ileri zamanki bir tarih
var dayText = "Gün";
var hourText = "Saat";
var minuteText = "Dakika";
var secondText = "Saniye";
if (countDownDate){ //tarih var ise
var x = setInterval(function() { //sayacı belirli aralıklarla yenile
var now = new Date().getTime(); //şimdiki zamanı al
var distance = countDownDate - now; //geri sayılacak tarih ile şimdiki tarih arasındaki zaman farkını al
if (distance < 0) { //zaman farkı yok ise belirtilen zamanı geçti
clearInterval(x); //sayacı sil
$("#countdown_timer").html("Geri sayım yapılacak ileri bir tarih yoktur");
}else { //zaman farkı var ise
//aradaki zaman farkını gün,saat,dakika,saniye olarak böl
var days = Math.floor(distance / (1000 * 60 * 60 * 24)),
hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)),
minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)),
seconds = Math.floor((distance % (1000 * 60)) / 1000),
days = (days?'<div><div>'+days+'</div><div>'+dayText+'</div></div>':''), //gun varsa gun degerini yaz
hours = (hours?'<div><div>'+hours+'</div><div>'+hourText+'</div></div>':''), //saat varsa saat degerini yaz
minutes = (minutes?'<div><div>'+minutes+'</div><div>'+minuteText+'</div></div>':''), //dakika varsa dakika degerini yaz
seconds = (seconds?'<div><div>'+seconds+'</div><div>'+secondText+'</div></div>':''); //saniye varsa saniye degerini yaz
document.getElementById("countdown_timer").innerHTML = days + hours + minutes + seconds; //yazdır
}
}, 1000); //1 saniyede bir sayaç güncellenecek
}
</script>
</body>
</html>

kodlar bunlar


#16
[quote author=a[R]a[N] link=topic=129582.msg648909#msg648909 date=1251470457]
Herhangi bir sayfada "Login" yapınca aynı sayfa da kalma! (Seo Kullananlar İçin)

LogInOut.php'de Bul =

      if (isset($_SESSION['old_url']) && (strstr($_SESSION['old_url'], 'board=') !== false || strstr($_SESSION['old_url'], 'topic=') !== false))
          $_SESSION['login_url'] = $_SESSION['old_url'];
     else
          unset($_SESSION['login_url']);

Değiştir =

         if (isset($_SESSION['old_url']))
          $_SESSION['login_url'] = $_SESSION['old_url'];
     else
          unset($_SESSION['login_url']);

İlk Kodlama Sağlıklı Çalışmazsa Bunu Deneyiniz, Bul =

   if (empty($_SESSION['login_url']) && isset($_SESSION['old_url']) && preg_match('~(board|topic)[=,]~', $_SESSION['old_url']) != 0)
$_SESSION['login_url'] = $_SESSION['old_url'];

Değiştir =

   if (isset($_SESSION['old_url']))
          $_SESSION['login_url'] = $_SESSION['old_url'];
[/quote]
#17
[quote author=a[R]a[N] link=topic=129585.msg648913#msg648913 date=1251470853]
Themes/Temanız/İndex.Template.Php'de Bul =

/* Show sticky and lock status separate from topic icons? */
 $settings['separate_sticky_lock'] = true;

Değiştir =

/* Use plain buttons - as oppossed to text buttons? */
 $settings['use_buttons'] = true;
 /* Show sticky and lock status separate from topic icons? */
 $settings['separate_sticky_lock'] = true;
 
 /* Theme variants */
 $settings['theme_variants'] = array('purple', 'red', 'green', 'blue');



ThemeStrings.english.php ve ThemeStrings.turkish.php (UTF-8 kullanıcıları ThemeStrings.turkish-utf8.php) isimli dosyaları oluşturun ve alttaki kodları içine ekleyin.

Ekleyin =

<?php
$txt
['variant_purple'] = 'Purple Style';
$txt['variant_red'] = 'Red Style';
$txt['variant_green'] = 'Green Style';
$txt['variant_blue'] = 'Blue Style';
?>

imdi sıra style dosyalarını oluşturmaya geldi. Standart style.css dosyasından 4 adet kopya oluşturalım ve isimlerini style_purple.css, style_red.css, style_green.css ve style_blue.css olarak değiştirin.
Çoklu renk ekleme özelliğini bu şekilde aktif edebilirsiniz. Geriye kalan sadece bu style dosyalarını renklere göre düzenlemektir. Kullanıcılar bu renkleri profillerindeki tema ayarları bölümünden değiştirebilirler. Varsayılan rengi ayarlamak isterseniz Admin--Kullanılan Tema bölümünden bunu yapabilirsiniz.
Eğer temaların önizlemelerinide (küçük resimlerini) renge göre düzenlemek isterseniz, ilgili resmin ismini thumbnail_green.gif, thumbnail_red.gif gibi değiştirebilirsiniz. Önizleme resimlerinin isim koyma mantığı ise thumbnail_renk-ismi.gif



redirect.gif, on.gif, on2.gif ve off.gif resimlerininde renk stiline göre değişmesini isterseniz şu ayarları yapın:
Boardindex.template.php dosyanızda Bulun =

<img src="', $settings['images_url'], '/on', $board['new'] ? '' : '2', '.gif" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" border="0" />
Değiştir =

<img src="', $settings['images_url'], '/on', $board['new'] ? '' : '2', $context['theme_variant'], '.gif" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" border="0" />
Bul =

      <img src="', $settings['images_url'], '/redirect.gif" alt="*" title="*" border="0" />';

Değiştir =

      <img src="', $settings['images_url'], '/redirect', $context['theme_variant'], '.gif" alt="*" title="*" border="0" />';

Bul =

      <img src="', $settings['images_url'], '/off.gif" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

Değiştir =

      <img src="', $settings['images_url'], '/off', $context['theme_variant'], '.gif" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

Daha sonra renklere ait redirect.gif, on.gif, on2.gif ve off.gif resimlerinizi on_purple.gif, on2_purple.gif ve off_purple.gif gibi Themes/default/images klasörüne yükleyin.
Daha çok ayrıntı isterseniz http://docs.simplemachines.org/index.php?topic=1516. [İngilizce]

Alıntıdır
Simplemachines.org

[/quote]
#18
[quote author=a[R]a[N] link=topic=194222.msg946284#msg946284 date=1299943209]
register.template.php de bul
// With openID disabled we put the password here.
    if (empty($modSettings['enableOpenID']))
        echo '
                    <tr>
                        <td width="40%">
                            <b>', $txt['choose_pass'], ':</b>
                        </td>
                        <td>
                            <input type="password" name="passwrd1" id="smf_autov_pwmain" size="30" tabindex="', $context['tabindex']++, '" />
                            <span id="smf_autov_pwmain_div" style="display: none;">
                                <img id="smf_autov_pwmain_img" src="', $settings['images_url'], '/icons/field_invalid.gif" alt="*" />
                            </span>
                        </td>
                    </tr><tr>
                        <td width="40%">
                            <b>', $txt['verify_pass'], ':</b>
                        </td>
                        <td>
                            <input type="password" name="passwrd2" id="smf_autov_pwverify" size="30" tabindex="', $context['tabindex']++, '" />
                            <span id="smf_autov_pwverify_div" style="display: none;">
                                <img id="smf_autov_pwverify_img" src="', $settings['images_url'], '/icons/field_valid.gif" alt="*" />
                            </span>
                        </td>
                    </tr>';

altına ekle:
  echo '
                     <tr>
                        <td width="40%">
                           <b>Dogum Tarihi:</b>
                           <div class="smalltext">Gün - Ay - Yıl</div>
                        </td>
                        <td class="smalltext">
                           <input type="text" name="bday2" size="2" maxlength="2"  tabindex="', @$context['tabindex']++, '"value="', $context['member']['birth_date']['day'], '" />-
                           <input type="text" name="bday1" size="2" maxlength="2"  tabindex="', @$context['tabindex']++, '"value="', $context['member']['birth_date']['month'], '" /> -
                           <input type="text" name="bday3" size="4" maxlength="4" tabindex="', @$context['tabindex']++, '" value="', $context['member']['birth_date']['year'], '" />
                        </td>
                     </tr><tr>

                        <td width="40%"><b>Yer: </b></td>
                        <td><input type="text" name="location" size="30"  tabindex="', @$context['tabindex']++, '"value="', $context['member']['location'], '" /></td>
                     </tr>
                     <tr>
                        <td width="40%"><b>Cinsiyet: </b></td>
                        <td>
                           <select name="gender" size="1" tabindex="', @$context['tabindex']++, '">
                              <option value="0"></option>
                              <option value="1"', (@$context['member']['gender']['name'] == 'm' ? ' selected="selected"' : ''), '>Bay</option>
                              <option value="2"', (@$context['member']['gender']['name'] == 'f' ? ' selected="selected"' : ''), '>Bayan</option>
                           </select>
                        </td>
                     </tr><tr>
                        <td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
                     </tr>';

Zorunlu hale getirmek için ise
document.forms.creator.regSubmit.disabled =  (currentAuthMethod == "passwd" && (isEmptyText(document.forms.creator.smf_autov_pwmain) || isEmptyText(document.forms.creator.user) || isEmptyText(document.forms.creator.email))) || (currentAuthMethod == "openid" && isEmptyText(document.forms.creator.openid_url)) || !document.forms.creator.regagree.checked;
bul degistir:
document.forms.creator.regSubmit.disabled =  (currentAuthMethod == "passwd" && (isEmptyText(document.forms.creator.smf_autov_pwmain) || isEmptyText(document.forms.creator.user) || isEmptyText(document.forms.creator.email))) || (currentAuthMethod == "openid" && isEmptyText(document.forms.creator.openid_url)) || isEmptyText(document.forms.creator.gender) || isEmptyText(document.forms.creator.bday3) || isEmptyText(document.forms.creator.location) || !document.forms.creator.regagree.checked;



[/quote]
#19
[quote author=a[R]a[N] link=topic=194246.msg946313#msg946313 date=1299944831]
Konu gösterimlerinde alıntı v.s. yazılarını kaldırıp sadece butonlar kalsın istiyorsanız aşağıdaki uygulamayı yedek alarak yapın.
(Anlatım Default Tema ya Göredir.)

Display.template.php yi açın

Kod (Bulun) Seç
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '" onclick="return oQuickReply.quote(', $message['id'], ');">', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '">', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], '">', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_message'], '?\');">', $txt['remove'], '</a></li>';

Kod (Degistirin) Seç
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return oQuickReply.quote(', $message['id'], ', \'', $context['session_id'], '\', \'', $context['session_var'], '\', true);"></a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';', $context['session_var'], '=', $context['session_id'], '"></a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '"></a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_message'], '?\');"></a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '"></a></li>';
[/quote]
#20

ivan arkadaşımızın yokluğunda meşhur top 10 istatistiklerini 2.0 ile uyumlu hale getirdik.

not: benzer kodlamalardaki üye renklerinde olan sorun burada yoktur!

Manuel Anlatım:

Sources/Boardindex.php de bul
loadTemplate('BoardIndex', 'forum');
Sonrasına ekle
TopStats();
bul
?>
öncesine ekle
// TopStats by ilker
function TopStats()
{
   global $context, $smcFunc, $txt, $db_prefix, $scripturl, $modSettings;
         // Newest members top 10
   $members_result =  $smcFunc['db_query']('', '
      SELECT id_member, real_name, posts
      FROM {db_prefix}members
      ORDER BY id_member DESC
      LIMIT 10',
      array(
      )
   );
   $context['new_members'] = array();
   while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
   {
      $context['new_members'][] = array(
         'name' => $row_members['real_name'],
         'id' => $row_members['id_member'],
         'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
         'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
      );
   }
   $smcFunc['db_free_result']($members_result);
   //// Newest members top 10 Finish
   
    //  Top 10 karma
   $members_result = $smcFunc['db_query']('', '
      SELECT id_member, real_name, karma_good
      FROM {db_prefix}members
      ORDER BY karma_good DESC
      LIMIT 10');
   $context['karma'] = array();
   while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
   {
      $context['karma'][] = array(
         'name' => $row_members['real_name'],
         'id' => $row_members['id_member'],
         'karma' => $row_members['karma_good'],
         'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
         'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
      );
   }
   $smcFunc['db_free_result']($members_result);

   if (empty($context['karma']))
      return;

// Top 10 karma
  // Poster top 10.
$members_result = $smcFunc['db_query']('', '
SELECT id_member, real_name, posts
FROM {db_prefix}members
WHERE posts > {int:no_posts}
ORDER BY posts DESC
LIMIT 10',
array(
'no_posts' => 0,
)
);
$context['top_posters'] = array();
$max_num_posts = 1;
$context['MemberColor_ID_MEMBER'] = array();
while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
{
$context['top_posters'][] = array(
'name' => $row_members['real_name'],
'id' => $row_members['id_member'],
'num_posts' => $row_members['posts'],
'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
);

if ($max_num_posts < $row_members['posts'])
$max_num_posts = $row_members['posts'];
if (!empty($modSettings['MemberColorStats']) && !empty($row_members['id_member']))
$context['MemberColor_ID_MEMBER'][$row_members['id_member']] = $row_members['id_member'];
}
$smcFunc['db_free_result']($members_result);

foreach ($context['top_posters'] as $i => $poster)
{
$context['top_posters'][$i]['post_percent'] = round(($poster['num_posts'] * 100) / $max_num_posts);
$context['top_posters'][$i]['num_posts'] = comma_format($context['top_posters'][$i]['num_posts']);
}

// Board top 10.
$boards_result = $smcFunc['db_query']('', '
SELECT id_board, name, num_posts
FROM {db_prefix}boards AS b
WHERE {query_see_board}' . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? '
AND b.id_board != {int:recycle_board}' : '') . '
AND b.redirect = {string:blank_redirect}
ORDER BY num_posts DESC
LIMIT 10',
array(
'recycle_board' => $modSettings['recycle_board'],
'blank_redirect' => '',
)
);
$context['top_boards'] = array();
$max_num_posts = 1;
while ($row_board = $smcFunc['db_fetch_assoc']($boards_result))
{
$context['top_boards'][] = array(
'id' => $row_board['id_board'],
'name' => $row_board['name'],
'num_posts' => $row_board['num_posts'],
'href' => $scripturl . '?board=' . $row_board['id_board'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row_board['id_board'] . '.0">' . $row_board['name'] . '</a>'
);

if ($max_num_posts < $row_board['num_posts'])
$max_num_posts = $row_board['num_posts'];
}
$smcFunc['db_free_result']($boards_result);

foreach ($context['top_boards'] as $i => $board)
{
$context['top_boards'][$i]['post_percent'] = round(($board['num_posts'] * 100) / $max_num_posts);
$context['top_boards'][$i]['num_posts'] = comma_format($context['top_boards'][$i]['num_posts']);
}
// Are you on a larger forum?  If so, let's try to limit the number of topics we search through.
if ($modSettings['totalMessages'] > 100000)
{
$request = $smcFunc['db_query']('', '
SELECT id_topic
FROM {db_prefix}topics
WHERE num_replies != {int:no_replies}' . ($modSettings['postmod_active'] ? '
AND approved = {int:is_approved}' : '') . '
ORDER BY num_replies DESC
LIMIT 100',
array(
'no_replies' => 0,
'is_approved' => 1,
)
);
$topic_ids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$topic_ids[] = $row['id_topic'];
$smcFunc['db_free_result']($request);
}
else
$topic_ids = array();
// Topic views top 10.
$topic_view_result = $smcFunc['db_query']('', '
SELECT m.subject, t.num_views, t.id_board, t.id_topic, b.name
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board' . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? '
AND b.id_board != {int:recycle_board}' : '') . ')
WHERE {query_see_board}' . (!empty($topic_ids) ? '
AND t.id_topic IN ({array_int:topic_list})' : ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '')) . '
ORDER BY t.num_views DESC
LIMIT 10',
array(
'topic_list' => $topic_ids,
'recycle_board' => $modSettings['recycle_board'],
'is_approved' => 1,
)
);
$context['top_topics_views'] = array();
$max_num_views = 1;
while ($row_topic_views = $smcFunc['db_fetch_assoc']($topic_view_result))
{
censorText($row_topic_views['subject']);
$row_topic_views['subject'] = shorten_subject($row_topic_views['subject'], 18);
$context['top_topics_views'][] = array(
'id' => $row_topic_views['id_topic'],
'board' => array(
'id' => $row_topic_views['id_board'],
'name' => $row_topic_views['name'],
'href' => $scripturl . '?board=' . $row_topic_views['id_board'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row_topic_views['id_board'] . '.0">' . $row_topic_views['name'] . '</a>'
),
'subject' => $row_topic_views['subject'],
'num_views' => $row_topic_views['num_views'],
'href' => $scripturl . '?topic=' . $row_topic_views['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row_topic_views['id_topic'] . '.0">' . $row_topic_views['subject'] . '</a>'
);

if ($max_num_views < $row_topic_views['num_views'])
$max_num_views = $row_topic_views['num_views'];
}
$smcFunc['db_free_result']($topic_view_result);

foreach ($context['top_topics_views'] as $i => $topic)
{
$context['top_topics_views'][$i]['post_percent'] = round(($topic['num_views'] * 100) / $max_num_views);
$context['top_topics_views'][$i]['num_views'] = comma_format($context['top_topics_views'][$i]['num_views']);
}

// Try to cache this when possible, because it's a little unavoidably slow.
if (($members = cache_get_data('stats_top_starters', 360)) == null)
{
$request = $smcFunc['db_query']('', '
SELECT id_member_started, COUNT(*) AS hits
FROM {db_prefix}topics' . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? '
WHERE id_board != {int:recycle_board}' : '') . '
GROUP BY id_member_started
ORDER BY hits DESC
LIMIT 10',
array(
'recycle_board' => $modSettings['recycle_board'],
)
);
$members = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$members[$row['id_member_started']] = $row['hits'];
$smcFunc['db_free_result']($request);

cache_put_data('stats_top_starters', $members, 360);
}

if (empty($members))
$members = array(0 => 0);

// Topic poster top 10.
$members_result = $smcFunc['db_query']('', '
SELECT id_member, real_name
FROM {db_prefix}members
WHERE id_member IN ({array_int:member_list})
ORDER BY FIND_IN_SET(id_member, {string:top_topic_posters})
LIMIT 10',
array(
'member_list' => array_keys($members),
'top_topic_posters' => implode(',', array_keys($members)),
)
);
$context['top_starters'] = array();
$max_num_topics = 1;
while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
{
$context['top_starters'][] = array(
'name' => $row_members['real_name'],
'id' => $row_members['id_member'],
'num_topics' => $members[$row_members['id_member']],
'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
);

if ($max_num_topics < $members[$row_members['id_member']])
$max_num_topics = $members[$row_members['id_member']];
if (!empty($modSettings['MemberColorStats']))
$context['MemberColor_ID_MEMBER'][$row_members['id_member']] = $row_members['id_member'];
}
$smcFunc['db_free_result']($members_result);

foreach ($context['top_starters'] as $i => $topic)
{
$context['top_starters'][$i]['post_percent'] = round(($topic['num_topics'] * 100) / $max_num_topics);
$context['top_starters'][$i]['num_topics'] = comma_format($context['top_starters'][$i]['num_topics']);
}

//Yeah baby give me some colors =).
   if (!empty($modSettings['MemberColorLinkInstalled']) && !empty($context['MemberColor_ID_MEMBER'])) {
      $colorDatas = load_onlineColors($context['MemberColor_ID_MEMBER']);
$cmemcolid = null;
if (!empty($modSettings['MemberColorStats'])) {
// First the Top Posters =)
foreach($context['top_posters'] as $key => $value) {
$cmemcolid = $context['top_posters'][$key]['id'];
if(!empty($colorDatas[$cmemcolid]['colored_link']))
$context['top_posters'][$key]['link'] = $colorDatas[$cmemcolid]['colored_link'];
}
// First the Top Starter =)
foreach($context['top_starters'] as $key => $value) {
$cmemcolid = $context['top_starters'][$key]['id'];
if(!empty($colorDatas[$cmemcolid]['colored_link']))
$context['top_starters'][$key]['link'] = $colorDatas[$cmemcolid]['colored_link'];
}
// First the New Members =)
foreach($context['new_members'] as $key => $value) {
$cmemcolid = $context['new_members'][$key]['id'];
if(!empty($colorDatas[$cmemcolid]['colored_link']))
$context['new_members'][$key]['link'] = $colorDatas[$cmemcolid]['colored_link'];
}
// First the Top Karma =)
foreach($context['karma'] as $key => $value) {
$cmemcolid = $context['karma'][$key]['id'];
if(!empty($colorDatas[$cmemcolid]['colored_link']))
$context['karma'][$key]['link'] = $colorDatas[$cmemcolid]['colored_link'];
}
}
if (!empty($modSettings['latestMember']) && !empty($modSettings['MemberColorLatestMember'])) {
if(!empty($colorDatas[$modSettings['latestMember']]['colored_link']))
$context['latest_member']['link'] = $colorDatas[$modSettings['latestMember']]['colored_link'];
}
}
}

Temanız/Boardindex.template.php dosyasında bul ve sil
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent"><img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" /></a>
</td>
<td class="windowbg2">';

// 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 '
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
<div class="smalltext">
', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
</div>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%" border="0">';

/* 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 '
<tr>
<td class="middletext" valign="top"><b>', $post['link'], '</b> ', $txt[525], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</td>
</tr>';
}

bul
// Here's where the "Info Center" starts...
öncesine ekle
// full istatistikler smf.gen.tr. . .
 echo '<br /><div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
 <table border="0" width="100%" cellspacing="1" cellpadding="2" class="bordercolor">
 <tr><td width="100%" colspan="5" class="catbg" height="24"><a href="http://www.smf.gen.tr">Full - Top 10</a></td></tr>
 <tr class="titlebg">
 <td width="20%"><span class="smalltext">Top 10 Mesaj</span></td>
 <td width="17%"><span class="smalltext">Top 10 Karma</span></td>
 <td width="17%"><span class="smalltext">Top 10 Konu</span></td>
 <td width="29%"><span class="smalltext">Top 10 Populer Konu</span></td>
 <td width="17%"><span class="smalltext">Yeni Uyeler</span></td></tr>
 <tr class="windowbg">
 <td width="20%" valign="top"><table width="100%"><tr>
 <td width="75%" class="windowbg2"><span class="smalltext"><b>üye</b></span></td>
 <td width="25%" class="windowbg2" align="right"><span class="smalltext"><b>Mesaj</b></span></td></tr>';
 foreach ($context['top_posters'] as $poster)
 {echo '
 <tr><td width="75%" class="windowbg2"><img alt="" src="', $settings['default_theme_url'], '/images/t10/1top10.gif" /><span class="smalltext">', $poster['link'], '</span></td>
 <td width="25%" class="windowbg2" align="right"><span class="smalltext">', $poster['num_posts'], '</span></td></tr>';
 }echo '</table></td>
 <td width="17%" valign="top"><table width="100%" class="windowbg"><tr>
 <td width="75%" class="windowbg2"><span class="smalltext"><b>üye</b></span></td>
 <td width="25%" class="windowbg2" align="right"><span class="smalltext"><b>Karma</b></span></td></tr>';
 foreach ($context['karma'] as $member)
 {echo '
 <tr><td width="75%" class="windowbg2" valign="top"><img alt="" src="', $settings['default_theme_url'], '/images/t10/2top10.gif" /><span class="smalltext">', $member['link'], '</span></td>
 <td width="25%" class="windowbg2" align="right" valign="top"><span class="smalltext">', $member['karma'], '</span></td></tr>';
 }echo '</table></td>
 <td width="17%" valign="top"><table width="100%" class="windowbg"><tr>
 <td width="75%" class="windowbg2"><span class="smalltext"><b>uye</b></span></td>
 <td width="25%" class="windowbg2" align="right"><span class="smalltext"><b>Konu</b></span></td></tr>';
 foreach ($context['top_starters'] as $poster)
 {echo '
 <tr><td width="75%" class="windowbg2" valign="top"><img alt="" src="', $settings['default_theme_url'], '/images/t10/3top10.gif" /><span class="smalltext">', $poster['link'], '</span></td>
 <td width="25%" class="windowbg2" align="right" valign="top"><span class="smalltext">', $poster['num_topics'], '</span></td></tr>';
 }echo '</table></td>
 
 
 <td width="29%" valign="top"><table width="100%" class="windowbg"><tr>
 <td width="80%" class="windowbg2"><span class="smalltext"><b>Konu</b></span></td>
 <td width="20%" class="windowbg2" align="right"><span class="smalltext"><b>Hit</b></span></td></tr>';
 foreach ($context['top_topics_views'] as $topic)
 {echo '
 <tr><td width="80%" class="windowbg2" valign="top"><img alt="" src="', $settings['default_theme_url'], '/images/t10/4top10.gif" /><span class="smalltext">', $topic['link'], '</span></td>
 <td width="20%" class="windowbg2" align="right" valign="top"><span class="smalltext">', $topic['num_views'], '</span><img alt="" src="', $settings['default_theme_url'], '/images/t10/ivan_hit.gif" /></td></tr>';
 }echo '</table></td>
 <td width="17%" valign="top"><table width="100%" class="windowbg"><tr>
 <td width="100%" class="windowbg2"><span class="smalltext"><b>üye</b></span></td></tr>';
 foreach ($context['new_members'] as $poster)
 {echo '
 <tr><td width="100%" class="windowbg2" valign="top"><img alt="" src="', $settings['default_theme_url'], '/images/t10/5top10.gif" /><span class="smalltext">',$poster['link'], '</span></td> </tr>';
}echo '</table></td></tr>
 
 
 <tr class="windowbg">
 <td width="100%" colspan="5" height="0"><table width="100%">
 <tr class="titlebg">
 <td width="30%"><span class="smalltext"><b>Yanıtlanan Kategori</b></span></td>
 <td width="27%"><span class="smalltext"><b>Yanitlanan Konu</b></span></td>
 <td width="18%"><span class="smalltext"><b>Gonderen</b></span></td>
 <td width="25%"><span class="smalltext"><b>Tarih</b></span></td></tr></table>
 <table cellspacing="1" width="100%" cellpadding="0"  border="0">';
 foreach ($context['latest_posts'] as $post)
 echo '
 <tr>
 <td class="windowbg2" valign="top" width="30%"><img alt="" src="', $settings['default_theme_url'], '/images/t10/6top10.gif" /><span class="smalltext">', $post['board']['link'],  '</span></td>
 <td class="windowbg2" valign="top" width="27%"><img alt="" src="', $settings['default_theme_url'], '/images/t10/7top10.gif" /><span class="smalltext"><a href="',$post['href'],'">', $post['short_subject'], '</a></span></td>
 <td class="windowbg2" valign="top" width="18%"><img alt="" src="', $settings['default_theme_url'], '/images/t10/8top10.gif" /><span class="smalltext">', $post['poster']['link'],'</span></td>
 <td class="windowbg2" valign="top" width="25%"><img alt="" src="', $settings['default_theme_url'], '/images/t10/9top10.gif" /><span class="smalltext">', $post['time'], '</span></td></tr>';
 echo '</table></td></tr></table></div>';

Admin-> Kullanılan Tema -> Tema Ayarları -> Forum ana sayfasında gösterilecek en son ileti:buraya 10 yazmayı unutmayın.

Resimler için, ekte zip dosyanın içindeki t10 klasörünü olduğu gibi temanızın images klasörüne atarsınız (images/t10/ şeklinde)


Önerileriniz doğrultusunda farklı şekillerde yapılabilir.