Advertisement:

Author Topic: Profil alanı düzenleme..  (Read 3213 times)

Offline Genel Kültür

  • Semi-Newbie
  • *
  • Posts: 13
  • Gender: Male
  • Ne var ?
    • Genel Kültür
Profil alanı düzenleme..
« on: March 04, 2010, 07:03:26 PM »
Merhaba,

Kullandığım bir profil alanı var.

Görünümü ekte,

Kod'u ise bu:

Code: [Select]
//Turkishfrm.Org Profil Alanı >>HeLL ToRMeNT<< Start
      // Show information about the poster of this message.
      echo '
            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;" class="windowbg2">
               <tr>
      <td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg', '" valign="top" width="219" rowspan="2">
            <div class="protablo2"><div class="protablo1"><center><font face="Verdana" size="3"><b>         ', isset($message['member']['is_banned']) && $message['member']['is_banned'] ? '<span style="text-decoration: line-through;">' : '', '
<b>', $message['member']['link'], '</b>
', isset($message['member']['is_banned']) && $message['member']['is_banned'] ? '</span>' : '', '</font><br /></center>
                     <div class="smalltext">';

      // Show the member's custom title, if they have one.
      if (isset($message['member']['title']) && $message['member']['title'] != '')
         echo '
                        <center>', $message['member']['title'], '<br /></center>';

      // Show the member's primary group (like 'Administrator') if they have one.
      if (isset($message['member']['group']) && $message['member']['group'] != '')
         echo '
                        <center><font size="1">', $message['member']['group'], '</font><br /></center>';

      // 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 '
                     <center>', $message['member']['post_group'], '<br /></center>';
         echo '
                        <center>', $message['member']['group_stars'], '<br /><br /></center>';

         // Show avatars, images, etc.?
         if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']))
            if (empty($message['member']['avatar']['image']))

        echo '<div align="center" style="overflow: auto; width: 100%;"><img src="' . $settings['images_url'] . '/avatar_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '/autoavatar.png" alt="" width="130" border="0" /></div>';
            else
            echo '<center>
<table width="130" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td rowspan="3">
         <img src="' . $settings['images_url'] . '/avatar_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '/01.png" width="6" height="145" alt="" /></td>
      <td colspan="2">
         <img src="' . $settings['images_url'] . '/avatar_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '/02.png" width="124" height="9" alt="" /></td>
   </tr>
   <tr>
      <td>
         <img src="' . $message['member']['avatar']['href'] . '" width="118" height="110" alt="" /></td>
      <td rowspan="2">
         <img src="' . $settings['images_url'] . '/avatar_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '/03.png" width="6" height="136" alt="" /></td>
   </tr>
   <tr>
      <td>
         <img src="' . $settings['images_url'] . '/avatar_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '/04.png" width="118" height="26" alt="" /></td>
   </tr>
</table>
</center>';
                             
   // 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
         );
      }
   }




   // Uye  ID
echo'<center><img src="', $settings['images_url'], '/profil/ust.gif" width="100%"></center>';
echo '
<div class="profil"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Üye No : </b>', $message['member']['id'], '<br /><center><img src="', $settings['images_url'], '/profil/cizgi.gif"></center>';

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

<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yaş : </b>  ', $message['member']['age'], '<br /><center><img src="', $settings['images_url'], '/profil/cizgi.gif"></center>';
         
         
// Show the member's gender icon?
         if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
            echo '
<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cinsiyet : </b>  ', $message['member']['gender']['image'], '<center><img src="', $settings['images_url'], '/profil/cizgi.gif"></center>';

// Uye nereden
echo '
<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Nerden : </b>  ', $message['member']['location'], '<br /><center><img src="', $settings['images_url'], '/profil/cizgi.gif"></center>';
global $db_prefix;

$request = db_query("SELECT t.ID_TOPIC
   FROM {$db_prefix}topics AS t
   WHERE t.ID_MEMBER_STARTED = " . $message['member']['id'] . "
   AND t.ID_BOARD != " . (int) $modSettings['recycle_board'], __FILE__, __LINE__);
$topic_Count = db_affected_rows();
   echo '
<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konu : </b></font> ', $topic_Count;
mysql_free_result($request);
unset($request,$topic_Count);'><br />';   
     
     

         // Show how many posts they have made.
         echo '
<center><img src="', $settings['images_url'], '/profil/cizgi.gif"></center><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mesaj : </b>', $message['member']['posts'], '<br /><center><img src="', $settings['images_url'], '/profil/cizgi.gif"></center>';

// Show their personal text?
         if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')

            echo '
         <b><marquee>', $message['member']['blurb'], '</marquee></b><center><img src="', $settings['images_url'], '/profil/cizgi.gif"></center>';

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

echo'</div>';



// Is this user allowed to modify this member's karma?
         if ($message['member']['karma']['allow'])
            echo '<center><img src="', $settings['images_url'], '/profil/orta.gif" width="100%"></center><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>';


                       
   
         // This shows the popular messaging icons.
         echo '<center><img src="', $settings['images_url'], '/profil/orta.gif" width="100%"></center><div class="profil" align="center">
                        ', $message['member']['icq']['link'], '
                        ', $message['member']['msn']['link'], '
                        ', $message['member']['aim']['link'], '
                        ', $message['member']['yim']['link'], '';

         // 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 '
                     
                        <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>';
echo' </div>';
      // Show online and offline buttons?
         if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
            echo '<center><img src="', $settings['images_url'], '/profil/orta.gif" width="100%"></center><div class="profil" align="center"><img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" /></div>';

echo'<center><img src="', $settings['images_url'], '/profil/alt.gif" width="100%"></center>';

// Done with the information about the poster... on to the post itself.
      echo '
                     </div>
                  </td>
               <td valign="top" width="85%" height="100%">
                     <table width="100%" border="0"><tr>
                        <td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
                        <td valign="middle">
                           <div style="font-weight: bold;" id="subject_', $message['id'], '">
                              <a href="', $message['href'], '">', $message['subject'], '</a>
                           </div>';
//Turkishfrm.Org Profil Alanı >>HeLL ToRMeNT<< The End

Resime bakarsanız eğer avatar resimleri dışında bir televizyon simgesi var. Ben onu tamamen kaldırmak istiyorum. Bu mümkünmüdür ?

Şimdiden yardımlarınız için teşekkürler.
İmza : )

Offline Gurbet_42

  • Sophist Member
  • *****
  • Posts: 1,327
  • Gender: Male
Re: Profil alanı düzenleme..
« Reply #1 on: March 04, 2010, 07:24:09 PM »
Code: [Select]
<tr>
      <td>
         <img src="' . $settings['images_url'] . '/avatar_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '/04.png" width="118" height="26" alt="" /></td>
   </tr>

Bunu sil bakalım yedek al önce.

Ayrıca konu yanlış yerde kişileştirme bölümünde olmalı  ;)
« Last Edit: March 04, 2010, 07:30:45 PM by Gurbet_42 »

Offline Genel Kültür

  • Semi-Newbie
  • *
  • Posts: 13
  • Gender: Male
  • Ne var ?
    • Genel Kültür
Re: Profil alanı düzenleme..
« Reply #2 on: March 04, 2010, 09:07:41 PM »
Hayır olmuyor öyle,
. '/04.png" < 1,2,3 png lerinde silinmesi lazım. ama o zamanda hata veriyor. ince bir ayar istiyor. İlgin için ayrıca teşekkür ederim.

Konuyu yetkili kişi doğru yere taşırsada sevinirim. Bilmiyordum.
İmza : )

Offline Yağız...

  • SMF Super Hero
  • *******
  • Posts: 10,811
  • Gender: Male
    • MMO Browser
Re: Profil alanı düzenleme..
« Reply #3 on: March 05, 2010, 06:22:48 AM »
Bulun:
Code: [Select]
<table width="130" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td rowspan="3">
         <img src="' . $settings['images_url'] . '/avatar_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '/01.png" width="6" height="145" alt="" /></td>
      <td colspan="2">
         <img src="' . $settings['images_url'] . '/avatar_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '/02.png" width="124" height="9" alt="" /></td>
   </tr>
   <tr>
      <td>
         <img src="' . $message['member']['avatar']['href'] . '" width="118" height="110" alt="" /></td>
      <td rowspan="2">
         <img src="' . $settings['images_url'] . '/avatar_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '/03.png" width="6" height="136" alt="" /></td>
   </tr>
   <tr>
      <td>
         <img src="' . $settings['images_url'] . '/avatar_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '/04.png" width="118" height="26" alt="" /></td>
   </tr>
</table>
Değiştirin:
Code: [Select]
<img src="' . $message['member']['avatar']['href'] . '" width="118" height="110" alt="" />

Offline Genel Kültür

  • Semi-Newbie
  • *
  • Posts: 13
  • Gender: Male
  • Ne var ?
    • Genel Kültür
Re: Profil alanı düzenleme..
« Reply #4 on: March 05, 2010, 09:57:36 AM »
Çok teşekkür ederim yağız, halloldu.
İmza : )