Mayıs 14, 2024, 23:10:36 ös

Gönderen Konu: smf destek bolumu  (Okunma sayısı 7661 defa)

Çevrimdışı Yağız!

  • FifaDelisi
  • Daimi Üye
  • İleti: 915
  • Karma: 8
    • Profili Görüntüle
smf destek bolumu
« : Ocak 29, 2007, 22:24:50 ös »
arkadaslar burda smf detsek vericem her gun yada her 2 gunde bir yeni modlar yeni manueller koyucam sorunlarinizada karsilik vericem ;)

bu konu sabitlenirse sewinirim

ilk olarak gerekli uc seyden baslicam:

Alıntı
Araç: Ayarları Onar
Çeviren: ASi ve MAVi
Açıklama: Bu araç, forumunuzda hatalı ayarlar varsa onları düzeltmeye ve forumunuzu başka yere taşıdığınızda gerekli değişiklikleri yapmaya yarar.
Dosya: İndir
Uyumluluk: Tüm SMF versiyonları
Kullanım: Eğer hatalı ayar var ise bunları onarmak için; forum klasörünüze bu dosyayı attıktan sonra tarayıcınızla açın ve yönergeleri izleyin. Ör: www.site.com/forum/ayarlari_onar.php Eğer forumunuzu başka klasör ya da başka sunucuya taşıdıysanız, yeni klasörünüze bu dosyayı atın ve tarayıcınızla çalıştırın. Ör: www.site.com/yeni_forum/ayarlari_onar.php


Alıntı
Araç: Veritabanı Yedekle
Çeviren: Elmacik
Açıklama: Bu araç, forumunuzun veritabanının yedeğini alır ve onu sunucu üzerinde bir dosya olarak sonraki kullanımlar için kaydeder.
Dosya:  İndir
Uyumluluk: Tüm SMF versiyonları
Kullanım: Bu dosyayı sunucunuz üzerinde forum klasörüne atın ve tarayıcınızla çalıştırın. Yönergeleri izleyin. Ör: www.site.com/forum/veritabani_yedekle.php

Alıntı
Araç: Veritabanı Geri Yükle
Çeviren: Elmacik
Açıklama: Bu araç, önceden almış olduğunuz veritabanı yedeğini forumunuza geri yüklemeye yarar. Örneğin forumu başka sunucuya taşıdığınızda..
Dosya:  İndir
Uyumluluk: Tüm SMF versiyonları
Kullanım: Bu dosyayı sunucunuz üzerinde forum klasörüne atın ve tarayıcınızla çalıştırın. Yönergeleri izleyin. Ör: www.site.com/forum/veritabani_geri_yukle.php
« Son Düzenleme: Şubat 04, 2007, 07:03:53 öö Gönderen: cakal93 »
Lig 1 Galatasaray Menajeri

Çevrimdışı Yağız!

  • FifaDelisi
  • Daimi Üye
  • İleti: 915
  • Karma: 8
    • Profili Görüntüle
Ynt: smf destek bolumu
« Yanıtla #1 : Ocak 31, 2007, 23:14:36 ös »
smf seo manuel kurulum we mod hali
manuel:
anadizin/SSI.php dosyasında
Bul:

 
Kod: [Seç]
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');



Sonrasına ekle:

 
Kod: [Seç]
require_once($sourcedir . '/Subs-Seo4SMF.php');



Bul:

 
Kod: [Seç]
'new' => !empty($row['isRead']),
'new_from' => $row['new_from'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
);
}
mysql_free_result($request);




Sonrasına ekle:

Kod: [Seç]

$context['recent_topics']=$posts;
 




anadizin/index.php dosyasında
Bul:

 
Kod: [Seç]
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');



Sonrasına ekle:

 
Kod: [Seç]
require_once($sourcedir . '/Subs-Seo4SMF.php');



Bul:

 
Kod: [Seç]
'who' => array('Who.php', 'Who'),
'.xml' => array('News.php', 'ShowXmlFeed'),




Sonrasına ekle:

 
Kod: [Seç]
                'seo4smfadmin' => array('Seo4SMFAdmin.php', 'Seo4SMFAdmin'),
                'seo4smfadminsave' => array('Seo4SMFAdmin.php', 'Seo4SMFAdminSave'),
'seo4smfadminsavexml' => array('Seo4SMFAdmin.php', 'Seo4SMFAdminSaveXML'),
'seo4smfsitemaps' => array('Seo4SMFSitemaps.php', 'Seo4SMFSitemaps'),





sources/BoardIndex.php dosyasında
Bul:

 
Kod: [Seç]
$this_last_post = array(
'id' => $row_board['ID_MSG'],
'time' => $row_board['posterTime'] > 0 ? timeformat($row_board['posterTime']) : $txt[470],
'timestamp' => forum_time(true, $row_board['posterTime']),
'subject' => $row_board['short_subject'],




Değiştir:

 
Kod: [Seç]
$this_last_post = array(
'id' => $row_board['ID_MSG'],
'time' => $row_board['posterTime'] > 0 ? timeformat($row_board['posterTime']) : $txt[470],
'timestamp' => forum_time(true, $row_board['posterTime']),
'subject' => $row_board['short_subject'],
'long_subject' => $row_board['subject'],





sources/Display.php dosyasında
Bul:

 
Kod: [Seç]
// Build the link tree.
$context['linktree'][] = array(
'url' => $scripturl . '?topic=' . $topic . '.0',
'name' => $topicinfo['subject'],
'extra_before' => $settings['linktree_inline'] ? $txt[118] . ': ' : ''
);
 
// Build a list of this board's moderators.
$context['moderators'] = &$board_info['moderators'];
$context['link_moderators'] = array();




Değiştir:

 
Kod: [Seç]
    // Build the link tree.
    $context['linktree'][] = array(
            'url' => $scripturl . '?topic=' . $topic . '.0',
            'name' => $topicinfo['subject'],
            'id' => 't'.$topic,
            'extra_before' => $settings['linktree_inline'] ? $txt[118] . ': ' : ''
    );
 
    // Build a list of this board's moderators.
    $context['moderators'] = &$board_info['moderators'];
    $context['board_description'] =$board_info['description'];
    $context['board_name'] =$board_info['name'];
    $context['link_moderators'] = array();





Bul:

 
Kod: [Seç]
if (empty($options['view_newest_first']))
$counter++;
else
$counter--;




Öncesine ekle:

 
Kod: [Seç]
if (!isset($context['first_message_body'])) $context['first_message_body']=$message['body'];



sources/Load.php dosyasında
Bul:

Kod: [Seç]

array_reverse($board_info['parent_boards']),
array(array(
'url' => $scripturl . '?board=' . $board . '.0',
'name' => $board_info['name']
))




Değiştir:

 
Kod: [Seç]
array_reverse($board_info['parent_boards']),
array(array(
    'url' => $scripturl . '?board=' . $board . '.0',
    'name' => $board_info['name'],
    'id' => $board_info['id']
                        ))

 




Bul:

 
Kod: [Seç]
while ($row = mysql_fetch_assoc($result))
{
if (!isset($boards[$row['ID_BOARD']]))
{
$id_parent = $row['ID_PARENT'];
$boards[$row['ID_BOARD']] = array(
'url' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
'name' => $row['name'],




Değiştir:

 
Kod: [Seç]
while ($row = mysql_fetch_assoc($result))
{
if (!isset($boards[$row['ID_BOARD']]))
{
$id_parent = $row['ID_PARENT'];
$boards[$row['ID_BOARD']] = array(
'url' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
'name' => $row['name'],
'id' => $row['ID_BOARD'],





sources/MessageIndex.php dosyasında
Bul:

 
Kod: [Seç]
$context['boards'][$row['ID_PARENT']]['last_post'] = array(
'id' => $row['ID_MSG'],
'time' => $row['posterTime'] > 0 ? timeformat($row['posterTime']) : $txt[470],
'timestamp' => forum_time(true, $row['posterTime']),
'subject' => $short_subject,




Değiştir:

 
Kod: [Seç]
$context['boards'][$row['ID_PARENT']]['last_post'] = array(
'id' => $row['ID_MSG'],
'time' => $row['posterTime'] > 0 ? timeformat($row['posterTime']) : $txt[470],
'timestamp' => forum_time(true, $row['posterTime']),
'subject' => $short_subject,
'long_subject' => $row['subject'],





Bul:

 
Kod: [Seç]
$context['boards'][$row_board['ID_BOARD']] = array(
'id' => $row_board['ID_BOARD'],
'last_post' => array(
'id' => $row_board['ID_MSG'],
'time' => $row_board['posterTime'] > 0 ? timeformat($row_board['posterTime']) : $txt[470],
'timestamp' => forum_time(true, $row_board['posterTime']),
'subject' => $short_subject,
 



Değiştir:

 
Kod: [Seç]
$context['boards'][$row_board['ID_BOARD']] = array(
'id' => $row_board['ID_BOARD'],
'last_post' => array(
'id' => $row_board['ID_MSG'],
'time' => $row_board['posterTime'] > 0 ? timeformat($row_board['posterTime']) : $txt[470],
'timestamp' => forum_time(true, $row_board['posterTime']),
'subject' => $short_subject,
'long_subject' => $row_board['subject'],





sources/QueryString.php dosyasında
Bul:

 
Kod: [Seç]
if (empty($_COOKIE) && SID != '' && empty($context['browser']['possibly_robot']) && @version_compare(PHP_VERSION, '4.3.0') != -1)



Değiştir:

 
Kod: [Seç]
if (empty($_COOKIE) && SID != '' && empty($context['browser']['possibly_robot']) && @version_compare(PHP_VERSION, '4.3.0') != -1 && ($modSettings['seo4smf_enable']!="on"))
 




Bul:

 
Kod: [Seç]
// If $scripturl is set to nothing, or the SID is not defined (SSI?) just quit.
if ($scripturl == '' || !defined('SID'))
return $buffer;




Sonrasına ekle:

 
Kod: [Seç]
$scripturl1=str_replace("/index.php","",$scripturl);
 




Bul:

 
Kod: [Seç]
else
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);




Değiştir:

 
Kod: [Seç]
                    if ($modSettings['seo4smf_sb_enable']=="on")
                    {
                        $buffer = preg_replace('/<!-- Seo4SMF Social Bookmark -->/', create_sb() , $buffer);
                    }
 
                    if ($modSettings['seo4smf_enable']=="on")
                    {

 
                        $buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic|page)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl1 . '/' . beautify_urls(strtr('\$1', '&;=', '//,')) . '\$2\"'", $buffer);
 
                        if ($modSettings['seo4smf_beautify_profiles']=="on")
                        {
                            $buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?action=profile;u=([^#"]+?)?"/e', "'\"' . \$scripturl1 . '/' . beautify_url_profiles(strtr('\$1', '&;=', '//,')) . '\$2\"'", $buffer);
                        }

if ($modSettings['seo4smf_keywords']=="on")
{
                        $buffer = preg_replace('<meta name="keywords" content=(.*) />', create_keywords() , $buffer);
}
if ($modSettings['seo4smf_description']=="on")
{
                        $buffer = preg_replace('<meta name="description" content=(.*) />', create_description() , $buffer);
}
                        $buffer = preg_replace('/<a href=\"http:\/\/www.simplemachines.org\/about\/copyright.php\" title=\"Free Forum Software\" target=\"_blank\">SMF &copy; 2006, Simple Machines LLC<\/a>/', '<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy; 2006, Simple Machines LLC</a><br /> <a href="http://www.webmasterstalks.com">Seo4Smf v0.2 &copy; Webmaster\'s Talks</a>' , $buffer);
                    }
                    else
                    {
                        $buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);
                    }





sources/Search.php dosyasında
Bul:

 
Kod: [Seç]
$output['matches'][] = array(
'id' => $message['ID_MSG'],
'attachment' => loadAttachmentContext($message['ID_MSG']),
'alternate' => $counter % 2,
'member' => &$memberContext[$message['ID_MEMBER']],
'icon' => $message['icon'],
'icon_url' => $settings[$context['icon_sources'][$message['icon']]] . '/post/' . $message['icon'] . '.gif',
'subject' => $message['subject'],
'subject_highlighted' => $subject_highlighted,
'time' => timeformat($message['posterTime']),
'timestamp' => forum_time(true, $message['posterTime']),
'counter' => $counter,
'modified' => array(
'time' => timeformat($message['modifiedTime']),
'timestamp' => forum_time(true, $message['modifiedTime']),
'name' => $message['modifiedName']
),
'body' => $message['body'],
'body_highlighted' => $body_highlighted,
'start' => 'msg' . $message['ID_MSG']
);




Sonrasına ekle:

 
   
Kod: [Seç]
$context['search_results'][]=array('id'=>$message['ID_TOPIC'],'subject'=>$message['subject'],'board_id'=>$message['ID_BOARD'],'board_name'=>$message['bName'],'member_name'=>$memberContext[$message['ID_MEMBER']]['username'],'member_id'=>$message['ID_MEMBER'],'last_member_name'=>$message['last_member_name'],'last_member_id'=>$message['last_member_id']);




sources/Subs.php dosyasında
Bul:

 
Kod: [Seç]
'manage_themes' => '<a href="' . $scripturl . '?action=theme;sa=admin;sesc=' . $sc . '">' . $txt['theme_admin'] . '</a>',
 



Sonrasına ekle:

 
Kod: [Seç]
'seo4smfadmin' => '<a href="' . $scripturl . '?action=seo4smfadmin;sesc=' . $sc . '">Seo4SMF Admin</a>',




sources/TPortal.php dosyasında(wlla bnde yok olan warmi ???)
Bul:

 
Kod: [Seç]
$request = db_query("
SELECT
m.icon, m.subject, m.body, IFNULL(mem.realName, m.posterName) AS posterName, m.posterTime,
t.numReplies, t.ID_TOPIC, m.ID_MEMBER, m.smileysEnabled, m.ID_MSG, t.locked, t.numViews,t.numReplies
FROM ({$db_prefix}topics AS t, {$db_prefix}messages AS m)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
WHERE t.ID_FIRST_MSG IN (" . implode(', ', $posts) . ")
AND m.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_FIRST_MSG DESC
LIMIT " . count($posts), __FILE__, __LINE__);




Değiştir:

 
Kod: [Seç]
$request = db_query("
SELECT
m.icon, m.subject, m.body, IFNULL(mem.realName, m.posterName) AS posterName, m.posterTime,
t.numReplies, t.ID_TOPIC, m.ID_MEMBER, m.smileysEnabled, m.ID_MSG, t.locked, t.numViews,t.numReplies, board.name
FROM ({$db_prefix}topics AS t, {$db_prefix}messages AS m)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
                        LEFT JOIN {$db_prefix}boards AS board ON (board.ID_BOARD = m.ID_BOARD)
WHERE t.ID_FIRST_MSG IN (" . implode(', ', $posts) . ")
AND m.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_FIRST_MSG DESC
LIMIT " . count($posts), __FILE__, __LINE__);





Bul:

 
Kod: [Seç]
$return[] = array(
'id' => $row['ID_TOPIC'],
'message_id' => $row['ID_MSG'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['posterTime']),
'timestamp' => forum_time(true, $row['posterTime']),




Değiştir:

 
Kod: [Seç]
$return[] = array(
'id' => $row['ID_TOPIC'],
'message_id' => $row['ID_MSG'],
'board_name' => $row['name'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['posterTime']),
'timestamp' => forum_time(true, $row['posterTime']),





Bul:

 
Kod: [Seç]
if (in_array($context['TPortal']['action'], array('theme','tpadmin','admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))



Değiştir:

 
Kod: [Seç]
if (in_array($context['TPortal']['action'], array('theme','tpadmin','admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers','seo4smfadmin')))




Themes/temaniz/Display.template.php dosyasında
Bul:

Kod: [Seç]

// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))




Öncesine ekle:

 
Kod: [Seç]
               if ($context['first_message']==$message['id'])
               {
                   echo '<!-- Seo4SMF Social Bookmark -->';
               }

 




Themes/temaniz/BoardIndex.template.php dosyasında
Bul:

Kod: [Seç]
// "Users online" - in order of activity.


Öncesine ekle:

 
Kod: [Seç]
if ($modSettings['seo4smf_sitemaps_box']=="on")
{
 
    if ($modSettings['seo4smf_sitemaps_links']!=0)
    $how_many_links_per_page=$modSettings['seo4smf_sitemaps_links'];
    else
    $how_many_links_per_page=100;
 
 
echo '
<tr>
<td class="titlebg" colspan="2"> Sitemaps </td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">
<div class="smalltext">';
echo'<a href="sitemaps-home.html">Start</a> &nbsp;';
for($i=0; $i<$modSettings['totalTopics']/$how_many_links_per_page; $i++)
{
    echo'<a href="sitemaps-',$i,'.html">Page', $i ,'</a>&nbsp;';
}
echo'<br />';
echo '
 
</div>
</td>
</tr>';
 
}





sources/News.php dosyasında
Bul:

 
Kod: [Seç]
if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0) || !$context['server']['is_apache'])
return $val;

 



Sonrasına ekle:

 
Kod: [Seç]
if ($modSettings['seo4smf_enable']=="on")
{
$scripturl1=str_replace("/index.php","",$scripturl);
        $val = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic|page)=[^#"]+)(#[^"]*)?$/e', "'' . \$scripturl1 . '/' . beautify_urls(strtr('\$1', '&;=', '//,')) . '\$2'", $val);
 
        if ($modSettings['seo4smf_beautify_profiles']=="on")
        {
                $val = preg_replace('/^' . preg_quote($scripturl, '/') . '\?action=profile;u=([^#"]+?)?$/e', "'' . \$scripturl1 . '/' . beautify_url_profiles(strtr('\$1', '&;=', '//,')) . '\$2'", $val);
        }
}
else





sources/Subs-Post.php dosyasında
Bul:

 
Kod: [Seç]
$hotmail_fix = false;
 
// No other addresses left? Return instantly.
if (empty($to_array))
return $mail_result;
}
 



Sonrasına ekle:

 
 
Kod: [Seç]
       if ($modSettings['seo4smf_enable']=="on")
        {
    $scripturl1=str_replace("/index.php","",$scripturl);
 
        $message = preg_replace('/' .preg_quote($scripturl, '/') . '\?((?:board|topic|page)=[^#"]+)(#[^"]*)?/e', "'' . \$scripturl1 . '/' . beautify_urls(strtr('\$1', '&;=', '//,')) . '\$2'", $message);
 
            if ($modSettings['seo4smf_beautify_profiles']=="on")
            {
                $message = preg_replace('/"' . preg_quote($scripturl, '/') . '\?action=profile;u=([^#"]+?)?"/e', "'\"' . \$scripturl1 . '/' . beautify_url_profiles(strtr('\$1', '&;=', '//,')) . '\$2\"'", $message);
            }
}


simdi sira geldi dosyalara:
vericek olduum dosyalarin isimlerine gore aticaksiniz vericek olduum dosyalar sunlar
tema.zip(Themes/temaniz'in icine atiosunuz(zip'ten cikartarak))
sources.zip(Sources klasorunun icine zip'ten cikarark atiosunuz)
anadizin.zip(forumunuzun kurulu olduu dzine atiosunuz(zip'ten cikartarak))

mod hali:
default icin
colatesi icin
Lig 1 Galatasaray Menajeri

Çevrimdışı sonunda_ANİLİON!

  • Daimi Üye
  • İleti: 284
  • Karma: 0
    • Profili Görüntüle
    • E-Posta
Ynt: smf destek bolumu
« Yanıtla #2 : Şubat 01, 2007, 07:37:20 öö »
Cakal Top 10'nuda Atabilirmisin???

Çevrimdışı Yağız!

  • FifaDelisi
  • Daimi Üye
  • İleti: 915
  • Karma: 8
    • Profili Görüntüle
Ynt: smf destek bolumu
« Yanıtla #3 : Şubat 04, 2007, 00:49:40 öö »
yeni bisi yazicam ondan sora anlatioruml ;)

Global Duyurular Turkce

Modu Indirmek Icin Tikla
Ne Ise Yariyor:
Tüm Forumda Duyuru Yazmanizi Saglar.
Görüntü(Kategori Ici):

Görüntü(Mesaj Ici):

« Son Düzenleme: Şubat 04, 2007, 01:03:59 öö Gönderen: cakal93 »
Lig 1 Galatasaray Menajeri

Çevrimdışı Yağız!

  • FifaDelisi
  • Daimi Üye
  • İleti: 915
  • Karma: 8
    • Profili Görüntüle
Ynt: smf destek bolumu
« Yanıtla #4 : Şubat 04, 2007, 00:53:38 öö »
İstatistik - Top 10

Yapımı

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

bu kodu bulup


      
Kod: [Seç]
// 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


   
Kod: [Seç]
// 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 )

Kod:

Kod: [Seç]
// 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

Kod:

Kod: [Seç]
// Here's where the "Info Center" starts...

üst satırına bu kodu ekleyin


Kod: [Seç]
// 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>';
         }
« Son Düzenleme: Şubat 04, 2007, 01:04:15 öö Gönderen: cakal93 »
Lig 1 Galatasaray Menajeri