Türkçe çeviri bana aittir..
Profilinizde biyografi yazmanıza olanak sağlar..
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>
Bir Alan S (http://www.simplemachines.org/community/index.php?action=profile;u=41787) yapımıdır..
Orjinal Konu (http://www.simplemachines.org/community/index.php?topic=115547.msg739749#msg739749)
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
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..
emeğine sağlık üstad güzel
Quote from: Hoochie Coochie Man 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..
üstad sen çok güzel şeyler yapıyordun ya bu aralar yenilikler göremiyorum bekliyorum senin tüyolar çok faydalı oluyordu.tşk
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..
bekleriz kardeşim dört gözle :D
// Can they add this member as a buddy?
bu kodu bulamıyorum :S
Quote from: prens_nefret on January 03, 2008, 08:01:51 AM
// Can they add this member as a buddy?
bu kodu bulamıyorum :S
Bulursun, orada ;)
<?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'] ? ' <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> (<a href="' . $scripturl . '?action=profile2;sa=activateAccount;userID=' . $context['member']['id'] . ';sesc=' . $context['session_id'] . '" ', ($context['activate_type'] == 4 ? '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> [<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">
<img src="', $settings['images_url'], '/icons/profile_sm.gif" alt="" align="top" /> ', $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', 146, 146, 'align="middle"');
$remove_button = create_button('delete.gif', 121, 31, 'align="middle"');
$notify_button = create_button('notify_sm.gif', 131, 125, '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">
<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">
<img src="', $settings['images_url'], '/icons/profile_sm.gif" alt="" align="top" /> ', $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', 146, 146, 'align="middle"');
$remove_button = create_button('delete.gif', 121, 31, 'align="middle"');
$notify_button = create_button('notify_sm.gif', 131, 125, '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">
<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">
<img src="', $settings['images_url'], '/icons/profile_sm.gif" alt="" align="top" /> ', $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>
Bu ne? (https://www.simplemachines.org/community/Smileys/simple/angry.gif)
// Can they add as a buddy?
o var ama bul dediğiniz kodun devamı tutmuyor.sonrasına ekle diyince sadece orda yazanın sonuna eklemicez heralde :S
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
temam default ama editleye editleye zamanla kodlar değişti :) napalım kuramıcam herhalde :) saolasın.
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.
bende bulamadım :)
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
Anlamadım ne demek istediğini?
Quote(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg110.imageshack.us%2Fimg110%2F6305%2Fbann5bw.jpg&hash=c31c76cd0ba60c0817fd2fda9acc630af1c7e57e)
Ssle uraşmak istemedim başkta topicden aldım :)
Mesaj sayısı : x
Nerden : x
Biyografi : x
Şeklinde olmasını istiyorum :)
Yapılabilir, ancak çok çirkin olur, düşünsene 2 sayfa uzunluğunda biri biyografi yazıyor, resimler koyuyor, onların hepsi yan profil alanını da gözükyor ve sayfanın aşağısna doğru yığılıyor.. Olacakları biraz tahmin et, çok boş bir iş olduğu için bunu boş bir zamanımda bi bakarım.. Onun dışın bir soru varsa alabilrim..
Quote from: Hoochie Coochie Man on January 12, 2008, 08:51:35 AM
Yapılabilir, ancak çok çirkin olur, düşünsene 2 sayfa uzunluğunda biri biyografi yazıyor, resimler koyuyor, onların hepsi yan profil alanını da gözükyor ve sayfanın aşağısna doğru yığılıyor.. Olacakları biraz tahmin et, çok boş bir iş olduğu için bunu boş bir zamanımda bi bakarım.. Onun dışın bir soru varsa alabilrim..
Tabiki çirkin olur.Fakat ben kendime göre az çok değiştirmeyi denedim.Profil kısmında yazıcakta en fazla bir satırlık yer olur.Yani biyografi olarak değilde başka birşey olarak kullanmayı amaçlıyorum
Anladım, o zaman sen bu başlıkta hiç durma. Buradan ayrıl, ve Elmacik'in çok güzel bir konusu var.. Profile ek özellikler ekleme ile ilgili, detaylı anlatmış, ben bulamaadım. Bulursam veririm linkini.. O'nu ara ;)
Tamam buldum.Çok saol
http://www.simplemachines.org/community/index.php?topic=60380.0
Bu dimi :)
Quote from: Patlican on January 12, 2008, 05:54:15 PM
Tamam buldum.Çok saol
http://www.simplemachines.org/community/index.php?topic=60380.0
Bu dimi :)
Evet aynen o, bende aradım ama zamanım yoktu :)
O sana ilaç gibi gelir..
Geldi hatta arkasından sorucağım soruyuda cevapladı tekrar saol diyorum ve bu konudan başka konulara yol alıyorum :P
Arkadaşım güzel oldu ama Bu biyografi bilgilerini nerden giriyoruz?
Kimlik Bilgisinden..
elinize sağlık oturdu ama kimlik bilgisi deyince profil alanında bozulma oluyor. Text alanını nasıl düzenliyebiliriz.Genişliğini.
Quote; <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>
Kırmızı ile işaretlediğim yerleri oynamalısınız..
çok teşekkürler bir sorun daha çıktı ama :-[
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg159.imageshack.us%2Fimg159%2F2011%2Fresmke9.jpg&hash=e68543ac3ed15fd9b033d9448ffb413a2953dcef)
Üzgünüm ama sorunu siz yaratıyorsunuz. Kodları uygulayamıyorsunuz.
tşkler ilgili ve alakanıza evet sorun bendeymiş ama kaldırdım eski haline çevirdim hala kimlik bilgisine girince kayma oluyo 3-5 satır acaba o alanın genişliğini style.css de mi düzenlicem profil.temlate.php de mi daha önce dikkatimi çekmedi ama sağa doğru kaymış. :S
Quote from: Hoochie Coochie Man on February 26, 2008, 12:30:28 PM
Quote; <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>
Kırmızı ile işaretlediğim yerleri oynamalısınız..
Belirtmiştim nasıl daraltacağınızı. Neden deneme yanılma yapmıyorsunuz?
yok onu demiyorum konu dışına çıktım azcık söylemek istedğim bu modu kurmadan önce profilde kimlik bilgisine girince sayfa sağa doğru baya bi 5-6px kaymış (kimlik bilgisinin alanı genişliğini nerden düzenliyebilirim diye sormaya calştm ) Modluk bi sorunum yok bunu değişirken[ rows="7" cols="70">] oturdu ama tekrar kaldırdım modu zaten benim önceden varmş az kaymş . Biraz kafa şişirdim ama üzgünüm bunu demek istedim .
Evet sorununuz konu ile ilgili değilmiş, bu başlıkta (http://www.simplemachines.org/community/index.php?board=104.0) konu ile ilgili ilk önce arama yapabilir, sonuç bulamazsanız yeni konu açabilirsiniz.
Başlık açmadan önce de burayı okumanızı öneririm. (http://www.simplemachines.org/community/index.php?topic=155455.0) İyi günler..
peki tşkler :)
emegine saglık arkadaşım
öncelikle bu özelliği smf ailesine kazandıran arkadaşlara teşekkür ederim.
bir sorum olacaktı.
profil sayfasında biyografiyi diğerlerinden ayırmam için hr kodunu eklemeye çalıştım beceremedim.. br ile yapmaya çalıştım olmadı, bu konuda sizden yardım talebim olacak..
ilgilenen arkadaşlara teşekkürler..
Ayrıca ikincir bir konu şu:
biyografisini doldurmayan üyelere, "biyografisi hazırlanıyor" gibi bir yazı eklememiz mümkün mü?