Simple Portal

Support => Turkish (T => International Support => Ki?iselle?tirme => Topic started by: wizi_emre on July 30, 2011, 09:51:06 AM

Title: Se
Post by: wizi_emre on July 30, 2011, 09:51:06 AM
?ste?im ?
Title: Re: Se
Post by: grafitus on July 30, 2011, 11:23:41 AM
San?r?m bu
Title: Re: Se
Post by: wizi_emre on July 31, 2011, 11:11:39 AM
?stenildi?i gibi
Title: Re: Se
Post by: grafitus on July 31, 2011, 08:01:15 PM
Bunu deneyin:
[code]global $context, $smcFunc, $scripturl;

if ($context['user']['is_guest'])
   return;

$board = 1;
$limit = 5;

// Did we get the user by name...
if (isset($_REQUEST['user']))
   $memberResult = loadMemberData($_REQUEST['user'], true, 'minimal');
// ... or by id_member?
elseif (!empty($_REQUEST['u']))
   $memberResult = loadMemberData((int) $_REQUEST['u'], false, 'minimal');
// If it was just ?action=profile, edit your own profile.
else
   $memberResult = loadMemberData($context['user']['id'], false, 'minimal');

list ($member_id) = $memberResult;

$request = $smcFunc['db_query']('', '
   SELECT t.id_topic, m.subject
   FROM {db_prefix}topics AS t
      INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
   WHERE t.id_board = {int:board}
      AND t.id_member_started = {int:user}
      AND t.approved = {int:is_approved}
   ORDER BY m.subject
   LIMIT 5',
   array(
      'board' => $board,
      'user' => $member_id,
      'is_approved' => 1,    
   )
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
   $topics[$row['id_topic']] = $row['subject'];
$smcFunc['db_free_result']($request);

if (empty($topics))
{
   echo 'Bu b
Title: Re: Se
Post by: wizi_emre on July 31, 2011, 08:49:15 PM
Sorunsuz ve istenildi?i gibi
EhPortal 1.39.8 © 2024, WebDev