SMF Modları ve Manuel Kurulumlar (derlendi)
30 Haziran 2008 – 13:55Avatar Olmayana otamatik avatar verme
tema dizininde bulunan Display.Template.php dosyasını açın
Bul:
echo ‘
<div style=”overflow: auto; width: 100%;”>’, $message['member']['avatar']['image'], ‘</div><br />’;
Altına ekle:
echo ‘
<img src=”‘, $settings['images_url'], ‘/autoavatar.jpg” alt=”Bu üyenin avatarı yok” /><br />’;
temanızın images dizinine autoavatar.jpg adında bir resim atın ve attığınız bu resim avatarı olmayan üyelerde otamatik gözükecektir…
Banned diye yeni bir grup oluşturun, Sonra;
Display.Template Dosyası içinde;
Bul:
Hemen öncesine şunu koy:
echo ‘<span style=”text-decoration:line-through”>’; } else $banned = false; echo ‘
Sonra yine az önce bul dediğim ifadenin hemen sonrasına da şunu koy:
İlk önce panelden ban verdikten sonra banlı üyeyi açmış olduğunuz Banned grubuna atın
İşlem tamam..
Not: Buradaki kelimelere dikkat et. Harfi harfine aynı olmalı. Hatta büyük küçük harflerin yeri bile. Burada Banlı üyeleri Banned diye bir grupta toplayacağını varsayarak yazdım kodları.
Sadece şuradaki “banned” yazısını değiştirebilirsin:
<b>Banned</b><br />
Display.template.php Dosyasını Açın
Bul:
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != ”)
echo ‘
‘, $message['member']['blurb'], ‘<br />
<br />’;
Hemen altına Ekle:
$sira = ($message['member']['id'])-1;
$sorgu = mysql_query(“select * from smf_members”);
$sonuc = mysql_result($sorgu, $sira, ‘totalTimeLoggedIn’);
$aktiflik=($sonuc)/5000;
if ($aktiflik<1) {
$aktiflik=1;
}
if ($aktiflik>101){
$aktiflik=101;
}
$seviyesi=($message['member']['karma']['good'] – $message['member']['karma']['bad'])/15;
if ($seviyesi<1) {
$seviyesi=1;
}
if ($seviyesi>101) {
$seviyesi=101;
}
$deneyimi=($message['member']['posts'])/30;
if ($deneyimi<1){
$deneyimi=4;
}
if ($deneyimi>101) {
$deneyimi=101;
}
echo ‘
<TABLE cellSpacing=0 cellPadding=0 width=”114″ border=0>
<TABLE cellSpacing=0 cellPadding=0 width=”114″ border=0>
Aktiflik <br>
<tr>
<TD class=nopad width=3 height=13>
<IMG height=13 alt=”" src=”‘, $settings['images_url'], ‘/img_left.gif” width=3>
</TD>
<td colspan=”2″ style=”BACKGROUND: url(‘, $settings['images_url'], ‘/img_backing.gif) repeat-x left top; LINE-HEIGHT: 13px” width=114 height=13>
<IMG height=”11″ src=”‘, $settings['images_url'], ‘/bhg.gif” width=”‘, $aktiflik, ‘”><IMG height=”9″ src=”‘, $settings['images_url'], ‘/exp.gif” width=”2″>
</td>
<TD class=nopad width=3 height=13>
<IMG height=13 alt=”" src=”‘, $settings['images_url'], ‘/img_right.gif” width=3>
</TD>
</tr>
</table>
<TABLE cellSpacing=0 cellPadding=0 width=”114″ border=0>
Deneyim<br>
<tr>
<TD class=nopad width=3 height=13>
<IMG height=13 alt=”" src=”‘, $settings['images_url'], ‘/img_left.gif” width=3>
</TD>
<td colspan=”2″ style=”BACKGROUND: url(‘, $settings['images_url'], ‘/img_backing.gif) repeat-x left top; LINE-HEIGHT: 13px” width=114 height=13>
<IMG height=”11″ src=”‘, $settings['images_url'], ‘/bmg.gif” width=”‘, $deneyimi, ‘”>
<IMG height=”9″ src=”‘, $settings['images_url'], ‘/exp.gif” width=”2″>
</td>
<TD class=nopad width=3 height=13>
<IMG height=13 alt=”" src=”‘, $settings['images_url'], ‘/img_right.gif” width=3>
</TD>
</tr>
</table>
<TABLE cellSpacing=0 cellPadding=0 width=”114″ border=0>
Seviye<br>
<tr>
<TD class=nopad width=3 height=13>
<IMG height=13 alt=”" src=”‘, $settings['images_url'], ‘/img_left.gif” width=3>
</TD>
<td colspan=”2″ style=”BACKGROUND: url(‘, $settings['images_url'], ‘/img_backing.gif) repeat-x left top; LINE-HEIGHT: 13px” width=114 height=13>
<IMG height=”11″ src=”‘, $settings['images_url'], ‘/bxg.gif” width=”‘, $seviyesi, ‘”>
<IMG height=”9″ src=”‘, $settings['images_url'], ‘/hp.gif” width=”2″>
</td>
<TD class=nopad width=3 height=13>
<IMG height=13 alt=”" src=”‘, $settings['images_url'], ‘/img_right.gif” width=3>
</TD>
</tr>
</table>
‘;
//AKTİFLİK MODU SONU
Bu işlemleri yaptıktan sonra bu dosyayı İNDİRİN ve temanızın images klasörüne atın.
Bu Forumunuzda Tablolara Verdiğiniz Ön Eklerde Değişiklik Yaptığınız Anlamına Geliyor Herşeyi Düzelttim Ama Bunun Düzeltilmesi Olmuyor Yani Tablo Ön Ekiniz Smf_ değilse Şu Kodu Bulun
index.template.php sini aç
Bul:
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == ‘pm’ || $context['browser']['is_ie4']) ? ‘<td class=”maintab_active_’ . $first . ‘”> </td>’ : ” , ‘
<td valign=”top” class=”maintab_’ , $current_action == ‘pm’ ? ‘active_back’ : ‘back’ , ‘”>
<a href=”‘, $scripturl, ‘?action=pm”>’ , $txt['pm_short'] , ‘ ‘, $context['user']['unread_messages'] > 0 ? ‘[<strong>'. $context['user']['unread_messages'] . ‘</strong>]’ : ” , ‘</a>
Değiştir:
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == ‘pm’ || $context['browser']['is_ie4']) ? ‘<td class=”maintab_active_’ . $first . ‘”> </td>’ : ” , ‘
<td valign=”top” class=”maintab_’ , $current_action == ‘pm’ ? ‘active_back’ : ‘back’ , ‘”>
<a href=”‘, $scripturl, ‘?action=pm”>’ , $txt['pm_short'] , ‘ ‘, $context['user']['unread_messages'] > 0 ? ‘[<strong>'. $context['user']['unread_messages'] . ‘</strong>] <img src=”‘ . $settings['images_url'] . ‘/msg.gif” border=”0″ />’ : ” , ‘</a>
Sonra Bu Dosyayı İNDİRİN ve temanızın imeges klasörüne atın.
Kullandığınız temanın Display.template.php aç
Bul:
echo ‘
</td>
</tr></table>
<hr width=”100%” size=”1″ class=”hrcolor” />
<div class=”post”‘, $message['can_modify'] ? ‘ id=”msg_’ . $message['id'] . ‘”‘ : ”, ‘>’, $message['body'], ‘</div>’, $message['can_modify'] ? ‘
<img src=”‘ . $settings['images_url'] . ‘/icons/modify_inline.gif” alt=”" align=”right” id=”modify_button_’ . $message['id'] . ‘” style=”cursor: pointer; display: none;” onclick=”modify_msg(\” . $message['id'] . ‘\’, \” . $context['session_id'] . ‘\’)” />’ : ” , ‘
</td>
</tr>’;
Bununla değiştir
echo ‘
</td>
</tr></table>
<hr width=”100%” size=”1″ class=”hrcolor” />
<div class=”post”‘, $message['can_modify'] ? ‘ id=”msg_’ . $message['id'] . ‘”‘ : ”, ‘><table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”100%” id=”table1″>
<tr>
<td width=”10″ style=”font-family: Verdana, Arial, Helvetica, sans-serif” height=”15″>
<img src=”http://img86.imageshack.us/img86/751/mercekarka1vf0.gif” width=”36″ height=”15″></td>
<td background=”http://img90.imageshack.us/img90/4848/mercekarka2kh8.gif” style=”font-family: Verdana, Arial, Helvetica, sans-serif” height=”15″></td>
<td width=”10″ style=”font-family: Verdana, Arial, Helvetica, sans-serif” height=”15″>
<img src=”http://img86.imageshack.us/img86/9493/mercekarka3qu6.gif” width=”37″ height=”15″></td>
</tr>
<tr>
<td background=”http://img209.imageshack.us/img209/8479/mercekarka5wl4.gif” valign=”top” style=”font-family: Verdana, Arial, Helvetica, sans-serif” height=”132″>
<img src=”http://img251.imageshack.us/img251/6341/kenrjg5ho3.gif” width=”36″ height=”72″></td>
<td valign=”top” style=”font-family: Verdana, Arial, Helvetica, sans-serif” height=”132″>
‘, $message['body'], ‘</td>
<td background=”http://img90.imageshack.us/img90/700/mercekarka6nq9.gif” valign=”top” style=”font-family: Verdana, Arial, Helvetica, sans-serif” height=”132″></td>
</tr>
<tr>
<td style=”font-family: Verdana, Arial, Helvetica, sans-serif”>
<img src=”http://img137.imageshack.us/img137/378/mercekarka7kp6.gif” width=”36″ height=”22″></td>
<td background=”http://img137.imageshack.us/img137/8668/mercekarka8gg4.gif” style=”font-family: Verdana, Arial, Helvetica, sans-serif”></td>
<td style=”font-family: Verdana, Arial, Helvetica, sans-serif”>
<img src=”http://img137.imageshack.us/img137/8404/mercekarka9jh6.gif” width=”37″ height=”22″></td>
</tr>
</table></div>’, $message['can_modify'] ? ‘
<img src=”‘ . $settings['images_url'] . ‘/icons/modify_inline.gif” alt=”" align=”right” id=”modify_button_’ . $message['id'] . ‘” style=”cursor: pointer; display: none;” onclick=”modify_msg(\” . $message['id'] . ‘\’, \” . $context['session_id'] . ‘\’)” />’ : ” , ‘
</td>
</tr>’;
Display.Template yi aç
Bul:
echo ‘
<table width=”100%” cellpadding=”5″ cellspacing=”0″ style=”table-layout: fixed;”>
<tr>
<td valign=”top” width=”16%” rowspan=”2″ style=”overflow: hidden;”>
<b>’, $message['member']['link'], ‘</b>
<div class=”smalltext”>’;
// Show the member’s custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != ”)
echo ‘
‘, $message['member']['title'], ‘<br />’;
// Show the member’s primary group (like ‘Administrator’) if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != ”)
echo ‘
‘, $message['member']['group'], ‘<br />’;
// Don’t show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == ”) && $message['member']['post_group'] != ”)
echo ‘
‘, $message['member']['post_group'], ‘<br />’;
echo ‘
‘, $message['member']['group_stars'], ‘<br />’;
// Is karma display enabled? Total or +/-?
if ($modSettings['karmaMode'] == ‘1′)
echo ‘
<br />
‘, $modSettings['karmaLabel'], ‘ ‘, $message['member']['karma']['good'] – $message['member']['karma']['bad'], ‘<br />’;
elseif ($modSettings['karmaMode'] == ‘2′)
echo ‘
<br />
‘, $modSettings['karmaLabel'], ‘ +’, $message['member']['karma']['good'], ‘/-’, $message['member']['karma']['bad'], ‘<br />’;
// Is this user allowed to modify this member’s karma?
if ($message['member']['karma']['allow'])
echo ‘
<a href=”‘, $scripturl, ‘?action=modifykarma;sa=applaud;uid=’, $message['member']['id'], ‘;topic=’, $context['current_topic'], ‘.’ . $context['start'], ‘;m=’, $message['id'], ‘;sesc=’, $context['session_id'], ‘”>’, $modSettings['karmaApplaudLabel'], ‘</a>
<a href=”‘, $scripturl, ‘?action=modifykarma;sa=smite;uid=’, $message['member']['id'], ‘;topic=’, $context['current_topic'], ‘.’, $context['start'], ‘;m=’, $message['id'], ‘;sesc=’, $context['session_id'], ‘”>’, $modSettings['karmaSmiteLabel'], ‘</a><br />’;
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo ‘
‘, $context['can_send_pm'] ? ‘<a href=”‘ . $message['member']['online']['href'] . ‘” title=”‘ . $message['member']['online']['label'] . ‘”>’ : ”, $settings['use_image_buttons'] ? ‘<img src=”‘ . $message['member']['online']['image_href'] . ‘” alt=”‘ . $message['member']['online']['text'] . ‘” border=”0″ style=”margin-top: 2px;” />’ : $message['member']['online']['text'], $context['can_send_pm'] ? ‘</a>’ : ”, $settings['use_image_buttons'] ? ‘<span class=”smalltext”> ‘ . $message['member']['online']['text'] . ‘</span>’ : ”, ‘<br /><br />’;
// Show the member’s gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != ”)
echo ‘
‘, $txt[231], ‘: ‘, $message['member']['gender']['image'], ‘<br />’;
// Show how many posts they have made.
echo ‘
‘, $txt[26], ‘: ‘, $message['member']['posts'], ‘<br />
<br />’;
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo ‘
<div style=”overflow: auto; width: 100%;”>’, $message['member']['avatar']['image'], ‘</div><br />’;
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != ”)
echo ‘
‘, $message['member']['blurb'], ‘<br />
<br />’;
// This shows the popular messaging icons.
echo ‘
‘, $message['member']['icq']['link'], ‘
‘, $message['member']['msn']['link'], ‘
‘, $message['member']['aim']['link'], ‘
‘, $message['member']['yim']['link'], ‘<br />’;
// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don’t show the profile button if you’re not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo ‘
<a href=”‘, $message['member']['href'], ‘”>’, ($settings['use_image_buttons'] ? ‘<img src=”‘ . $settings['images_url'] . ‘/icons/profile_sm.gif” alt=”‘ . $txt[27] . ‘” title=”‘ . $txt[27] . ‘” border=”0″ />’ : $txt[27]), ‘</a>’;
// Don’t show an icon if they haven’t specified a website.
if ($message['member']['website']['url'] != ”)
echo ‘
<a href=”‘, $message['member']['website']['url'], ‘” title=”‘ . $message['member']['website']['title'] . ‘” target=”_blank”>’, ($settings['use_image_buttons'] ? ‘<img src=”‘ . $settings['images_url'] . ‘/www_sm.gif” alt=”‘ . $txt[515] . ‘” border=”0″ />’ : $txt[515]), ‘</a>’;
// Don’t show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo ‘
<a href=”mailto:’, $message['member']['email'], ‘”>’, ($settings['use_image_buttons'] ? ‘<img src=”‘ . $settings['images_url'] . ‘/email_sm.gif” alt=”‘ . $txt[69] . ‘” title=”‘ . $txt[69] . ‘” border=”0″ />’ : $txt[69]), ‘</a>’;
// Since we know this person isn’t a guest, you *can* message them.
if ($context['can_send_pm'])
echo ‘
<a href=”‘, $scripturl, ‘?action=pm;sa=send;u=’, $message['member']['id'], ‘” title=”‘, $message['member']['online']['label'], ‘”>’, $settings['use_image_buttons'] ? ‘<img src=”‘ . $settings['images_url'] . ‘/im_’ . ($message['member']['online']['is_online'] ? ‘on’ : ‘off’) . ‘.gif” alt=”‘ . $message['member']['online']['label'] . ‘” border=”0″ />’ : $message['member']['online']['label'], ‘</a>’;
}
}
// Otherwise, show the guest’s email.
elseif (empty($message['member']['hide_email']))
echo ‘
<br />
<br />
<a href=”mailto:’, $message['member']['email'], ‘”>’, ($settings['use_image_buttons'] ? ‘<img src=”‘ . $settings['images_url'] . ‘/email_sm.gif” alt=”‘ . $txt[69] . ‘” title=”‘ . $txt[69] . ‘” border=”0″ />’ : $txt[69]), ‘</a>’;
Değiştir:
echo ‘
<table width=”100%” cellpadding=”5″ cellspacing=”0″ style=”table-layout: fixed;”>
<tr>
<td valign=”top” align=”center” width=”16%” rowspan=”2″ style=”overflow: hidden;” class=”‘, $message['alternate'] == 0 ? ‘windowbg9′ : ‘windowbg8′, ‘”><fieldset>
<legend><b>ÜYE BILGILERI</b></legend>
<b>’, $message['member']['link'], ‘</b>
<div class=”smalltext”>’;
// Show the member’s custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != ”)
echo ‘
‘, $message['member']['title'], ‘<br />’;
// Show the member’s primary group (like ‘Administrator’) if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != ”)
echo ‘
‘, $message['member']['group'], ‘<br />’;
// Don’t show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == ”) && $message['member']['post_group'] != ”)
echo ‘
‘, $message['member']['post_group'], ‘<br />’;
echo ‘
‘, $message['member']['group_stars'], ‘<br />’;
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo ‘
<div style=”overflow: auto; width: 100%;”>’, $message['member']['avatar']['image'], ‘</div><br />’;
// Show the member’s gender icon? if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != ”)
echo ‘<fieldset>
<legend><b>CINSIYET</b></legend>
‘, $txt[231], ‘: ‘, $message['member']['gender']['image'], ‘<br /></fieldset>’;
// Show the member’s location
echo ‘<fieldset>
<legend><b>NERDEN</b></legend>
Nerden: ‘, $message['member']['location'], ‘<br /></fieldset>’;
// date + time registered
echo ‘<fieldset>
<legend><b>KAYIT TARIHI</b></legend>
Kayit tarihi ‘, $message['member']['registered'], ‘<br /></fieldset>
‘;
// Show how many posts they have made.
echo ‘<fieldset>
<legend><b>MESAJ SAYISI</b></legend>
‘, $txt[26], ‘: ‘, $message['member']['posts'], ‘
<br /></fieldset>’;
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != ”)
echo ‘<fieldset>
‘, $message['member']['blurb'], ‘<br />
<br /></fieldset>’;
// Is karma display enabled? Total or +/-?
if ($modSettings['karmaMode'] == ‘1′)
echo ‘<fieldset>
<legend><b>IRTIBAT GÜCÜ</b></legend>
‘, $modSettings['karmaLabel'], ‘ ‘, $message['member']['karma']['good'] – $message['member']['karma']['bad'], ‘<br /></fieldset>’;
elseif ($modSettings['karmaMode'] == ‘2′)
echo ‘
<br />
‘, $modSettings['karmaLabel'], ‘ +’, $message['member']['karma']['good'], ‘/-’, $message['member']['karma']['bad'], ‘<br />’;
// Is this user allowed to modify this member’s karma?
if ($message['member']['karma']['allow'])
echo ‘<fieldset>
<a href=”‘, $scripturl, ‘?action=modifykarma;sa=applaud;uid=’, $message['member']['id'], ‘;topic=’, $context['current_topic'], ‘.’ . $context['start'], ‘;m=’, $message['id'], ‘;sesc=’, $context['session_id'], ‘”>’, $modSettings['karmaApplaudLabel'], ‘</a>
<a href=”‘, $scripturl, ‘?action=modifykarma;sa=smite;uid=’, $message['member']['id'], ‘;topic=’, $context['current_topic'], ‘.’, $context['start'], ‘;m=’, $message['id'], ‘;sesc=’, $context['session_id'], ‘”>’, $modSettings['karmaSmiteLabel'], ‘</a><br /></fieldset>’;
// This shows the popular messaging icons.
echo ‘<fieldset>
<legend><b>ILETISIM</b></legend>
‘, $message['member']['icq']['link'], ‘
‘, $message['member']['msn']['link'], ‘
‘, $message['member']['aim']['link'], ‘
‘, $message['member']['yim']['link'], ‘<br />’;
// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don’t show the profile button if you’re not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo ‘
<a href=”‘, $message['member']['href'], ‘”>’, ($settings['use_image_buttons'] ? ‘<img src=”‘ . $settings['images_url'] . ‘/icons/profile_sm.gif” alt=”‘ . $txt[27] . ‘” title=”‘ . $txt[27] . ‘” border=”0″ />’ : $txt[27]), ‘</a>’;
// Don’t show an icon if they haven’t specified a website.
if ($message['member']['website']['url'] != ”)
echo ‘
<a href=”‘, $message['member']['website']['url'], ‘” title=”‘ . $message['member']['website']['title'] . ‘” target=”_blank”>’, ($settings['use_image_buttons'] ? ‘<img src=”‘ . $settings['images_url'] . ‘/www_sm.gif” alt=”‘ . $txt[515] . ‘” border=”0″ />’ : $txt[515]), ‘</a>’;
// Don’t show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo ‘
<a href=”mailto:’, $message['member']['email'], ‘”>’, ($settings['use_image_buttons'] ? ‘<img src=”‘ . $settings['images_url'] . ‘/email_sm.gif” alt=”‘ . $txt[69] . ‘” title=”‘ . $txt[69] . ‘” border=”0″ />’ : $txt[69]), ‘</a>’;
// Since we know this person isn’t a guest, you *can* message them.
if ($context['can_send_pm'])
echo ‘
<a href=”‘, $scripturl, ‘?action=pm;sa=send;u=’, $message['member']['id'], ‘” title=”‘, $message['member']['online']['label'], ‘”>’, $settings['use_image_buttons'] ? ‘<img src=”‘ . $settings['images_url'] . ‘/im_’ . ($message['member']['online']['is_online'] ? ‘on’ : ‘off’) . ‘.gif” alt=”‘ . $message['member']['online']['label'] . ‘” border=”0″ />’ : $message['member']['online']['label'], ‘</a></fieldset>’;
}
}
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo ‘
‘, $context['can_send_pm'] ? ‘<a href=”‘ . $message['member']['online']['href'] . ‘” title=”‘ . $message['member']['online']['label'] . ‘”>’ : ”, $settings['use_image_buttons'] ? ‘<img src=”‘ . $message['member']['online']['image_href'] . ‘” alt=”‘ . $message['member']['online']['text'] . ‘” border=”0″ style=”margin-top: 2px;” />’ : $message['member']['online']['text'], $context['can_send_pm'] ? ‘</a>’ : ”, $settings['use_image_buttons'] ? ‘<span class=”smalltext”> ‘ . $message['member']['online']['text'] . ‘</span>’ : ”, ‘<br />’;
// Otherwise, show the guest’s email.
elseif (empty($message['member']['hide_email']))
echo ‘
<br />
<br />
<a href=”mailto:’, $message['member']['email'], ‘”>’, ($settings['use_image_buttons'] ? ‘<img src=”‘ . $settings['images_url'] . ‘/email_sm.gif” alt=”‘ . $txt[69] . ‘” title=”‘ . $txt[69] . ‘” border=”0″ />’ : $txt[69]), ‘</a>’;
sources/boardindex.php yi açıyoruz
bu kodu bulup
üst satırına bu kodu ekliyoruz
$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);
Boardindex.template.php dosyasını açıyoruz
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 )
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], ‘ “‘, $context['latest_post']['link'], ‘” ‘, $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” nowrap=”nowrap”><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>’;
}
daha sonra bo kodu bulup
üst satırına bu kodu ekleyin
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], ‘ “‘, $context['latest_post']['link'], ‘” ‘, $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”>’, $post['link'], ‘</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>’;
}
[img]http://img71.imageshack.us/img71/8700/111ll9.jpg[/img]
Sources/BoardIndex.php yi aç bul
tam bitimine ekle
bul
‘id’ => $row_board['ID_MSG'],
altına ekle
BoardIndex.template.php yi aç
bul:
altına ekle
themenız/Profile.template.phpde bul
</td>
<td>
<textarea class=”editor” onkeyup=”calcCharLeft();” name=”signature” rows=”5″ cols=”50″>’, $context['member']['signature'], ‘</textarea><br />’;
Değiştir
</td>
<td>
<script language=”JavaScript” type=”text/javascript”>
function bbc_highlight(something, mode)
{
something.style.backgroundImage = “url(” + smf_images_url + (mode ? “/bbc/bbc_hoverbg.gif)” : “/bbc/bbc_bg.gif)”);
}
</script>’;
// load the post variables
loadLanguage(‘Post’);
// The below array makes it dead easy to add images to this page. Add it to the array and everything else is done for you!
$context['bbc_tags'] = array();
$context['bbc_tags'][] = array(
‘bold’ => array(‘code’ => ‘b’, ‘before’ => ‘[b]‘, ‘after’ => ‘[/b]‘, ‘description’ => $txt[253]),
‘italicize’ => array(‘code’ => ‘i’, ‘before’ => ‘[i]‘, ‘after’ => ‘[/i]‘, ‘description’ => $txt[254]),
‘underline’ => array(‘code’ => ‘u’, ‘before’ => ‘[u]‘, ‘after’ => ‘[/u]‘, ‘description’ => $txt[255]),
‘img’ => array(‘code’ => ‘img’, ‘before’ => ‘[img]‘, ‘after’ => ‘[/img]‘, ‘description’ => $txt[435]),
‘url’ => array(‘code’ => ‘url’, ‘before’ => ‘[url]‘, ‘after’ => ‘[/url]‘, ‘description’ => $txt[257]),
‘email’ => array(‘code’ => ‘email’, ‘before’ => ‘[email]‘, ‘after’ => ‘[/email]‘, ‘description’ => $txt[258]),
‘ftp’ => array(‘code’ => ‘ftp’, ‘before’ => ‘[ftp]‘, ‘after’ => ‘[/ftp]‘, ‘description’ => $txt[434]),
’size’ => array(‘code’ => ’size’, ‘before’ => ‘[size=10pt]‘, ‘after’ => ‘[/size]‘, ‘description’ => $txt[532]),
‘face’ => array(‘code’ => ‘font’, ‘before’ => ‘[font=Verdana]‘, ‘after’ => ‘[/font]‘, ‘description’ => $txt[533]),
‘pre’ => array(‘code’ => ‘pre’, ‘before’ => ‘[pre]‘, ‘after’ => ‘[/pre]‘, ‘description’ => $txt[444]),
‘left’ => array(‘code’ => ‘left’, ‘before’ => ‘[left]‘, ‘after’ => ‘[/left]‘, ‘description’ => $txt[445]),
‘center’ => array(‘code’ => ‘center’, ‘before’ => ‘[center]‘, ‘after’ => ‘[/center]‘, ‘description’ => $txt[256]),
‘right’ => array(‘code’ => ‘right’, ‘before’ => ‘[right]‘, ‘after’ => ‘[/right]‘, ‘description’ => $txt[446]),
‘list’ => array(‘code’ => ‘list’, ‘before’ => ‘[list]\n[li]‘, ‘after’ => ‘[/li]\n[li][/li]\n[/list]‘, ‘description’ => $txt[261]),
);
// Here loop through the array, printing the images/rows/separators!
foreach ($context['bbc_tags'][0] as $image => $tag)
{
// Is there a “before” part for this bbc button? If not, it can’t be a button!!
if (isset($tag['before']))
{
// Is this tag disabled?
if (!empty($context['disabled_tags'][$tag['code']]))
continue;
// If there’s no after, we’re just replacing the entire selection in the post box.
if (!isset($tag['after']))
echo ‘<a href=”java script:void(0);” onclick=”replaceText(\”, $tag['before'], ‘\’, document.forms.creator.signature); return false;”>’;
// On the other hand, if there is one we are surrounding the selection;).
else
echo ‘<a href=”java script:void(0);” onclick=”surroundText(\”, $tag['before'], ‘\’, \”, $tag['after'], ‘\’, document.forms.creator.signature); return false;”>’;
// Okay… we have the link. Now for the image and the closing </a>!
echo ‘<img onmouseover=”bbc_highlight(this, true);” onmouseout=”if (window.bbc_highlight) bbc_highlight(this, false);” src=”‘, $settings['images_url'], ‘/bbc/’, $image, ‘.gif” align=”bottom” width=”23″ height=”22″ alt=”‘, $tag['description'], ‘” title=”‘, $tag['description'], ‘” style=”background-image: url(‘, $settings['images_url'], ‘/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;” /></a>’;
}
}
echo ‘ <textarea class=”editor” onkeyup=”calcCharLeft();” name=”signature” onselect=”storeCaret(this);” onclick=”storeCaret(this);” onkeyup=”storeCaret(this);” onchange=”storeCaret(this);” rows=”5″ cols=”50″>’, $context['member']['signature'], ‘</textarea><br />’;
ana sayfada kategorilere ekler
önce bu resmi images dosyasına atın . resimin isimini değiştirecekseniz. aşağıdaki koddada değiştirmeniz gerekiyor.
[img]http://img111.imageshack.us/img111/5082/newmessagejd2.gif[/img]
Hemen öncesine;
if ($board['new'])
echo’
<a name=”b’, $board['id'], ‘”></a>
<img align=”absmiddle” src=”‘, $settings['images_url'], ‘/newmessagejd2.gif” border=”0″ />’;
boardindex.template.php dosyasını açın
Bul
?>
Hemen öncesine:
<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”><span class=”smalltext”><center>-=| TopLisT |=-</center></td>
</tr>
<tr>
<td valign=”middle” align=”center” height=”60″>
<marquee><a target=”_blank” href=”TOPLİSTİNİZİN LİNKİNİ BURAYA KOYUN” border=”0″ />
</a></marquee>
<table border=”0″ width=”50%” class=”tborder” cellspacing=”‘ , ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? ‘1′ : ‘0′ , ‘” cellpadding=”4″ style=”margin-bottom: 2ex;”>
</table>’;
Benzer Yazılar
Etiketler: eklenti, hack, mod, smf, son, sürüm, x
Bu konuyu Googleda ara: SMF Modları ve Manuel Kurulumlar (derlendi)Şuan buradasınız: SMF Modları ve Manuel Kurulumlar (derlendi)













