Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1165
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Se

Started by wizi_emre, July 30, 2011, 09:51:06 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

wizi_emre

Se
?ste?im ?

grafitus

my modsI don't reply support PMs. Please use support forums.

wizi_emre

#2
?stenildi?i gibi

grafitus

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
my modsI don't reply support PMs. Please use support forums.

wizi_emre

Sorunsuz ve istenildi?i gibi