Arşiv Anasayfa Modifikasyonlar
Sayfalar: 1
SMF modifikasyonları By: schizophrenic Date: 22 December 2007, 20:13:55
önemli: Çöl Ateşi - vBturk temalarının kodları aynıdır

sabit ve normal konuları birbirinden ayırma

messageindex template.php dosyasını aç

bunu bul


:  
foreach($context['topics'] as $topic)
{

bununla değiştir

:  
$stickybar = false;
$normalbar = false;

foreach($context['topics'] as $topic)
{
if($topic['is_sticky'] && !$stickybar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '"><b> Sabit Konular</b></td></tr>';
$stickybar = true;
}
else if(!$topic['is_sticky'] && $stickybar && !$normalbar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '"><b> Normal Konular</b></td></tr>';
$normalbar = true;
}

SMF modifikasyonları By: schizophrenic Date: 22 December 2007, 20:16:04
Mesaj ikonlarını anasayfada gösterme

sources klasorundeki
BoardIndex.php

Bul:


:  
IFNULL(mods_mem.ID_MEMBER, 0) AS ID_MODERATOR, mods_mem.realName AS modRealName

bununla değiştir

:  
IFNULL(mods_mem.ID_MEMBER, 0) AS ID_MODERATOR, mods_mem.realName AS modRealName, m.icon


bul:

:  
$this_last_post = array(
'id' => $row_board['ID_MSG'],

bununla değiştir

:  
$this_last_post = array(
'id' => $row_board['ID_MSG'],
'icon' => $row_board['icon'],

vbturk klasorundeki
BoardIndex.template.php


bu kodu bul:
:  
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '

altına bunu ekle

:  
<img align="absmiddle" src="', $settings['images_url'], '/post/', $board['last_post']['icon'], '.gif" alt="Icon" />

SMF modifikasyonları By: schizophrenic Date: 22 December 2007, 20:16:57
! FORUMDAN YARARLANMAK iÇiN ÜYE OLUN !  kısmını  yapmak için


boardindex.tamplate de

bu kodu bul
:  
// ]]></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>';
}

bunu altına yapıştır gerekli yerleri kendine göre değiştir

:  
// hosgeldin mesaji...by rallyproco
 if ($context['user']['is_guest'])

  echo '
   <br><div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
   <table border="0" width="100%" cellspacing="0" cellpadding="2" class="bordercolor">  <tr>
    <td width="100%" align="center" class="catbg" height="24">
    <font color="#FFFFFF"><b>(¯`·.(¯`·. (¯`·.(¯`·. Teknodyum\'a Hos Geldiniz .·´¯).·´¯) .·´¯).·´¯)</b></font></td>
  </tr>
<tr class="windowbg2">
<td><br>
<p align="center"><b><font size="5" color="#FF0000">! FORUMDAN YARARLANMAK iÇiN
ÜYE OLUN !</font></b></p>
<p align="center"><b><a href="http://www.teknodyum.com/index.php?option=com_registration&task=register">
<font size="5">
ÜYE OLMAK iÇiN TIKLAYIN</font></a></b><br>

<BR /></p>
</td>
</tr>
</table></div>

   ';

SMF modifikasyonları By: schizophrenic Date: 22 December 2007, 20:17:41
alt bölümleri 2 sıra şeklinde aşağı doğru sıralamak için


boardindex.template de

bunu bul
:  
foreach ($board['children'] as $child)
{



$child['link'] = '

<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
//interaktif altbolum logosu by rallyproco

$children[] = $child['new'] ? '<img align="absmiddle" src="http://img218.imageshack.us/img218/3355/alton7ab.gif"/>' . $child['link'] . '' : '<img align="absmiddle" src="http://img218.imageshack.us/img218/3105/altoff1ad.gif"/>' .$child['link'];

}

echo '
<div style="padding-top: 1px;" class="smalltext"><b>', $txt['parent_boards'], ': </b>', implode(' , ', $children), '</div>';
}

echo '
</td>

bununla değiştir
:  
$sayac=0;
foreach ($board['children'] as $child)
{



$child['link'] = '

<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
//interaktif altbolum logosu by rallyproco

$children[] = $child['new'] ? '<img align="absmiddle" src="http://img218.imageshack.us/img218/3355/alton7ab.gif"/>' . $child['link'] . '' : '<img align="absmiddle" src="http://img218.imageshack.us/img218/3105/altoff1ad.gif"/>' .$child['link'];
$sayac++;
}

echo '
<table><tr><td valign="top">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>:<br/>';
for($sayac2 = 0 ; $sayac2 < ceil($sayac/2);$sayac2++)
echo $children[$sayac2], '<br/>';
echo '
</span></td><td width="30"> </td><td valign="top"><span class="smalltext"><br/>';
for(; $sayac2 < $sayac ; $sayac2++)
echo $children[$sayac2], '<br/>';
echo '
</span></td></tr></table>';
}

echo '
</td>

SMF modifikasyonları By: schizophrenic Date: 22 December 2007, 20:20:34
İstatistik - Top 10

Yapımı


Bu kodlar 1,1 rc2 versiyonu ve Çöl ateşi, ve vBturk temaları içindir diğer temalardada bunlara yakın kodlar vardır

öncelikle admin paneline girip kullanılan temadan aşağıdaki ayarı yapıyoruz (10 dan fazla olursa şekil bozukluğu oluyo)



sources/boardindex.php yi açıyoruz

bu kodu bulup


:  
// Find all boards and categories, as well as related information.  This will be sorted by the natural order of boards and categories, which we control.

üst satırına bu kodu ekliyoruz
:  
// Statistics such as number of boards, categories, etc. by rallyproco
$result = db_query("
SELECT COUNT(b.ID_BOARD)
FROM {$db_prefix}boards AS b", __FILE__, __LINE__);
list ($context['num_boards']) = mysql_fetch_row($result);
mysql_free_result($result);

$result = db_query("
SELECT COUNT(c.ID_CAT)
FROM {$db_prefix}categories AS c", __FILE__, __LINE__);
list ($context['num_categories']) = mysql_fetch_row($result);
mysql_free_result($result);

$context['num_members'] = &$modSettings['totalMembers'];
$context['num_posts'] = &$modSettings['totalMessages'];
$context['num_topics'] = &$modSettings['totalTopics'];
$context['most_members_online'] = array(
'number' => &$modSettings['mostOnline'],
'date' => timeformat($modSettings['mostDate'])
);
$context['latest_member'] = &$context['common_stats']['latest_member'];


// Poster top 10. by rallyproco
$members_result = db_query("
SELECT ID_MEMBER, realName, posts
FROM {$db_prefix}members
WHERE posts > 0
ORDER BY posts DESC
LIMIT 10", __FILE__, __LINE__);
$context['top_posters'] = array();
$max_num_posts = 1;
while ($row_members = mysql_fetch_assoc($members_result))
{
$context['top_posters'][] = array(
'name' => $row_members['realName'],
'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['realName'] . '</a>'
);

if ($max_num_posts < $row_members['posts'])
$max_num_posts = $row_members['posts'];
}
mysql_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);

// yeni uyeler. by rallyproco
$members_result = db_query("
SELECT ID_MEMBER, realName, posts
FROM {$db_prefix}members
ORDER BY ID_MEMBER DESC
LIMIT 10", __FILE__, __LINE__);
$context['yeniuyeler'] = array();
$max_num_posts = 1;
while ($row_members = mysql_fetch_assoc($members_result))
{
$context['yeniuyeler'][] = array(
'name' => $row_members['realName'],
'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['realName'] . '</a>'
);

if ($max_num_posts < $row_members['posts'])
$max_num_posts = $row_members['posts'];
}
mysql_free_result($members_result);

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

Default kullananlar: şimdide themes/default/boardindex.template dosyasını açıyoruz
Çöl Ateşi kullananlar: şimdide themes/col_atesi/boardindex.template dosyasını açıyoruz
vBturk kullananlar: şimdide themes/vBturk/boardindex.template dosyasını açıyoruz
hangi temayı kullanıyorsanız onunkini açıyorsunuz



bu kodup bulup hepsini siliyoruz (bo kod son mesajları tablo haline falan getirdiyseniz daha önce biraz farklı olabilir o zaman // This is the "Recent Posts" bar. dan başlıyarak // Show information about events, birthdays, and holidays on the calendar. dıra kadar olan kısmı silin )

:  
// 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 border="0" width="100%" cellspacing="1" cellpadding="0" class="bordercolor">
 <tr>
<th class="windowbg" align="left" width="42%">Konu</th>
<th class="windowbg" align="left" width="12%">Gönderen</th>
<th class="windowbg" align="left" width="25%">Bölüm</th>
<th class="windowbg" align="left" width="21%">Tarih</th>
 </tr>';


/* 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="windowbg2" valign="middle" width="42%"><font style="font-size: 8pt">', $post['link'], '</font></td>
<td class="windowbg2" valign="middle" width="12%"><font style="font-size: 8pt">', $post['poster']['link'], '</font></td>
<td class="windowbg2" valign="middle" width="25%"><font style="font-size: 8pt">', $post['board']['link'], '</font></td>
<td class="windowbg2" valign="middle" width="21%"><font style="font-size: 8pt">', $post['time'], '</font></td>

</tr>';
echo '
</table>';
}
echo '
</td>
</tr>';
         }
daha sonra bo kodu bulup
:  
// Here's where the "Info Center" starts...

üst satırına bu kodu ekleyin
:  
// istatistik top 10...by rallyproco

 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="4" class="catbg" height="24">
    <font color="#FFFFFF"><b>İstatistikler - Top 10</b></font></td>
  </tr>
<tr class="titlebg">
<td width="21%"><font style="font-size: 8pt">En çok mesaj gönderenler</font></td>
    <td width="20%"><font style="font-size: 8pt">Yeni üyeler</font></td>
    <td width="59%"><font style="font-size: 8pt">Son Mesajlar</font></td>
</tr>
<tr class="windowbg2">
<td width="21%" valign="top"><table width="100%"><tr>

<td width="60%" class="windowbg2"><b><font style="font-size: 8pt">Üye:</font></b></td><td width="40%" class="windowbg2" align="right"><b><font style="font-size: 8pt">Mesaj:</font></b></td>
</tr><tr>
';
foreach ($context['top_posters'] as $poster)
{
echo '



<td width="60%" class="windowbg2"><font style="font-size: 8pt">', $poster['link'], '</font></td>

<td width="40%" class="windowbg2" align="right"><font style="font-size: 8pt">', $poster['num_posts'], '</font></td>


</tr>'; 

} echo '</table></td>
<td width="20%" valign="top">   

<table width="100%"><tr>

<td width="60%" class="windowbg2"><b><font style="font-size: 8pt">Üye:</font></b></td><td width="40%" class="windowbg2" align="right"><b><font style="font-size: 8pt">Mesaj:</font></b></td>
</tr><tr>
';
foreach ($context['yeniuyeler'] as $poster)
{
echo '



<td width="60%" class="windowbg2" valign="top"><font style="font-size: 8pt">',$poster['link'], '</font></td>

<td width="40%" class="windowbg2" align="right" valign="top"><font style="font-size: 8pt">',$poster['num_posts'], '</font></td>


</tr>'; 

} echo '</table>



</td>
<td width="59%" valign="top">';

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{


// 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 width="100%" >
 <tr class="windowbg2">
<td width="42%"><b><font style="font-size: 8pt">Konu:</font></b></td>
<td width="22%"><b><font style="font-size: 8pt">Gönderen:</font></b></td>
<td width="36%"><b><font style="font-size: 8pt">Tarih:</font></b></td>
 </tr><span class="smalltext">';


/* 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="windowbg2" valign="top" width="42%"><font style="font-size: 8pt"><a href="',$post['href'],'">', $post['short_subject'], '</font></td>
<td class="windowbg2" valign="top" width="22%"><font style="font-size: 8pt">', $post['poster']['link'], '</font></td>
<td class="windowbg2" valign="top" width="36%"><font style="font-size: 8pt">', $post['time'], '</font></td></span>

</tr>';
echo '
</table>';
}
echo '
</td>
</tr></table></div>';
         }


SMF modifikasyonları By: schizophrenic Date: 22 December 2007, 20:22:44
Bugun Online Olan Üyeler modunun çöl ateşi ve vbturke uyarlanmış halleri ektedir    


Ay Isıgı Olan Konuya Eklendi Yalnız Ay Isıgını Kurarken Boardindex.Template.Php de hata Alanlar Aynen Uygulasın Ve Aşşagıdaki İşlemi Yapsın Ay Isıgı Ceviri PiReSeRHaT a Aittir

temaismi/BoardIndex.template.php aç

bunu bul

:  
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';

Altına Ekle

:  
// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';

SMF modifikasyonları By: schizophrenic Date: 22 December 2007, 20:34:21
Mesaj Simgelerini vB deki gibi yapma


post.template.php de

bunu bulup

:  
<select name="icon" id="icon" onchange="showimage()">';

// Loop through each message icon allowed, adding it to the drop down list.
foreach ($context['icons'] as $icon)
echo '
<option value="', $icon['value'], '"', $icon['value'] == $context['icon'] ? ' selected="selected"' : '', '>', $icon['name'], '</option>';

echo '
</select>
<img src="', $context['icon_url'], '" name="icons" hspace="15" alt="" />
</td>
</tr>';
bununla değiştir
:  
';

// Loop through each message icon allowed, adding it to the drop down list. by rallyproco
foreach ($context['icons'] as $icon)
echo '
<INPUT type="radio" name="icon" value="', $icon['value'], '"', $icon['value'] == $context['icon'] ? ' checked="checked"' : '', '> <img src="', $icon['url'], '" name="icons" alt="" />';

echo '
</td>
</tr>';

Ek seçeneklerin üstüne alma

işte çözüm (önceki verdiğim yöntemi yaptıktan sonra)



post.template.php dosyasını açın

bu kodu alıp (kesip)


:  
<tr>
<td align="right">
<b>', $txt[71], ':</b>
</td>
<td>
';

// Loop through each message icon allowed, adding it to the drop down list. by rallyproco
foreach ($context['icons'] as $icon)
echo '
<INPUT type="radio" name="icon" value="', $icon['value'], '"', $icon['value'] == $context['icon'] ? ' checked="checked"' : '', '> <img src="', $icon['url'], '" name="icons" alt="" />';

echo '


</td>
</tr>
bu kodun altına yapıştır
:  
// If the admin has enabled the hiding of the additional options - show a link and image for it.
if (!empty($settings['additional_options_collapsable']))
echo '

SMF modifikasyonları By: schizophrenic Date: 22 December 2007, 20:38:42
Modaratore Bildir Buton Yapımı



ilk önce images dosyasına report.gif diye bir resim dosyası atıyoruz bunun gibi
Display.templates.php dosyasını açın

bu kodu sil
:  
// Maybe they want to report this post to the moderator(s)?
if ($context['can_report_moderator'])
echo '
<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['rtm1'], '</a> &nbsp;';

bu kodun üstüne  (üst satırına)
:  
// Otherwise, show the guest's email.

bu kodu yapıştırın

:  
// Show the report. by rallyproco
if ($context['can_report_moderator'])
echo '
<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '"><img src="' . $settings['images_url'] . '/report.gif" alt="' . $txt['rtm1'] . '" border="0" /></a>';

SMF modifikasyonları By: schizophrenic Date: 22 December 2007, 20:40:10
İnteraktif altbölüm logosu yapımı

mesaj geldiğinde alt bölümlerin logosu vbdeki gibi değişir   kullanılan logoları imageshack a attım siz isterseniz kendi hostunuzada atabilirsiniz adresleri ona göre değiştirirsiniz



boardindex.template.php dosyasını aç

bu kodu bul
:  
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];

bununla değiştir
:  
//interaktif altbolum logosu by rallyproco
$children[] = $child['new'] ? '<img align="absmiddle" src="http://img218.imageshack.us/img218/3355/alton7ab.gif"/>' . $child['link'] . '' : '<img align="absmiddle" src="http://img218.imageshack.us/img218/3105/altoff1ad.gif"/>' .$child['link'];

SMF modifikasyonları By: schizophrenic Date: 22 December 2007, 20:41:01
Her kategoriye ayrı bir resim

çölateşinde (ve vbturkte) temada boardindex template yi aç

bu kodu bul

:  
<img src="', $settings['images_url'], $board['new'] ? '/on.gif" alt="' . $txt[333] . '" title="' . $txt[333] : '/off.gif" alt="' . $txt[334] . '" title="' . $txt[334], '" border="0" />

bununla değiştir
:  
';

// If the board is new, show a strong indicator.
            if ($board['new'])
               echo '<img src="', $settings['images_url'], '/katicon/on_' . $board['id'] . '.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
            // This board doesn't have new posts, but its children do.
            elseif ($board['children_new'])
               echo '<img src="', $settings['images_url'], '/katicon/on_' . $board['id'] . '.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
            // No new posts at all!  The agony!!
            else
               echo '<img src="', $settings['images_url'], '/katicon/off_' . $board['id'] . '.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
echo'

Şimdi images klasorun içine katicon diye bir klasor yap her kategori icin resimler koy. ornegin 15 nolu kategori icin, on_15.gif on2_15.gif ve off_15.gif seklinda
on.gif, yeni mesaj varsa; on_2.gif alt bolumlerde yeni mesaj varsa; off.gif yeni mesaj yoksa gosterilir
SMF modifikasyonları By: schizophrenic Date: 22 December 2007, 20:42:23
Anasayfaya yeni butonu ekleme



boardindex.template.php aç..
bu kodu bul
:  
<td class="windowbg2" align="left">
<a name="b', $board['id'], '"></a>
<b>', $board['link'], '</b><br />
<font style="font-size: 8pt">', $board['description'], '</font>';

bununla değiştir
:  
<td class="windowbg2" align="left">';
//anasayfada yeni butonu by rallyproco
if ($board['new'])
echo'
<a name="b', $board['id'], '"></a>
<b>', $board['link'], '</b> <img align="absmiddle" src="', $settings['images_url'], '/yeni.gif" border="0" /><br />
<font style="font-size: 8pt">', $board['description'], '</font>';
else
echo'
<a name="b', $board['id'], '"></a>
<b>', $board['link'], '</b><br><font style="font-size: 8pt">', $board['description'], '</font>';

bu resmide   images klasorune at


SMF modifikasyonları By: schizophrenic Date: 22 December 2007, 20:43:29
İstatistik top 10 da son mesaj tek satır yapma


not: şuanki istatistik top 10 nu yapanlarda bu özellik içinde var. bu değişiklik daha önceden yapanlara gerekli sadece

işte bir olaya daha imza attık son mesajı tek satıra düşürmeyi başardım artık sağa sola yukarı kayan saçma yöntemlere gerek kalmadı başlık ne kadar uzun olursa olsun top 10 da sadece 24 karakteri gözükür.




boardindex.template.php yi açıyoruz

bu kodu bulup
:  
', $post['link'], '

bununla değiştirioruz
:  
<a href="',$post['href'],'">', $post['short_subject'], '

SMF modifikasyonları By: PiReSeRHaT Date: 22 December 2007, 20:44:21
Bugun Online Olan Uyeler Paketler Yukarıda Schizophrenic Tarafından Verilmiş Ama Tamamını Manuele Cevirdim İsteyenler Alttan Uygulayabilir


Manuel Kurulum

sources/BoardIndex.php

bunu bul
:  
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

altına bunu ekle
:  
// Load the users online today.
$nowdate = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $nowdate['mon'], $nowdate['mday'], $nowdate['year']) - ($modSettings['time_offset'] * 3600);

$s = strpos($user_info['time_format'], '%S') === false ? '' : ':%S';
if (strpos($user_info['time_format'], '%H') === false && strpos($user_info['time_format'], '%T') === false)
$time_fmt = '%I:%M' . $s . ' %p';
else
$time_fmt = '%H:%M' . $s;

$result = db_query("
SELECT
mem.ID_MEMBER, mem.lastLogin, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP, mg.groupName
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP)) WHERE mem.lastLogin >= $midnight", __FILE__, __LINE__);

$context['num_hidden_users_online_today'] = 0;
$context['users_online_today'] = array();
$context['list_users_online_today'] = array();

while ($row = mysql_fetch_assoc($result))
{
if (empty($row['showOnline']))
{
$context['num_hidden_users_online_today'] = $context['num_hidden_users_online_today'] + 1;
if (!allowedTo('moderate_forum')) continue;
}

$userday = strftime('%d', forum_time(true));
$loginday = strftime('%d', forum_time(true, $row['lastLogin']));
$yesterday = $userday == $loginday ? '' : $txt['uot_yesterday'];

$lastLogin = $yesterday . strftime($time_fmt, forum_time(true, $row['lastLogin']));
$title = ' title="' . $lastLogin . '"';

// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . $title . ' style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . $title . '>' . $row['realName'] . '</a>';

$is_buddy = in_array($row['ID_MEMBER'], $user_info['buddies']);
if ($is_buddy)
{
$link = '<b>' . $link . '</b>';
}

$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'is_buddy' => $is_buddy,
'hidden' => empty($row['showOnline']),
);

$context['list_users_online_today'][$row['lastLogin'] . $row['memberName']] = empty($row['showOnline']) ? '<i>' . $link . '</i>' : $link;
}
mysql_free_result($result);

krsort($context['users_online_today']);
krsort($context['list_users_online_today']);

$context['num_users_online_today'] = count($context['users_online_today']);
if (!allowedTo('moderate_forum'))
{
$context['num_users_online_today'] = $context['num_users_online_today'] + $context['num_hidden_users_online_today'];
}

sources/Stats.php

bunu bul
:  
$context['online_today'] = (int) $context['online_today'];

altına bunu ekle
:  
// Total members online today
$frag = explode('-', strftime('%Y-%m-%d', time()));
$midnight = forum_time(false, mktime(0, 0, 0, (int) $frag[1], (int) $frag[2], (int) $frag[0]));
$result = db_query("
SELECT
COUNT(*)
FROM {$db_prefix}members
WHERE lastLogin >= $midnight", __FILE__, __LINE__);
list ($context['total_users_online_today']) = mysql_fetch_row($result);


temaismi/BoardIndex.template.php

bunu bul
:  
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';

altına bunu ekle
:  
// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';

Stats.template.php

bunu bul
:  
<td nowrap="nowrap">', $txt['users_online_today'], ':</td>
<td align="right">', $context['online_today'], '</td>';

bununla değiştir
:  
<td nowrap="nowrap">', $txt['users_online_today'], ':</td>
<td align="right">', $context['online_today'], '</td>
</tr><tr>
<td nowrap="nowrap">', $txt['uot_total_users_online_today'], ':</td>
<td align="right">', $context['total_users_online_today'], '</td>';

languages/Modifications.turkish.php

bunu bul hemen öncesine
:  
?>

bunu ekle
:  
$txt['uot_users_online_today_title']='Bugün Online Olan Üyeler';
$txt['uot_total_users_online_today']='Bugün Online Olan Üyeler';
$txt['uot_yesterday']='Dün, Þu Saatte: ';
$txt['uot_total']='Toplam';
$txt['uot_visible']='Normal';
$txt['uot_hidden']='Gizli';


çöl ateşinde olmayan dosyaları defaulttan düzenleyeceksiniz








Ynt: SMF modifikasyonları By: schizophrenic Date: 31 December 2007, 21:59:30
Tesekkur Ederim Canım..
SMF modifikasyonları By: hyper Date: 24 February 2008, 11:37:32
evalla güzel modlar saol