Konu: smf profil alanı (teknoromi v2)  (Okunma sayısı 1081 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

28 Haziran 2014, 22:22
  • *
    • İleti: 264
    • Karma: 14
    • smf destek
    • Profili Görüntüle

default avatar + online ofline avatar border

ekteki resimleri temanızın images klasörüne atın
anlatım deafult temaya göredir
display.template.php de bul
Kod: [Seç]
        // Show information about the poster of this message.
        echo '
                        <div class="poster">
                            <h4>';

        // 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'] . '">' : '', '<img src="', $message['member']['online']['image_href'], '" alt="', $message['member']['online']['text'], '" />', $context['can_send_pm'] ? '</a>' : '';

        // Show a link to the member's profile.
        echo '
                                ', $message['member']['link'], '
                            </h4>
                            <ul class="reset smalltext" id="msg_', $message['id'], '_extra_info">';

        // Show the member's custom title, if they have one.
        if (!empty($message['member']['title']))
            echo '
                                <li class="title">', $message['member']['title'], '</li>';

        // Show the member's primary group (like 'Administrator') if they have one.
        if (!empty($message['member']['group']))
            echo '
                                <li class="membergroup">', $message['member']['group'], '</li>';

        // 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 '
                                <li class="postgroup">', $message['member']['post_group'], '</li>';
            echo '
                                <li class="stars">', $message['member']['group_stars'], '</li>';

            // Show avatars, images, etc.?
            if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
                echo '
                                <li class="avatar">
                                    <a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
                                        ', $message['member']['avatar']['image'], '
                                    </a>
                                </li>';

            // Show how many posts they have made.
            if (!isset($context['disabled_fields']['posts']))
                echo '
                                <li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';

            // Is karma display enabled?  Total or +/-?
            if ($modSettings['karmaMode'] == '1')
                echo '
                                <li class="karma">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</li>';
            elseif ($modSettings['karmaMode'] == '2')
                echo '
                                <li class="karma">', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</li>';

            // Is this user allowed to modify this member's karma?
            if ($message['member']['karma']['allow'])
                echo '
                                <li class="karma_allow">
                                    <a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $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'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a>
                                </li>';

            // Show the member's gender icon?
            if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
                echo '
                                <li class="gender">', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';

            // Show their personal text?
            if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
                echo '
                                <li class="blurb">', $message['member']['blurb'], '</li>';

            // Any custom fields to show as icons?
            if (!empty($message['member']['custom_fields']))
            {
                $shown = false;
                foreach ($message['member']['custom_fields'] as $custom)
                {
                    if ($custom['placement'] != 1 || empty($custom['value']))
                        continue;
                    if (empty($shown))
                    {
                        $shown = true;
                        echo '
                                <li class="im_icons">
                                    <ul>';
                    }
                    echo '
                                        <li>', $custom['value'], '</li>';
                }
                if ($shown)
                    echo '
                                    </ul>
                                </li>';
            }

            // This shows the popular messaging icons.
            if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
                echo '
                                <li class="im_icons">
                                    <ul>
                                        ', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
                                        ', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
                                        ', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
                                        ', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
                                    </ul>
                                </li>';

            // Show the profile, website, email address, and personal message buttons.
            if ($settings['show_profile_buttons'])
            {
                echo '
                                <li class="profile">
                                    <ul>';
                // Don't show the profile button if you're not allowed to view the profile.
                if ($message['member']['can_view_profile'])
                    echo '
                                        <li><a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt['view_profile'] . '" title="' . $txt['view_profile'] . '" />' : $txt['view_profile']), '</a></li>';

                // Don't show an icon if they haven't specified a website.
                if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))
                    echo '
                                        <li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';

                // Don't show the email address if they want it hidden.
                if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
                    echo '
                                        <li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

                // Since we know this person isn't a guest, you *can* message them.
                if ($context['can_send_pm'])
                    echo '
                                        <li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';

                echo '
                                    </ul>
                                </li>';
            }

            // Any custom fields for standard placement?
            if (!empty($message['member']['custom_fields']))
            {
                foreach ($message['member']['custom_fields'] as $custom)
                    if (empty($custom['placement']) || empty($custom['value']))
                        echo '
                                <li class="custom">', $custom['title'], ': ', $custom['value'], '</li>';
            }

            // Are we showing the warning status?
            if ($message['member']['can_see_warning'])
                echo '
                                <li class="warning">', $context['can_issue_warning'] ? '<a href="' . $scripturl . '?action=profile;area=issuewarning;u=' . $message['member']['id'] . '">' : '', '<img src="', $settings['images_url'], '/warning_', $message['member']['warning_status'], '.gif" alt="', $txt['user_warn_' . $message['member']['warning_status']], '" />', $context['can_issue_warning'] ? '</a>' : '', '<span class="warn_', $message['member']['warning_status'], '">', $txt['warn_' . $message['member']['warning_status']], '</span></li>';
        }
        // Otherwise, show the guest's email.
        elseif (!empty($message['member']['email']) && in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
            echo '
                                <li class="email"><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

        // Done with the information about the poster... on to the post itself.
        echo '
                            </ul>
                        </div>
değiştir
Kod: [Seç]
        // Show information about the poster of this message.
        echo '
                        <div class="poster">
    <ul class="reset">';
       
            // Show avatars, images, etc.?
            if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
                echo '
                                <li class="avatar ', $message['member']['online']['text'], '">
                                    <a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
                                         <img src="' . $message['member']['avatar']['href'] . '"  alt="" />
                                    </a>
                                </li>';
                else {
                echo '
                                <li class="avatar ', $message['member']['online']['text'], '">
                                  <a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
                                    <img src="'.$settings['images_url'].'/avatar.png" alt="" />
                                  </a>
                                </li>';
                      }

      echo ' <li>
        <h4><a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
            ', $message['member']['name'], '</a>
        </h4></li>';
// 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 '
                                <li class="stars">', $message['member']['group_stars'], '</li>';
                echo '
                                <li class="postgroup">', $message['member']['post_group'], '</li>';
           
        // Show the member's primary group (like 'Administrator') if they have one.
        if (!empty($message['member']['group']))
            echo '
                                <li class="membergroup">', $message['member']['group'], '</li>';

        // Show the member's custom title, if they have one.
        if (!empty($message['member']['title']))
            echo '
                                <li class="title">', $message['member']['title'], '</li>';

            // Show how many posts they have made.
            if (!isset($context['disabled_fields']['posts']))
                echo '
                                <li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';
 // Calculate their age! Hopefully they are not too old
 if (!empty($message['member']['birth_date']))
 {
    if ($message['member']['birth_date'] != '0000-00-00')
    {
       list ($birth_year, $birth_month, $birth_day) = sscanf($message['member']['birth_date'], '%d-%d-%d');
       $datearray = getdate(forum_time());
       $message['member'] += array(
          'age' => empty($birth_year) ? $txt[470] : $datearray['year'] - $birth_year - (($datearray['mon'] > $birth_month || ($datearray['mon'] == $birth_month && $datearray['mday'] >= $birth_day)) ? 0 : 1),
          'today_is_birthday' => $datearray['mon'] == $birth_month && $datearray['mday'] == $birth_day
       );
    }
 }

 if (!empty($message['member']['age']))
 echo '

<li>Yas:', $message['member']['age'], '</li>';
 if (!empty($message['member']['location']))   
echo '
<li>Nerden:', $message['member']['location'], '</li>';
            // Is karma display enabled?  Total or +/-?
            if ($modSettings['karmaMode'] == '1')
                echo '
                                <li class="karma">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</li>';
            elseif ($modSettings['karmaMode'] == '2')
                echo '
                                <li class="karma">', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</li>';

            // Is this user allowed to modify this member's karma?
            if ($message['member']['karma']['allow'])
                echo '
                                <li class="karma_allow">
                                    <a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '"><img src="', $settings['images_url'], '/up.png" alt="', $modSettings['karmaApplaudLabel'], '" /></a>
                                    <a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '"><img src="', $settings['images_url'], '/down.png" alt="', $modSettings['karmaSmiteLabel'], '" /></a>
                                </li>';

            // Show the member's gender icon?
            if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
                echo '
                                <li class="gender">', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';

            // Show their personal text?
            if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
                echo '
                                <li class="blurb">', $message['member']['blurb'], '</li>';

            // Any custom fields to show as icons?
            if (!empty($message['member']['custom_fields']))
            {
                $shown = false;
                foreach ($message['member']['custom_fields'] as $custom)
                {
                    if ($custom['placement'] != 1 || empty($custom['value']))
                        continue;
                    if (empty($shown))
                    {
                        $shown = true;
                        echo '
                                <li class="im_icons">
                                    <ul>';
                    }
                    echo '
                                        <li>', $custom['value'], '</li>';
                }
                if ($shown)
                    echo '
                                    </ul>
                                </li>';
            }

            // This shows the popular messaging icons.
            if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
                echo '
                                <li class="im_icons">
                                    <ul>
                                        ', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
                                        ', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
                                        ', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
                                        ', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
                                    </ul>
                                </li>';

            // Show the profile, website, email address, and personal message buttons.
            if ($settings['show_profile_buttons'])
            {
                echo '
                                <li class="profile">
                                    <ul>';
                // Don't show the profile button if you're not allowed to view the profile.
                if ($message['member']['can_view_profile'])
                    echo '
                                        <li><a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt['view_profile'] . '" title="' . $txt['view_profile'] . '" />' : $txt['view_profile']), '</a></li>';

                // Don't show an icon if they haven't specified a website.
                if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))
                    echo '
                                        <li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';

                // Don't show the email address if they want it hidden.
                if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
                    echo '
                                        <li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

                // Since we know this person isn't a guest, you *can* message them.
                if ($context['can_send_pm'])
                    echo '
                                        <li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';

                echo '
                                    </ul>
                                </li>';
            }

            // Any custom fields for standard placement?
            if (!empty($message['member']['custom_fields']))
            {
                foreach ($message['member']['custom_fields'] as $custom)
                    if (empty($custom['placement']) || empty($custom['value']))
                        echo '
                                <li class="custom">', $custom['title'], ': ', $custom['value'], '</li>';
            }

            // Are we showing the warning status?
            if ($message['member']['can_see_warning'])
                echo '
                                <li class="warning">', $context['can_issue_warning'] ? '<a href="' . $scripturl . '?action=profile;area=issuewarning;u=' . $message['member']['id'] . '">' : '', '<img src="', $settings['images_url'], '/warning_', $message['member']['warning_status'], '.gif" alt="', $txt['user_warn_' . $message['member']['warning_status']], '" />', $context['can_issue_warning'] ? '</a>' : '', '<span class="warn_', $message['member']['warning_status'], '">', $txt['warn_' . $message['member']['warning_status']], '</span></li>';
        }
        // Otherwise, show the guest's email.
        elseif (!empty($message['member']['email']) && in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
            echo '
                                <li class="email"><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

        // Done with the information about the poster... on to the post itself.
        echo '
                            </ul>   
   
                        </div>

index.css de en sona ekle
Kod: [Seç]
.poster {
border-style: solid;
border-color: #FF9400 #FF9400 #BF6900;
background-image: linear-gradient(#000, #555,#000);
border-width: 5px 1px 3px;
border-radius: 30px;
overflow: hidden;
text-align: center;
color: white;
box-shadow: 1px 1px 5px 1px #000;
text-shadow: 1px 0px #BF6900;
}
.poster li h4 {
    margin:0px;text-align:center;
}
.poster li.avatar {
    overflow: hidden;
    text-align:center;
}
.poster li a{
color: white;}
.poster ul li {
border-bottom: 1px solid #444;
padding: 3px;
margin: 3px;
display: inherit;
font-weight: bold;
}

.Çevrimiçi img
{
border-width: 3px 1px 2px;
border-radius: 11px;
border-style: solid;
border-color: #3EF737;
height: 70px;
width: 70px;
box-shadow: 0px 0px 10px #3EF737;
}
.Çevrimdışı img
{
border-width: 3px 1px 2px;
border-radius: 11px;
border-style: solid;
border-color: #ccc;
height: 70px;
width: 70px;
box-shadow: 0px 0px 10px #ccc;
}



beyaz olsun isteyenler için üsttekileri yaptıktan sonra
index.css de bul
Kod: [Seç]
.poster {
border-style: solid;
border-color: #FF9400 #FF9400 #BF6900;
background-image: linear-gradient(#000, #555,#000);
border-width: 5px 1px 3px;
border-radius: 30px;
overflow: hidden;
text-align: center;
color: white;
box-shadow: 1px 1px 5px 1px #000;
text-shadow: 1px 0px #BF6900;
}
.poster li h4 {
    margin:0px;text-align:center;
}
.poster li.avatar {
    overflow: hidden;
text-align:center;
}
.poster li a{
color: white;}

değiştir
Kod: [Seç]
.poster {
border-style: solid;
border-color: #FF9400 #FF9400 #BF6900;
background: linear-gradient(to top, #E2E9F3 1%, #FFF 70%) repeat scroll 0% 0% transparent;
border-width: 5px 1px 3px;
border-radius: 30px;
overflow: hidden;
text-align: center;
color: black;
box-shadow: 1px 1px 5px 1px #000;
text-shadow: 1px 0px #BF6900;
}
.poster li h4 {
    margin:0px;text-align:center;
}
.poster li.avatar {
    overflow: hidden;
text-align:center;
}
.poster li a{
color: black;}



29 Haziran 2014, 00:36
Yanıtla #1
  • *
    • İleti: 331
    • Karma: 17
    • haksever,huutheme
    • haksever
    • Profili Görüntüle

emeğinize sağlık çok güzel olmuş. :)


29 Haziran 2014, 21:41
Yanıtla #2
  • *
    • İleti: 264
    • Karma: 14
    • smf destek
    • Profili Görüntüle

elimizden geldikçe yapıoz işte amatörce işler cemo thanks


21 Temmuz 2014, 03:50
Yanıtla #3
  • *
    • İleti: 95
    • Karma: 2
    • Flatcast Destek Türkce Destek Sitesi
    • Profili Görüntüle

Yaptım Harika oldu ellerinize sağlık kendi sitemdede kullanacam yakında


21 Temmuz 2014, 07:49
Yanıtla #4
  • *
    • İleti: 273
    • Karma: 1
    • Diyabeturkey
    • Profili Görüntüle

Güzel olmuş elinize sağlık...


07 Aralık 2014, 01:56
Yanıtla #5
  • *
    • İleti: 1
    • Karma: 0
    • kurnaz
    • Profili Görüntüle

ben  yaptım olmadı bi bakarmısınız cvpınızıda özel msj olarak yolluya bilirsiniz eski konu hemde cook eski konu bu farkındayım site yapma işinide bırakmıştım ama simdi kendime forum sitesi yapim dedim KurnaZ - Anasayfa ya girip profil alanıma bakarmısınız. denilen herşeyi yaptım ama olmadı


28 Ocak 2015, 00:09
Yanıtla #6
  • *
    • İleti: 22
    • Karma: 0
    • cihadehli
    • Profili Görüntüle

membercolor modu ile çakışıyor galiba zira nick renklendirmesi yok oluyor..