";
echo "";
echo "".$locale["global_048"]." | ";
echo "".$locale["global_044"]." | ";
echo "".$locale["global_049"]." | ";
echo "
";
echo "";
while ($data = dbarray($result)) {
$thread_rowstart = '';
if (!empty($inf_settings['posts_per_page']) && $data['thread_postcount'] > $inf_settings['posts_per_page']) {
$thread_posts = dbquery("SELECT p.post_id, p.forum_id, p.thread_id, p.post_author, p.post_datestamp
FROM ".DB_FORUM_POSTS." p
LEFT JOIN ".DB_FORUM_THREADS." t ON p.thread_id=t.thread_id
WHERE p.forum_id='".$data['forum_id']."' AND p.thread_id='".$data['thread_id']."' AND thread_hidden='0' AND post_hidden='0'
ORDER BY post_datestamp ASC");
if (dbrows($thread_posts)) {
$counter = 1;
while ($thread_post_data = dbarray($thread_posts)) {
if ($thread_post_data['post_id'] == $data['post_id']) {
$thread_rowstart = $inf_settings['posts_per_page'] * floor(($counter - 1) / $inf_settings['posts_per_page']);
$thread_rowstart = "&rowstart=".$thread_rowstart;
}
$counter++;
}
}
}
echo "\n";
echo "".trimlink($data['forum_name'], 30)." | \n";
echo "".trimlink($data['thread_subject'], 40)." | \n";
echo "".showdate("forumdate", $data['post_datestamp'])." | \n";
echo "
\n";
}
echo "";
echo "
";
if ($rows > 20) {
echo "".makepagenav($_GET['rowstart'], 20, $rows, 3, INFUSIONS."forum_threads_list_panel/my_posts.php?")."
\n";
}
} else {
echo "".$locale['global_054']."
\n";
}
closetable();
require_once THEMES.'templates/footer.php';