Advertisement:

Author Topic: Profillere Biografi Bölümü Eklemek  (Read 42448 times)

Offline Hoochie Coochie Man

  • SMF Hero
  • ******
  • Posts: 5,135
  • Gender: Male
    • İstanblues.org
Profillere Biografi Bölümü Eklemek
« on: October 29, 2007, 06:18:08 PM »
Türkçe çeviri bana aittir..

Profilinizde biyografi yazmanıza olanak sağlar..


Languages'de Profile.turkish.php'de..
Bul:
Code: [Select]
?>
Öncesine ekle:
Code: [Select]
$txt['bio'] = 'Biyografi';
Profile.template.php'de..
Bul:
Code: [Select]
// Can they add this member as a buddy?
if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'])
echo '
&nbsp;&nbsp;<a href="', $scripturl, '?action=buddy;u=', $context['member']['id'], ';sesc=', $context['session_id'], '">[', $txt['buddy_' . ($context['member']['is_buddy'] ? 'remove' : 'add')], ']</a>';

echo '
</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>', $txt[231], ': </b></td>
<td>', $context['member']['gender']['name'], '</td>
</tr><tr>
<td><b>', $txt[420], ':</b></td>
<td>', $context['member']['age'] . ($context['member']['today_is_birthday'] ? ' &nbsp; <img src="' . $settings['images_url'] . '/bdaycake.gif" width="40" alt="" />' : ''), '</td>
</tr><tr>
<td><b>', $txt[227], ':</b></td>
<td>', $context['member']['location'], '</td>
</tr><tr>
<td><b>', $txt['local_time'], ':</b></td>
<td>', $context['member']['local_time'], '</td>
</tr><tr>';

if (!empty($modSettings['userLanguage']))
echo '
<td><b>', $txt['smf225'], ':</b></td>
<td>', $context['member']['language'], '</td>
</tr><tr>';
     echo '
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>';

Sonrasına ekle:
Code: [Select]
//Show the box for the biography

    echo '
<td><b>Biyografi:</b></td>
<td>', parse_bbc($context['member']['options']['bio']), '</td>
</tr><tr>';

 echo '
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
    </tr>';


Bul:
Code: [Select]
// Website details.
echo '
<tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr>
<tr>
<td width="40%"><b>', $txt[83], ': </b><div class="smalltext">', $txt[598], '</div></td>
<td><input type="text" name="websiteTitle" size="50" value="', $context['member']['website']['title'], '" /></td>
</tr><tr>
<td width="40%"><b>', $txt[84], ': </b><div class="smalltext">', $txt[599], '</div></td>
<td><input type="text" name="websiteUrl" size="50" value="', $context['member']['website']['url'], '" /></td>

Sonrasına ekle:
Code: [Select]
; <td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
    </tr>

<td><b>Biyografi:</b> <div class="smalltext">', $txt['bionotice'], '</div></td> <td><textarea name="default_options[bio]" rows="7" cols="70">', @$context['member']['options']['bio'], '</textarea></td>

Bir Alan S yapımıdır..
Orjinal Konu
« Last Edit: December 19, 2007, 03:21:48 AM by alperuzi »
İnadına SMF 1.1.X

sivilce

  • Guest
Re: "Biyografi" Mod'u..
« Reply #1 on: November 01, 2007, 03:37:00 PM »
kullanıcı adı kabul edilmiyor.normalde üye olurum ama bunun üye çekmek için bir yol olmadığından emin olamıyorum.eğer öyle değilse özür dilerim arkadaşım

Offline Hoochie Coochie Man

  • SMF Hero
  • ******
  • Posts: 5,135
  • Gender: Male
    • İstanblues.org
Re: "Biyografi" Mod'u..
« Reply #2 on: November 01, 2007, 04:58:38 PM »
Pardon, özür.. demoyu sildim, başka bir paltformdan banlandımda, orada da paylaşmıştım bunu, olduğu gibi kopyalayıp yapıştırmıştım..

Beni banladıkları için bnede oradaki verdiğim demo üyeliği sildim (deneme)

Asla benim üye çekmek gibi bir şeyim olmaz, hatta işi olmayan üye olmasın bile diyebilirim..
İnadına SMF 1.1.X

Offline boss-tr

  • Semi-Newbie
  • *
  • Posts: 55
Re: "Biyografi" Mod'u.. (Tüyo)
« Reply #3 on: December 16, 2007, 07:30:05 PM »
emeğine sağlık üstad güzel

sivilce

  • Guest
Re: Profillere Biografi Bölümü Eklemek
« Reply #4 on: December 19, 2007, 02:23:17 PM »
Pardon, özür.. demoyu sildim, başka bir paltformdan banlandımda, orada da paylaşmıştım bunu, olduğu gibi kopyalayıp yapıştırmıştım..

Beni banladıkları için bnede oradaki verdiğim demo üyeliği sildim (deneme)

Asla benim üye çekmek gibi bir şeyim olmaz, hatta işi olmayan üye olmasın bile diyebilirim..

üstad sen çok güzel şeyler yapıyordun ya bu aralar yenilikler göremiyorum bekliyorum senin tüyolar çok faydalı oluyordu.tşk

Offline Hoochie Coochie Man

  • SMF Hero
  • ******
  • Posts: 5,135
  • Gender: Male
    • İstanblues.org
Re: Profillere Biografi Bölümü Eklemek
« Reply #5 on: December 19, 2007, 02:30:34 PM »
Eyvallah, teşekkürler ancak bu aralar kendi sitemin tasarımı ile uğraşıyorum, yapım aşamasında sayfalar var, bittikten sonra 5-6 tüyo daha gelebilir buraya, belki daha fazla..
Sağlıcakla..
İnadına SMF 1.1.X

sivilce

  • Guest
Re: Profillere Biografi Bölümü Eklemek
« Reply #6 on: December 19, 2007, 02:33:56 PM »
bekleriz kardeşim dört gözle :D

Offline Hoochie Coochie Man

  • SMF Hero
  • ******
  • Posts: 5,135
  • Gender: Male
    • İstanblues.org
Re: Profillere Biografi Bölümü Eklemek
« Reply #7 on: December 29, 2007, 09:35:01 AM »
emeğine sağlık üstad güzel

Sağolasın..
İnadına SMF 1.1.X

Offline prens_nefret

  • Semi-Newbie
  • *
  • Posts: 15
Re: Profillere Biografi Bölümü Eklemek
« Reply #8 on: January 03, 2008, 08:01:51 AM »
Code: [Select]
// Can they add this member as a buddy?

bu kodu bulamıyorum :S

Offline Hoochie Coochie Man

  • SMF Hero
  • ******
  • Posts: 5,135
  • Gender: Male
    • İstanblues.org
Re: Profillere Biografi Bölümü Eklemek
« Reply #9 on: January 03, 2008, 08:10:22 AM »
Code: [Select]
// Can they add this member as a buddy?

bu kodu bulamıyorum :S

Bulursun, orada ;)
İnadına SMF 1.1.X

Offline prens_nefret

  • Semi-Newbie
  • *
  • Posts: 15
Re: Profillere Biografi Bölümü Eklemek
« Reply #10 on: January 03, 2008, 09:04:53 AM »
Code: [Select]
<?php
// Version: 1.1.2; Profile

// Template for the profile side bar - goes before any other profile template.
function template_profile_above()
{
global $context$settings$options$scripturl$modSettings$txt;

// Assuming there are actually some areas the user can visit...
if (!empty($context['profile_areas']))
{
echo '
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-top: 1ex;">
<tr>
<td width="180" valign="top">
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="170">'
;

// Loop through every area, displaying its name as a header.
foreach ($context['profile_areas'] as $section)
{
echo '
<tr>
<td class="catbg">'
$section['title'], '</td>
</tr>
<tr class="windowbg2">
<td class="smalltext">'
;

// For every section of the area display it, and bold it if it's the current area.
foreach ($section['areas'] as $i => $area)
if ($i == $context['menu_item_selected'])
echo '
<b>'
$area'</b><br />';
else
echo '
'
$area'<br />';
echo '
<br />
</td>
</tr>'
;
}
echo '
</table>
</td>
<td width="100%" valign="top">'
;
}
// If no areas exist just open up a containing table.
else
{
echo '
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-top: 1ex;">
<tr>
<td width="100%" valign="top">'
;
}

// If an error occurred whilst trying to save previously, give the user a clue!
if (!empty($context['post_errors']))
{
echo '
<table width="85%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td>'
template_error_message(), '</td>
</tr>
</table>'
;
}
}

// Template for closing off table started in profile_above.
function template_profile_below()
{
global $context$settings$options;

echo '
</td>
</tr>
</table>'
;
}

// This template displays users details without any option to edit them.
function template_summary()
{
global $context$settings$options$scripturl$modSettings$txt$user_profile$ID_MEMBER$boardurl$sourcedir;

// First do the containing table and table header.
echo '
<table border="0" cellpadding="4" class="bordercolor" cellspacing="1"  width="100%">'
;

// Do the left hand column - where all the important user info is displayed.
echo '
<tr>
<td class="windowbg" width="100%">
<table border="1px" cellspacing="0" cellpadding="2" width="100%">
<tr><td align="center">'
;

                                                if(!empty(
$context['member']['avatar']['image']))
   echo $context['member']['avatar']['image'];
                                                else
                                                   echo 
'<img src="' $modSettings['avatar_url']. '/no_avatar.png" width="100" height="100" alt="'$txt['no_avatar'] .'" />';

                                                echo 
'</td><td><table cellspacing="0" cellpadding="2" width="100%"><tr><td>';
                                                echo 
'<div class="largetext"><b>'$context['member']['name'], '</b> <i>'$context['can_send_pm'] ? '<a href="' $context['member']['online']['href'] . '" title="' $context['member']['online']['label'] . '">' ''$settings['use_image_buttons'] ? '<img src="' $context['member']['online']['image_href'] . '" alt="' $context['member']['online']['text'] . '" align="middle" />' $context['member']['online']['text'], $context['can_send_pm'] ? '</a>' ''$settings['use_image_buttons'] ? '<span class="smalltext"> ' $context['member']['online']['text'] . '</span>' '''</i></div>';
                  echo 
'<div class="smalltext"><b>'$txt[231], ': </b>'$context['member']['gender']['name'] .'</div>';
                  echo 
'<div class="smalltext"><b>'$txt[420], ': </b>'$context['member']['age'] . ($context['member']['today_is_birthday'] ? ' &nbsp; <img src="' $settings['images_url'] . '/bdaycake.gif" width="40" alt="" />' '') .'</div>';
                  echo 
'<div class="smalltext"><b>'$txt[227], ': </b>'$context['member']['location'] .'</div>';
                  echo 
'<div class="smalltext"><b>'$txt['local_time'], ': </b>'$context['member']['local_time'] .'</div>';
if (!empty($modSettings['userLanguage']))
                  echo 
'<div class="smalltext"><b>'$txt['smf225'], ': </b>'$context['member']['language'] .'</div>';

                  echo 
'</td><td valign="top" class="smalltext">';

echo '<div>'$context['member']['blurb'], '</div>';

if (!empty($modSettings['titlesEnable']) && $context['member']['title'] != '')
{
echo '
<div><b>'
$txt['title1'], ': </b>'$context['member']['title'], '</div>';
}

// Can they add as a buddy?
if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'])
echo '<div class="normaltext"><b><a href="'$scripturl'?action=buddy;u='$context['member']['id'], ';sesc='$context['session_id'], '">['$txt['buddy_' . ($context['member']['is_buddy'] ? 'remove' 'add')], ']</a></b></div>';

                 echo 
'</td></tr></table>
                                      </td></tr></table><br />
                              <table border="1px" cellspacing="0" cellpadding="2" width="100%">
                                          <tr class="titlebg"><td class="smalltext" width="55%">'
$txt['forum_info'] .'</td><td class="smalltext" width="45%">'$txt['contact_info'] .'</td></tr>
                                          <tr><td class="smalltext" width="55%">
<div><b>'
$txt[86], ': </b>'$context['member']['posts'], ' ('$context['member']['posts_per_day'], ' '$txt['posts_per_day'], ')</div>
<div><b>'
$txt[87], ': </b>', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</div>';

// If the person looking is allowed, they can check the members IP address and hostname.
if ($context['can_see_ip'])
{
echo '<div><b>'$txt[512], ': </b><a href="'$scripturl'?action=trackip;searchip='$context['member']['ip'], '" target="_blank">'$context['member']['ip'], '</a>
</div><div><b>'
$txt['hostname'], ': </b><i>'$context['member']['hostname'], '</i></div>';
}

// If karma enabled show the members karma.
if ($modSettings['karmaMode'] == '1')
echo '<div><b>'$modSettings['karmaLabel'], ' </b>', ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '</div>';
elseif ($modSettings['karmaMode'] == '2')
echo '<div><b>'$modSettings['karmaLabel'], ' </b>+'$context['member']['karma']['good'], '/-'$context['member']['karma']['bad'], '</div>';
echo '<div><b>'$txt[233], ': </b>'$context['member']['registered'], '</div>
<div><b>'
$txt['lastLoggedIn'], ': </b>'$context['member']['last_login'], '</div>';

// Is this member requiring activation and/or banned?
if (!empty($context['activate_message']) || !empty($context['member']['bans']))
{
// If the person looking at the summary has permission, and the account isn't activated, give the viewer the ability to do it themselves.
if (!empty($context['activate_message']))
echo '<div><span style="color: red;">'$context['activate_message'], '</span>&nbsp;(<a href="' $scripturl '?action=profile2;sa=activateAccount;userID=' $context['member']['id'] . ';sesc=' $context['session_id'] . '" ', ($context['activate_type'] == 'onclick="return confirm(\'' $txt['profileConfirm'] . '\');"' ''), '>'$context['activate_link_text'], '</a>)
</div>'
;

// If the current member is banned, show a message and possibly a link to the ban.
if (!empty($context['member']['bans']))
{
echo '<div><span style="color: red;">'$txt['user_is_banned'], '</span>&nbsp;[<a href="#" onclick="document.getElementById(\'ban_info\').style.display = document.getElementById(\'ban_info\').style.display == \'none\' ? \'\' : \'none\';return false;">' $txt['view_ban'] . '</a>]
</div>
<div id="ban_info" style="display: none;">
<b>'
$txt['user_banned_by_following'], ':</b>';

foreach ($context['member']['bans'] as $ban)
echo '
<br /><span class="smalltext">'
$ban['explanation'], '</span>';

echo '
</div>'
;
}
}

      echo 
'<div>';
echo '
<a href="'
$scripturl'?action=profile;u='$context['member']['id'], ';sa=showPosts">'$txt[460], ' '$txt[461], '.</a><br />
<a href="'
$scripturl'?action=profile;u='$context['member']['id'], ';sa=showTopics">'$txt[460], ' '$txt[462], '.</a><br />
<a href="'
$scripturl'?action=profile;u='$context['member']['id'], ';sa=statPanel">'$txt['statPanel_show'], '.</a>';

           echo 
'</div>';

                       echo 
'</td>                                                                           
                         <td class="smalltext" valign="top" width="45%">'
;

// Messenger type information.
echo '
<div><b>'
$txt[513], ':</b>'$context['member']['icq']['link_text'], '</div>

<div><b>'
$txt[603], ': </b>'$context['member']['aim']['link_text'], '</div>

<div><b>'
$txt['MSN'], ': </b>'$context['member']['msn']['link_text'], '</div>

<div><b>'
$txt[604], ': </b>'$context['member']['yim']['link_text'], '</div>';

echo '<div><b>'$txt[69], ': </b>';

// Only show the email address if it's not hidden.
if ($context['member']['email_public'])
echo '<a href="mailto:'$context['member']['email'], '">'$context['member']['email'], '</a>';
// ... Or if the one looking at the profile is an admin they can see it anyway.
elseif (!$context['member']['hide_email'])
echo '<i><a href="mailto:'$context['member']['email'], '">'$context['member']['email'], '</a></i>';
else
echo '
<i>'
$txt[722], '</i>';

// Some more information.
echo '
</div>

<div><b>'
$txt[96], ': </b><a href="'$context['member']['website']['url'], '" target="_blank">'$context['member']['website']['title'], '</a>
'
, !empty($context['member']['options']['durumum_tab']) ? '</tr><tr>
<td><b>Durumum: </b></td>
<td>' 
$context['member']['options']['durumum_tab'] . '</td>' '''

</div>'
;

if (!$context['user']['is_owner'] && $context['can_send_pm'])
echo '<div><b><a href="'$scripturl'?action=pm;sa=send;u='$context['member']['id'], '">'$txt[688], '.</a></b></div>';

                       echo 
'</td></tr></table><br />
                                    <table border="1px" cellspacing="0" cellpadding="2" width="100%">'
;
                                          echo 
'<tr class="titlebg"><td class="smalltext">'$txt['shoutbox'];
                      if(!empty(
$context['profile']['shout'])){
                      echo 
' <span="smalltext">(<a href="'$scripturl .'?action=profile;sa=shout_all;u='$context['member']['id'], '">'$txt['view_all'] .'</a>)</span>';
                                                              }
                      echo 
'</td><td class="smalltext">'$txt['friends'] .'</td></tr>
                      <tr><td width="40%" class="smalltext" valign="top">
                           <table border="1px" cellspacing="0" cellpadding="2" width="100%"><tr><td>'
;
                      if(!empty(
$context['profile']['shout'])){
                      foreach(
$context['profile']['shout'] AS $sl){
                      echo 
'<tr><td class="windowbg2" style="padding:5px 2px 5px 2px;"><div class="smalltext"><a href="'$scripturl .'?action=profile;u='$sl['poster'] .'">'$sl['realName'] .'</a> '$txt['wrote'] .'<br />
at '
$sl['date'] .'</div></td></tr>';
                              echo 
'<tr><td class="windowbg" style="padding:10px 2px 10px 2px"><div class="smalltext">';
                              if(
$context['user']['is_owner'] || $context['user']['is_admin'])
                               echo 
'<a href="'$scripturl .'?action=profile;u='$context['member']['id'] .';sa=shout_delete;id='$sl['ID_SHOUT'] .'"><img src="'$settings['images_url'] .'/delete.gif" alt="'$txt['delete'] .'" /></a> ';
                              echo 
''$sl['shout'] .'</div></td></tr>';
                                                             }
                                                                                   }
        if(empty(
$context['member']['options']['messenger']) && $context['user']['is_logged'] || !empty($context['member']['options']['messenger']) && in_array($ID_MEMBER$sl['buddy_list']) || $context['profile_areas']){
                      echo 
'<tr><td class="windowbg"><div class="smalltext">
                              <form action="'
$scripturl'?action=profile;u='$context['member']['id'], ';sa=shout_add" method="post" accept-charset="'$context['character_set'], '">

                       <textarea name="shout" id="pagetext" onfocus="if (this.value==\''
$txt['enter_message'] .'\') this.value = \'\';" onblur="if (this.value==\'\') this.value=\''$txt['enter_message'] .'\';" />'$txt['enter_message'] .'</textarea><br />
                       <input type="hidden" name="userID" value="'
$context['member']['id'] .'" />
                       <input type="submit" value="'
$txt['submit'] .'" /></form></div>

                       </td></tr>'
;
                 }
                   echo 
'</td></tr></table>
                                </td><td valign="top" width="60%">'
;
                                
      
define('NUM_COLS'3); 

      foreach (
$context['profile']['buddy_list'] AS $bl){
       echo 
'<table width="100%">
                            <tr>
                       <td colspan="'
NUM_COLS .'" width="100%">';

      if(empty(
$bl['buddies']))
       echo 
'<div class="smalltext">'$context['member']['name'] .' '$txt['no_bud'] .'</div>';
         else
           echo 
'<div class="smalltext"><b>'$context['member']['name'] .' '$txt['has'] .' '$bl['total_num'] .' '$txt['buddies'] .'</b></div>';

          echo 
'</td></tr>';

         
// START THE IMPORTANT STUFF
        
if(!empty($context['member']['options']['budshow']) || $context['profile_areas']){
        echo 
'<tr>'
        for(
$x=0$x $bl['total_num']; $x++) { 
        
$memberbuddy $bl['buddy'][$x];
        
loadMemberData($memberbuddy);
        
$uploaded = empty($user_profile[$memberbuddy]['ID_ATTACH']) ? '' : (empty($user_profile[$memberbuddy]['attachmentType']) ? $scripturl '?action=dlattach;attach=' $user_profile[$memberbuddy]['ID_ATTACH'] . ';type=avatar' $modSettings['custom_avatar_url'] . '/' $user_profile[$memberbuddy]['filename']);

        echo 
'<td align="center" style="padding:5px;" class="smalltext">
                    <a href="' 
$scripturl '?action=profile;u=' $memberbuddy .'">';

          if(!empty(
$memberbuddy) && $user_profile[$memberbuddy]['avatar'] == ''  && empty($uploaded))
          echo 
'<img src="' $modSettings['avatar_url']. '/no_avatar.png" width="'$modSettings['avatar_max_width_upload'] .'" height="'$modSettings['avatar_max_height_upload'] .'" alt="' $user_profile[$memberbuddy]['realName'] . '" />';
         else 
              if(!empty(
$memberbuddy) && empty($user_profile[$memberbuddy]['avatar'])){
      $sizes getimagesize($uploaded);
                      echo 
'<img src="' $uploaded '"  alt="' $user_profile[$memberbuddy]['realName'] . '"', ($sizes[0] > $modSettings['avatar_max_width_upload'] ? ' width="'$modSettings['avatar_max_width_upload'] .'" ' ''), ($sizes[1] > $modSettings['avatar_max_height_upload'] ? ' height="'$modSettings['avatar_max_height_upload'] .'" ' ''), ' />';
                } else if(!empty(
$memberbuddy) && strstr($user_profile[$memberbuddy]['avatar'], 'http://')){
                      echo 
'<img src="' $user_profile[$memberbuddy]['avatar'] .'"  alt="'$user_profile[$memberbuddy]['realName'] .'" width="'$modSettings['avatar_max_width_external'] .'" height="'$modSettings['avatar_max_height_external'] .'" />';
                } else if(!empty(
$memberbuddy)){
                           echo 
'<img src="' $modSettings['avatar_url']. '/' $user_profile[$memberbuddy]['avatar'] .'"  alt="' $user_profile[$memberbuddy]['realName'] . '"  />';
                                                                 }
             if(!empty(
$memberbuddy))
                            echo 
'<br />'$user_profile[$memberbuddy]['realName'];

             echo 
'</a>';

        if((
$x+1) % NUM_COLS == 0) { 
        echo
'</td></tr>'
            if (
$x!=($bl['total_num'] -1)) echo '<tr>'
                                                     } else { 
                                                                 echo 
'</td>'
                                                               } 
                                                                   }
    
$numSpaces=$bl['total_num']%NUM_COLS
    if (
$numSpaces!=0) { 
        echo 
'</tr>'
                                 }
                             }
        echo 
'</table>';
                                                                            }
                        echo 
'</td></tr>
                                               
</table>
                <br />'
;
echo '<table border="1px" cellspacing="0" cellpadding="2" width="100%">';
                echo 
'<tr class="titlebg"><td class="smalltext">'$txt['photos'] .'</td><td class="smalltext">'$txt['add_info'] .'</td></tr>
                      <tr><td width="40%" class="smalltext" valign="top">'
;
                      echo 
'<table border="1px" cellspacing="0" cellpadding="2" width="100%"><tr><td>';
                          if(!empty(
$context['profile']['images'])){
                          foreach(
$context['profile']['images'] AS $pi){
                                      echo 
'<tr><td align="center"><a href="'$pi['file'] .'" onclick="return display(this.href,this.name)" target="_blank"><img src="'$pi['thumb'] .'" alt="'$pi['desc'] .'" /></a></td></tr>
                                     <tr><td align="center" class="smalltext">'
$pi['desc'];
                              if(
$context['user']['is_owner'] || $context['user']['is_admin'])
                               echo 
' <a href="'$scripturl .'?action=profile;u='$context['member']['id'] .';sa=pic_delete;id='$pi['ID_IMAGE'] .';file='$pi['filename'] .'"><img src="'$settings['images_url'] .'/delete.gif" alt="'$txt['delete'] .'" /></a>';
                         echo 
'</td></tr>';
                                                                       }
                                                                   }
        
$count 0;
        if(!isset(
$pi['count']))
        
$pi['count'] = 0;

        if(
$pi['count'] < $modSettings['noPictures'] && $context['user']['is_owner']){
        
$count $modSettings['noPictures'] - $pi['count'];
          echo 
'<tr id="postAttachment">
                           <td class="smalltext">
<form action="'
$scripturl'?action=profile;u='$context['member']['id'], ';sa=pics_add" method="post" enctype="multipart/form-data" accept-charset="'$context['character_set'], '">
'
$txt['file'] .' <input type="file" size="30" name="profilepic[]" /><br />
'
$txt['descr'] .' <input type="text" size="30" name="profiledesc[]" />';

// Show more boxes only if they aren't approaching their limit.
if ($count 1)
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var allowed_attachments = '
$count' - 1;

function addAttachment()
{
if (allowed_attachments <= 0)
return alert("'
$txt['more_attachments_error'], '");

setOuterHTML(document.getElementById("moreAttachments"), \'<br />'
$txt['file'] .' <input type="file" size="30" name="profilepic[]" /><br />'$txt['descr'] .' <input type="text" size="30" name="profiledesc[]" /><span id="moreAttachments"></span>\');
allowed_attachments = allowed_attachments - 1;

return true;
}
// ]]></script>
<span id="moreAttachments"></span> <a href="javascript:addAttachment(); void(0);">('
$txt['more_attachments'], ')</a><br />
<noscript>'
$txt['file'] .' <input type="file" size="30" name="profilepic[]" /><br />'$txt['descr'] .' <input type="text" size="30" name="profiledesc[]" /></noscript>';
else
echo '
<br />
                               <input type="hidden" name="userID" value="'
$context['member']['id'] .'" />';
echo '<input type="submit" value="'$txt['submit'] .'" /></form>';
            }
                 echo 
'</td></tr></table>          
                 </td><td width="60%" valign="top">
                   <table border="1px" cellspacing="0" cellpadding="2" width="100%" class="smalltext"><tr><td>'
;

if (file_exists($sourcedir '/CustomProfile.php')){        
require_once($sourcedir '/CustomProfile.php');
DisplayFieldsProfile();
                                                                                      }

                    echo 
'</td></tr></table></td></tr>
                 </table>'
;

                    echo 
'<table border="1px" cellspacing="0" cellpadding="2" width="100%" class="smalltext"><tr><td width="100%"><b>'$txt[85], ':</b>
<div class="signature">'
$context['member']['signature'], '</div>
                                                        </td>
                                                 </tr>
                             </table>
                                </td>
                </tr>
</table>'
;
}
// Template for showing all the posts of the user, in chronological order.  <><><><><><><><><>
function template_showTopics()
{
global $context$settings$options$scripturl$modSettings$txt;

echo '
<table border="0" width="85%" cellspacing="1" cellpadding="4" class="bordercolor" align="center">
<tr class="titlebg">
<td colspan="3" height="26">
&nbsp;<img src="'
$settings['images_url'], '/icons/profile_sm.gif" alt="" align="top" />&nbsp;'$txt['showTopics'], '
</td>
</tr>'
;

// Only show posts if they have made some!
if (!empty($context['posts']))
{
// Page numbers.
echo '
<tr class="catbg3">
<td colspan="3">
'
$txt[139], ': '$context['page_index'], '
</td>
</tr>
</table>'
;

// Button shortcuts
$quote_button create_button('quote.gif'145'smf240''align="middle"');
$reply_button create_button('reply_sm.gif'146146'align="middle"');
$remove_button create_button('delete.gif'12131'align="middle"');
$notify_button create_button('notify_sm.gif'131125'align="middle"');

// For every post to be displayed, give it its own subtable, and show the important details of the post.
foreach ($context['posts'] as $post)
{
echo '
<table border="0" width="85%" cellspacing="1" cellpadding="0" class="bordercolor" align="center">
<tr>
<td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="4" class="bordercolor" align="center">
<tr class="titlebg2">
<td style="padding: 0 1ex;">
'
$post['counter'], '
</td>
<td width="75%" class="middletext">
&nbsp;<a href="'
$scripturl'#'$post['category']['id'], '">'$post['category']['name'], '</a> / <a href="'$scripturl'?board='$post['board']['id'], '.0">'$post['board']['name'], '</a> / <a href="'$scripturl'?topic='$post['topic'], '.'$post['start'], '#msg'$post['id'], '">'$post['subject'], '</a>
</td>
<td class="middletext" align="right" style="padding: 0 1ex; white-space: nowrap;">
'
$txt[30], ': '$post['time'], '
</td>
</tr>
<tr>
<td width="100%" height="80" colspan="3" valign="top" class="windowbg2">
<div class="post">'
$post['body'], '</div>
</td>
</tr>
<tr>
<td colspan="3" class="windowbg2" align="'
, !$context['right_to_left'] ? 'right' 'left''"><span class="middletext">';

if ($post['can_delete'])
echo '
<a href="'
$scripturl'?action=profile;u='$context['current_member'], ';sa=showPosts;start='$context['start'], ';delete='$post['id'], ';sesc='$context['session_id'], '" onclick="return confirm(\''$txt[154], '?\');">'$remove_button'</a>';
if ($post['can_delete'] && ($post['can_mark_notify'] || $post['can_reply']))
echo '
'
$context['menu_separator'];
if ($post['can_reply'])
echo '
<a href="'
$scripturl'?action=post;topic='$post['topic'], '.'$post['start'], '">'$reply_button'</a>'$context['menu_separator'], '
<a href="'
$scripturl'?action=post;topic='$post['topic'], '.'$post['start'], ';quote='$post['id'], ';sesc='$context['session_id'], '">'$quote_button'</a>';
if ($post['can_reply'] && $post['can_mark_notify'])
echo '
'
$context['menu_separator'];
if ($post['can_mark_notify'])
echo '
<a href="' 
$scripturl '?action=notify;topic=' $post['topic'] . '.' $post['start'] . '">' $notify_button '</a>';

echo '
</span></td>
</tr>
</table>
</td>
</tr>
</table>'
;
}

// Show more page numbers.
echo '
<table border="0" width="85%" cellspacing="1" cellpadding="4" class="bordercolor" align="center">
<tr>
<td colspan="3" class="catbg3">
'
$txt[139], ': '$context['page_index'], '
</td>
</tr>
</table>'
;
}
// No posts? Just end the table with a informative message.
else
echo '
<tr class="windowbg2">
<td>
'
$txt[170], '
</td>
</tr>
</table>'
;
}

// <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
// Template for showing all the posts of the user, in chronological order.
function template_showPosts()
{
global $context$settings$options$scripturl$modSettings$txt;

echo '
<table border="0" width="85%" cellspacing="1" cellpadding="4" class="bordercolor" align="center">
<tr class="titlebg">
<td colspan="3" height="26">
&nbsp;<img src="'
$settings['images_url'], '/icons/profile_sm.gif" alt="" align="top" />&nbsp;'$txt['showPosts'], '
</td>
</tr>'
;

// Only show posts if they have made some!
if (!empty($context['posts']))
{
// Page numbers.
echo '
<tr class="catbg3">
<td colspan="3">
'
$txt[139], ': '$context['page_index'], '
</td>
</tr>
</table>'
;

// Button shortcuts
$quote_button create_button('quote.gif'145'smf240''align="middle"');
$reply_button create_button('reply_sm.gif'146146'align="middle"');
$remove_button create_button('delete.gif'12131'align="middle"');
$notify_button create_button('notify_sm.gif'131125'align="middle"');

// For every post to be displayed, give it its own subtable, and show the important details of the post.
foreach ($context['posts'] as $post)
{
echo '
<table border="0" width="85%" cellspacing="1" cellpadding="0" class="bordercolor" align="center">
<tr>
<td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="4" class="bordercolor" align="center">
<tr class="titlebg2">
<td style="padding: 0 1ex;">
'
$post['counter'], '
</td>
<td width="75%" class="middletext">
&nbsp;<a href="'
$scripturl'#'$post['category']['id'], '">'$post['category']['name'], '</a> / <a href="'$scripturl'?board='$post['board']['id'], '.0">'$post['board']['name'], '</a> / <a href="'$scripturl'?topic='$post['topic'], '.'$post['start'], '#msg'$post['id'], '">'$post['subject'], '</a>
</td>
<td class="middletext" align="right" style="padding: 0 1ex; white-space: nowrap;">
'
$txt[30], ': '$post['time'], '
</td>
</tr>
<tr>
<td width="100%" height="80" colspan="3" valign="top" class="windowbg2">
<div class="post">'
$post['body'], '</div>
</td>
</tr>
<tr>
<td colspan="3" class="windowbg2" align="'
, !$context['right_to_left'] ? 'right' 'left''"><span class="middletext">';

if ($post['can_delete'])
echo '
<a href="'
$scripturl'?action=profile;u='$context['current_member'], ';sa=showPosts;start='$context['start'], ';delete='$post['id'], ';sesc='$context['session_id'], '" onclick="return confirm(\''$txt[154], '?\');">'$remove_button'</a>';
if ($post['can_delete'] && ($post['can_mark_notify'] || $post['can_reply']))
echo '
'
$context['menu_separator'];
if ($post['can_reply'])
echo '
<a href="'
$scripturl'?action=post;topic='$post['topic'], '.'$post['start'], '">'$reply_button'</a>'$context['menu_separator'], '
<a href="'
$scripturl'?action=post;topic='$post['topic'], '.'$post['start'], ';quote='$post['id'], ';sesc='$context['session_id'], '">'$quote_button'</a>';
if ($post['can_reply'] && $post['can_mark_notify'])
echo '
'
$context['menu_separator'];
if ($post['can_mark_notify'])
echo '
<a href="' 
$scripturl '?action=notify;topic=' $post['topic'] . '.' $post['start'] . '">' $notify_button '</a>';

echo '
</span></td>
</tr>
</table>
</td>
</tr>
</table>'
;
}

// Show more page numbers.
echo '
<table border="0" width="85%" cellspacing="1" cellpadding="4" class="bordercolor" align="center">
<tr>
<td colspan="3" class="catbg3">
'
$txt[139], ': '$context['page_index'], '
</td>
</tr>
</table>'
;
}
// No posts? Just end the table with a informative message.
else
echo '
<tr class="windowbg2">
<td>
'
$txt[170], '
</td>
</tr>
</table>'
;
}

// Template for showing all the buddies of the current user.
function template_editBuddies()
{
global $context$settings$options$scripturl$modSettings$txt;

echo '
<table border="0" width="85%" cellspacing="1" cellpadding="4" class="bordercolor" align="center">
<tr class="titlebg">
<td colspan="8" height="26">
&nbsp;<img src="'
$settings['images_url'], '/icons/profile_sm.gif" alt="" align="top" />&nbsp;'$txt['editBuddies'], '
</td>
</tr>
<tr class="catbg3">
<td width="20%">'
$txt[68], '</td>
<td>'
$txt['online8'], '</td>
<td>'
$txt[69], '</td>
<td align="center">'
$txt[513], '</td>
<td align="center">'
$txt[603], '</td>
<td align="center">'
$txt[604], '</td>
<td align="center">'
$txt['MSN'], '</td>
<td></td>
</tr>'
;

// If they don't have any buddies don't list them!
if (empty($context['buddies']))
echo '
<tr class="windowbg">
<td colspan="8" align="center"><b>'
$txt['no_buddies'], '</b></td>
</tr>'
;

// Now loop through each buddy showing info on each.
$alternate false;
foreach ($context['buddies'] as $buddy)
{
echo '
<tr class="'
$alternate 'windowbg' 'windowbg2''">
<td>'
$buddy['link'], '</td>
<td align="center"><a href="'
$buddy['online']['href'], '"><img src="'$buddy['online']['image_href'], '" alt="'$buddy['online']['label'], '" title="'$buddy['online']['label'], '" /></a></td>
<td align="center">'
, ($buddy['hide_email'] ? '' '<a href="mailto:' $buddy['email'] . '"><img src="' $settings['images_url'] . '/email_sm.gif" alt="' $txt[69] . '" title="' $txt[69] . ' ' $buddy['name'] . '" /></a>'), '</td>
<td align="center">'
$buddy['icq']['link'], '</td>
<td align="center">'
$buddy['aim']['link'], '</td>
<td align="center">'
$buddy['yim']['link'], '</td>
<td align="center">'
$buddy['msn']['link'], '</td>
<td align="center"><a href="'
$scripturl'?action=profile;u='$context['member']['id'], ';sa=editBuddies;remove='$buddy['id'], '"><img src="'$settings['images_url'], '/icons/delete.gif" alt="'$txt['buddy_remove'], '" title="'$txt['buddy_remove'], '" /></a></td>
</tr>'
;

$alternate = !$alternate;
}

echo '
</table>'
;

// Add a new buddy?
echo '
<br />
<form action="'
$scripturl'?action=profile;u='$context['member']['id'], ';sa=editBuddies" method="post" accept-charset="'$context['character_set'], '">
<table width="65%" cellpadding="4" cellspacing="0" class="tborder" align="center">
<tr class="titlebg">
<td colspan="2">'
$txt['buddy_add'], '</td>
</tr>
<tr class="windowbg">
<td width="45%">
<b>'
$txt['who_member'], ':</b>
</td>
<td width="55%">
<input type="text" name="new_buddy" id="new_buddy" size="25" />
<a href="'
$scripturl'?action=findmember;input=new_buddy;quote=1;sesc='$context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="'$settings['images_url'], '/icons/assist.gif" alt="'$txt['find_members'], '" align="top" /></a>
</td>
</tr>
<tr class="windowbg">
<td colspan="2" align="right">
<input type="submit" value="'
$txt['buddy_add_button'], '" />
</td>
</tr>
</table>
</form>'
;
}
// This template shows an admin information on a users IP addresses used and errors attributed to them.
function template_trackUser()
{
global $context$settings$options$scripturl$txt;

// The first table shows IP information about the user.
echo '
<table cellpadding="0" cellspacing="0" border="0" class="bordercolor" align="center" width="90%"><tr><td>
<table border="0" cellspacing="1" cellpadding="4" align="left" width="100%">
<tr class="titlebg">
<td colspan="2">
<b>'
$txt['view_ips_by'], ' '$context['member']['name'], '</b>
</td>
</tr>'
;

// The last IP the user used.
echo '
<tr>
« Last Edit: January 07, 2008, 04:44:26 PM by Aslanbek (husmen73) »

Offline Hoochie Coochie Man

  • SMF Hero
  • ******
  • Posts: 5,135
  • Gender: Male
    • İstanblues.org
Re: Profillere Biografi Bölümü Eklemek
« Reply #11 on: January 03, 2008, 09:08:39 AM »
Bu ne? 
Code: [Select]
// Can they add as a buddy?
İnadına SMF 1.1.X

Offline prens_nefret

  • Semi-Newbie
  • *
  • Posts: 15
Re: Profillere Biografi Bölümü Eklemek
« Reply #12 on: January 03, 2008, 09:15:34 AM »
o var ama bul dediğiniz kodun devamı tutmuyor.sonrasına ekle diyince sadece orda yazanın sonuna eklemicez heralde :S

Offline Hoochie Coochie Man

  • SMF Hero
  • ******
  • Posts: 5,135
  • Gender: Male
    • İstanblues.org
Re: Profillere Biografi Bölümü Eklemek
« Reply #13 on: January 03, 2008, 09:25:39 AM »
Hangi tema ise o çok karışık, ben defaulta göre anlatım, eğer bilen varsa gösteriri, ben tanımıyorum senin profile.template.php ni
İnadına SMF 1.1.X

Offline prens_nefret

  • Semi-Newbie
  • *
  • Posts: 15
Re: Profillere Biografi Bölümü Eklemek
« Reply #14 on: January 03, 2008, 09:28:47 AM »
temam default ama editleye editleye zamanla kodlar değişti :) napalım kuramıcam herhalde :) saolasın.

Offline Hoochie Coochie Man

  • SMF Hero
  • ******
  • Posts: 5,135
  • Gender: Male
    • İstanblues.org
Re: Profillere Biografi Bölümü Eklemek
« Reply #15 on: January 03, 2008, 09:35:34 AM »
Vallahi editlediysen karman çorman yapmışsın, daha imza yerini bile bulamadım, (zorlasam bulurum ama beynim sulanır)

Şu yazının üsütene koy diyecektim onu bile bulamadım
Quote
// Show the users signature.
İnadına SMF 1.1.X

Offline prens_nefret

  • Semi-Newbie
  • *
  • Posts: 15
Re: Profillere Biografi Bölümü Eklemek
« Reply #16 on: January 03, 2008, 09:39:09 AM »
bende bulamadım :)

Offline Patlican

  • Newbie
  • *
  • Posts: 6
Re: Profillere Biografi Bölümü Eklemek
« Reply #17 on: January 12, 2008, 08:04:05 AM »
Alanı ekledim.Güzel oldu fakat küçük bir sorum olacaktı ?

Bunu konudaki profil alanında göstermek istedim.Bir süre kurcaladım ama üyenin yazdığını bir türlü gösteremedim

Offline Hoochie Coochie Man

  • SMF Hero
  • ******
  • Posts: 5,135
  • Gender: Male
    • İstanblues.org
Re: Profillere Biografi Bölümü Eklemek
« Reply #18 on: January 12, 2008, 08:20:35 AM »
Anlamadım ne demek istediğini?
İnadına SMF 1.1.X

Offline Patlican

  • Newbie
  • *
  • Posts: 6
Re: Profillere Biografi Bölümü Eklemek
« Reply #19 on: January 12, 2008, 08:24:08 AM »
Quote


Ssle uraşmak istemedim başkta topicden aldım :)

Mesaj sayısı : x
Nerden : x
Biyografi : x

Şeklinde olmasını istiyorum :)