Siyahlar...
Kurucu Üye
İleti: 1335
Teşekkür Sayısı: 544
Çevrimdışı
Cinsiyet: 
|
 |
« : 24 Ekim 2007, 17:03:22 » |
|
Uygulama: Temanızın style.css dosyasını açın ve bu konu en alta ekleyin:
.profil { border: 1px solid #dddddd; padding: 3px; margin: 3px; background-color:#ffffff; background-image: url(images/profile.gif); background-repeat: repeat+x; }
Temanızın display.template.php dosyasını açın // Show information about the poster of this message. kısmıda dahil olmak üzere burdan başlayıp, // Done with the information about the poster... on to the post itself. kısmına kadar olan yeri silin ve yerine bunu ekleyin:
// shalgam profil baslangici // Show information about the poster of this message. echo ' <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;"> <tr> <td class="windowbg" valign="top" width="22%" rowspan="2" style="overflow: hidden;"> <div class="profil" align="center"> <a href="', $message['member']['href'], '"><b>', $message['member']['renk'], '</b></a></div>
<div class="smalltext">';
// Show the member's custom title, if they have one. if (isset($message['member']['title']) && $message['member']['title'] != '') echo ' <div class="profil" align="center">', $message['member']['title'], '</div>';
// Show the member's primary group (like 'Administrator') if they have one. if (isset($message['member']['group']) && $message['member']['group'] != '') echo ' <div class="profil" align="center">', $message['member']['group'], '</div>';
// 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 ' <div class="profil" align="center">', $message['member']['post_group'], '</div>'; echo ' <div class="profil" align="center">', $message['member']['group_stars'], '</div>';
// Show avatars, images, etc.? if (!empty($settings['show_user_images']) && empty($options['show_no_avatars'])) if (empty($message['member']['avatar']['image'])) echo '<div class="profil" align="center"><div style="overflow: auto; width: 100%;"><img src="' . $settings['images_url'] . '/autoavatar.jpg" alt="Avatar Yok" title="Avatar Yok" border="0" /></div></div>'; else echo '<div class="profil" align="center"><div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'],'</div></div>';
//shalgam mesaj sayisaina göre madalya sistemi $madalya = '<img src="' . $settings['images_url'] . '/madalya.gif" border="0" />';
if ($message['member']['posts'] <= 150) { echo''; } elseif ($message['member']['posts'] <= 300) { echo '<div class="profil" align="center">' , $madalya , '' , $madalya , '</div>'; } elseif ($message['member']['posts'] <= 750) { echo'<div class="profil" align="center">' , $madalya , '' , $madalya , '' , $madalya , '</div>'; } elseif ($message['member']['posts'] <= 1200) { echo'<div class="profil" align="center">' , $madalya , '' , $madalya , '' , $madalya , '' , $madalya , '</div>'; } elseif ($message['member']['posts'] <= 1800) { echo'<div class="profil" align="center">' , $madalya , '' , $madalya , '' , $madalya , '' , $madalya , '' , $madalya , '</div>'; } elseif ($message['member']['posts'] >= 1800) { echo'<div class="profil" align="center">' , $madalya , '' , $madalya , '' , $madalya , '' , $madalya , '' , $madalya , '' , $madalya , '</div>'; }
// shalgam üye nosunu göster echo ' <div class="profil" align="left"><b>Üye No:</b> ', $message['member']['id'], '</div> '; // Show the member's gender icon? if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '') echo ' <div class="profil" align="left"><b>', $txt[231], ':</b> ', $message['member']['gender']['image'], '</div>'; // Show how many posts they have made. echo ' <div class="profil" align="left"><b>', $txt[26], ':</b> ', $message['member']['posts'], '</div>'; // Show the member's location if (!empty($message['member']['location'])) echo ' <div class="profil" align="left"><b>Nerden:</b> ', $message['member']['location'], '</div> '; // Is karma display enabled? Total or +/-? if ($modSettings['karmaMode'] == '1') echo ' <div class="profil" align="left"> ', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</div>'; elseif ($modSettings['karmaMode'] == '2') echo ' <div class="profil" align="left"> ', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</div>';
// Is this user allowed to modify this member's karma? if ($message['member']['karma']['allow']) echo ' <div class="profil" align="center"><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></div>';
// Show their personal text? if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '') echo ' <div class="profil" align="center">', $message['member']['blurb'], '</div>';
// This shows the popular messaging icons. echo '<div class="profil" align="center"> ', $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></br>'; } } echo'</div><div class="profil" align="center">'; // Show online and offline buttons? by shalgam 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"></span>' : '', '';
// Show the report. by shalgam 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'] . '" /></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></div>';
// shalgam profil sonu
Forumunuzun Sources/Load.php dosyasını açın ve bulun:
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',
Hemen altına şunu ekleyin (Üstteki kod ile aynı hizada olacak şekilde):
'renk' => (!empty($modSettings['MemberColorLink']) ? ( !empty($profile['member_group_color']) || !empty($profile['post_group_color']) ? '<font color="'. ( !empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color'] ) .'">' : '' ) : '' ) . $profile['realName'] . (!empty($modSettings['MemberColorLink']) && (!empty($profile['member_group_color']) || !empty($profile['post_group_color'])) ? '</font>' : '' ).'',
Şimdi Admin paneli >>>> Forum seçenekleri >>>>> Karma ' ya gidin ve karma modunda Olumlu/Olumsuz karmayı etkinleştir'i seçin.. Karma etiketi yazan kısma şunu yapıştırın:
<b>Puan:</b>
Alkış etiketi yazan kısma şunu yapıştırın:
<img border="0" src="http://www.sitenizinadi.com/forum/Themes/temanizinadi/images/arti.gif" alt="Puan Yükselt">
Karma ceza etiketi yazan kısma şunu yapıştırın:
<img border="0" src="http://www.sitenizinadi.com/forum/Themes/temanizinadi/images/eksi.gif" alt="Puan Düşür">
Son olarak ekten indirdiğiniz dosyadaki resimleri temanın images klasorune atın.
|