SMF Profilde 'biyografi'

Son güncelleme: 17.01.2008 12:13
  • Languages'de Profile.turkish.php'de..
    Bul:
    ?>

    Öncesine ekle:
    $txt['bio'] = 'Biyografi';

    Profile.template.php'de..
    Bul:
    // Can they add this member as a buddy?
    if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'])
    echo '
      <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'] ? '   <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:
    //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:
    // 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:
    <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>
#17.01.2008 12:13 0 0 0