</div>
        <?php 
    }
    $this_comment_page_footer = ob_get_clean();
    // Print out the comment header here at the top of the page
    echo $this_comment_page_header . "\n";
    // Loop through each of the posts and display their markup
    foreach ($this_posts_array as $this_post_key => $this_post_info) {
        // If the post key is out of range, do not show it
        if ($this_post_key < $this_page_minpost_key) {
            continue;
        } elseif ($this_post_key > $this_page_maxpost_key) {
            break;
        }
        // Collect markup for this post from the function
        $temp_markup = rpg_website::community_postblock($this_thread_info, $this_post_info, $this_category_info);
        echo $temp_markup . "\n";
    }
}
// Print out the comment header again at the bottom of the page
if (!$show_comment_section) {
    echo $this_comment_page_footer . "\n";
}
// If we are to show the comment section, define the form action path
if ($show_comment_section) {
    $comment_form_action = $_GET['this_current_url'];
    $temp_num_regex = '/(\\/[0-9]+\\/)$/i';
    if (preg_match($temp_num_regex, $comment_form_action)) {
        $comment_form_action = preg_replace($temp_num_regex, '/', $comment_form_action);
    }
    $comment_form_action .= $this_pages_count . '/';