</div>
<?php 
} else {
    ?>
  <div class="subbody thread_subbody thread_subbody_full thread_subbody_full_<?php 
    echo $is_personal_message_creator ? 'left' : 'right';
    ?>
 thread_<?php 
    echo $is_personal_message_creator ? 'left' : 'right';
    ?>
" style="text-align: left; position: relative; padding-bottom: 60px; min-height: 10px;">
    <div class="bodytext" style="padding-right: 0;">
      <em>
      <?php 
    echo substr(strip_tags(preg_replace('/(<br\\s?\\/?>)/i', ' ', rpg_website::formatting_decode($temp_thread_body))), 0, 300) . '&hellip;';
    ?>
      <a class="link_inline" href="<?php 
    echo $this_thread_url;
    ?>
">Read More</a>
      </em>
    </div>
    <?php 
    if ((COMMUNITY_VIEW_MODERATOR || $this_userinfo['user_id'] == $this_thread_info['user_id']) && $this_thread_info['category_id'] != 0) {
        ?>
      <?php 
        if ($this_thread_info['thread_target'] == 0) {
            ?>
      <div class="published" style="position: absolute; bottom: 10px; right: 10px;">
        <?/*<strong><?php 
    public static function community_postblock($this_thread_info, $this_post_info, $this_category_info = array(), $display_style = 'full')
    {
        // Pull in global variables
        global $this_userid, $this_userinfo;
        global $this_date_group, $this_time, $this_online_timeout, $community_battle_points;
        global $this_user_countindex, $temp_leaderboard_online, $thread_session_viewed, $this_post_key;
        if (empty($community_battle_points)) {
            $community_battle_points = 0;
        }
        // Start the output buffer
        ob_start();
        // If category info was not provided
        if (empty($this_date_group)) {
            $this_date_group = '';
        }
        if (empty($this_time)) {
            $this_time = time();
        }
        if (empty($this_online_timeout)) {
            $this_online_timeout = MMRPG_SETTINGS_ONLINE_TIMEOUT;
        }
        if (empty($this_category_info)) {
            $this_category_info = array('category_token' => '');
        }
        // Check to see if this is a message thread, and then if being viewed by creator
        $is_personal_message = !empty($this_thread_info['thread_target']) && $this_thread_info['thread_target'] != 0 ? true : false;
        $is_personal_message_creator = $is_personal_message && $this_thread_info['user_id'] == $this_userinfo['user_id'] ? true : false;
        // If this is a personal message, we should check stuff
        if ($is_personal_message) {
            if ($this_post_info['user_id'] != $this_userinfo['user_id'] && $this_post_info['post_target'] != $this_userinfo['user_id']) {
                continue;
            }
        }
        // Define this post's overall float direction based on if PM
        $this_post_float = 'left';
        $this_post_direction = 'right';
        if ($this_post_info['post_target'] == $this_userinfo['user_id']) {
            $this_post_float = 'right';
            $this_post_direction = 'left';
        }
        // Define the temporary display variables
        $temp_post_guest = $this_post_info['user_id'] == MMRPG_SETTINGS_GUEST_ID ? true : false;
        $temp_post_author = !empty($this_post_info['user_name_public']) ? $this_post_info['user_name_public'] : $this_post_info['user_name'];
        $temp_post_date = !empty($this_post_info['post_date']) ? $this_post_info['post_date'] : mktime(0, 0, 1, 1, 1, 2011);
        $temp_post_date = date('F jS, Y', $temp_post_date) . ' at ' . date('g:ia', $temp_post_date);
        $temp_post_mod = !empty($this_post_info['post_mod']) && $this_post_info['post_mod'] != $this_post_info['post_date'] ? $this_post_info['post_mod'] : false;
        $temp_post_mod = !empty($temp_post_mod) ? '( Edited : ' . date('Y/m/d', $temp_post_mod) . ' at ' . date('g:ia', $temp_post_mod) . ' )' : false;
        $temp_post_body = $this_post_info['post_body'];
        $temp_post_title = '#' . $this_post_info['user_id'] . ' : ' . $temp_post_author;
        $temp_post_timestamp = !empty($this_post_info['post_mod']) ? $this_post_info['post_mod'] : $this_post_info['post_date'];
        // Define the avatar class and path variables
        $temp_avatar_frame = !empty($this_post_info['post_frame']) ? $this_post_info['post_frame'] : '00';
        $temp_avatar_path = !empty($this_post_info['user_image_path']) ? $this_post_info['user_image_path'] : 'robots/mega-man/40';
        $temp_background_path = !empty($this_post_info['user_background_path']) ? $this_post_info['user_background_path'] : 'fields/intro-field';
        list($temp_avatar_kind, $temp_avatar_token, $temp_avatar_size) = explode('/', $temp_avatar_path);
        list($temp_background_kind, $temp_background_token) = explode('/', $temp_background_path);
        $temp_avatar_class = 'avatar avatar_40x40 float float_' . $this_post_float . ' ';
        $temp_sprite_class = 'sprite sprite_' . $temp_avatar_size . 'x' . $temp_avatar_size . ' sprite_' . $temp_avatar_size . 'x' . $temp_avatar_size . '_' . $temp_avatar_frame;
        $temp_avatar_colour = !empty($this_post_info['user_colour_token']) ? $this_post_info['user_colour_token'] : 'none';
        $temp_sprite_path = 'images/sprites/' . $temp_avatar_kind . '/' . $temp_avatar_token . '/sprite_' . $this_post_direction . '_' . $temp_avatar_size . 'x' . $temp_avatar_size . '.png?' . MMRPG_CONFIG_CACHE_DATE;
        $temp_background_path = 'images/sprites/' . $temp_background_kind . '/' . $temp_background_token . '/battle-field_avatar.png?' . MMRPG_CONFIG_CACHE_DATE;
        $temp_is_contributor = in_array($this_post_info['role_token'], array('developer', 'administrator', 'moderator', 'contributor')) ? true : false;
        if ($temp_is_contributor) {
            $temp_item_class = 'sprite sprite_40x40 sprite_40x40_00';
            $temp_item_path = 'images/sprites/items/' . (!empty($this_post_info['role_icon']) ? $this_post_info['role_icon'] : 'energy-pellet') . '/icon_left_40x40.png?' . MMRPG_CONFIG_CACHE_DATE;
            $temp_item_title = !empty($this_post_info['role_name']) ? $this_post_info['role_name'] : 'Contributor';
        }
        // Define the temporary online variables
        $temp_last_modified = !empty($this_post_info['user_date_modified']) ? $this_post_info['user_date_modified'] : 0;
        // Check if the thread creator is currently online
        $temp_is_online = false;
        foreach ($temp_leaderboard_online as $key => $info) {
            if ($info['id'] == $this_post_info['user_id']) {
                $temp_is_online = true;
                break;
            }
        }
        // Define if this post is new to the logged in user or not
        $temp_is_new = false;
        // Supress the new flag if thread has already been viewed
        if (!$thread_session_viewed && $this_category_info['category_id'] != 0) {
            if ($this_userinfo['user_id'] != MMRPG_SETTINGS_GUEST_ID && $this_post_info['user_id'] != $this_userinfo['user_id'] && $temp_post_timestamp > $this_userinfo['user_backup_login']) {
                $temp_is_new = true;
            } elseif ($this_userinfo['user_id'] == MMRPG_SETTINGS_GUEST_ID && $this_time - $temp_post_timestamp <= MMRPG_SETTINGS_UPDATE_TIMEOUT) {
                $temp_is_new = true;
            }
        }
        // Collect the thread count for this user
        if ($this_post_info['user_id'] != MMRPG_SETTINGS_GUEST_ID) {
            $this_post_info['thread_count'] = !empty($this_user_countindex[$this_post_info['user_id']]['thread_count']) ? $this_user_countindex[$this_post_info['user_id']]['thread_count'] : 0;
        } else {
            $this_post_info['thread_count'] = false;
        }
        // Collect the post count for this user
        if ($this_post_info['user_id'] != MMRPG_SETTINGS_GUEST_ID) {
            $this_post_info['post_count'] = !empty($this_user_countindex[$this_post_info['user_id']]['thread_count']) ? $this_user_countindex[$this_post_info['user_id']]['post_count'] : 0;
        } else {
            $this_post_info['post_count'] = false;
        }
        // Collect the reply data for this user
        $temp_reply_name = $temp_post_author;
        $temp_reply_colour = !empty($this_post_info['user_colour_token']) ? $this_post_info['user_colour_token'] : 'none';
        ?>
        <div id="post-<?php 
        echo $this_post_info['post_id'];
        ?>
" data-key="<?php 
        echo $this_post_key;
        ?>
" data-user="******" title="<?php 
        echo !empty($this_post_info['post_deleted']) ? $temp_post_author . ' on ' . str_replace(' ', '&nbsp;', $temp_post_date) : '';
        ?>
" class="subbody post_subbody post_subbody_<?php 
        echo $this_post_float;
        ?>
 <?php 
        echo !empty($this_post_info['post_deleted']) ? 'post_subbody_deleted' : '';
        ?>
 post_<?php 
        echo $this_post_float;
        ?>
" style="<?php 
        echo !empty($this_post_info['post_deleted']) ? 'margin-top: 0; padding: 0 10px; background-color: transparent; float: ' . $this_post_float . '; ' : '';
        ?>
">

            <?php 
        if (empty($this_post_info['post_deleted'])) {
            ?>
                <div class="userblock player_type_<?php 
            echo $temp_avatar_colour;
            ?>
">
                    <div class="name">
                        <?php 
            echo !$temp_post_guest ? '<a href="leaderboard/' . $this_post_info['user_name_clean'] . '/">' : '';
            ?>
                        <strong data-tooltip-type="player_type player_type_<?php 
            echo $temp_avatar_colour;
            ?>
" title="<?php 
            echo $temp_post_author . ($temp_is_contributor ? ' | ' . $temp_item_title : ' | Player') . ($temp_is_online ? ' | Online' : '');
            ?>
" style="<?php 
            echo $temp_is_online ? 'text-shadow: 0 0 2px rgba(0, 255, 0, 0.20); ' : '';
            ?>
"><?php 
            echo $temp_post_author;
            ?>
</strong>
                        <?php 
            echo !$temp_post_guest ? '</a>' : '';
            ?>
                    </div>
                    <div class="<?php 
            echo $temp_avatar_class;
            ?>
 avatar_fieldback" style="background-image: url(<?php 
            echo !empty($temp_background_path) ? $temp_background_path : 'images/sprites/fields/' . MMRPG_SETTINGS_CURRENT_FIELDTOKEN . '/battle-field_avatar.png';
            ?>
?<?php 
            echo MMRPG_CONFIG_CACHE_DATE;
            ?>
); background-size: 100px 100px;">
                        &nbsp;
                    </div>
                    <div class="<?php 
            echo $temp_avatar_class;
            ?>
 avatar_userimage" style="">
                        <?/*<div class="sprite sprite_40x40 sprite_40x40_00" style="background-image: url(images/sprites/robots/mega-man/sprite_left_40x40.png);"><?php 
            echo $temp_thread_author;
            ?>
</div>*/?>
                        <?php 
            if ($temp_is_contributor) {
                ?>
<div class="<?php 
                echo $temp_item_class;
                ?>
" style="background-image: url(<?php 
                echo $temp_item_path;
                ?>
); position: absolute; top: -10px; <?php 
                echo $this_post_float;
                ?>
: -14px;" title="<?php 
                echo $temp_item_title;
                ?>
"><?php 
                echo $temp_item_title;
                ?>
</div><?php 
            }
            ?>
                        <div class="<?php 
            echo $temp_sprite_class;
            ?>
" style="background-image: url(<?php 
            echo $temp_sprite_path;
            ?>
);"><?php 
            echo $temp_post_author;
            ?>
</div>
                    </div>

                    <?php 
            $temp_stat = !empty($this_user_countindex[$this_post_info['user_id']]['board_points']) ? $this_user_countindex[$this_post_info['user_id']]['board_points'] : 0;
            ?>
                    <div class="counter points_counter"><?php 
            echo number_format($temp_stat, 0, '.', ',') . ' BP';
            ?>
</div>
                    <div class="counter community_counters">
                        <?php 
            $temp_stat = !empty($this_user_countindex[$this_post_info['user_id']]['thread_count']) ? $this_user_countindex[$this_post_info['user_id']]['thread_count'] : 0;
            ?>
                        <span class="thread_counter"><?php 
            echo $temp_stat . ' TP';
            ?>
</span> <span class="pipe">|</span>
                        <?php 
            $temp_stat = !empty($this_user_countindex[$this_post_info['user_id']]['post_count']) ? $this_user_countindex[$this_post_info['user_id']]['post_count'] : 0;
            ?>
                        <span class="post_counter"><?php 
            echo $temp_stat . ' PP';
            ?>
</span>
                    </div>

                </div>
                <div class="postblock">

                    <?php 
            if (!empty($this_post_info['post_is_thread'])) {
                ?>
                        <div class="subheader field_type field_type_<?php 
                echo !empty($this_thread_info['thread_colour']) ? $this_thread_info['thread_colour'] : MMRPG_SETTINGS_CURRENT_FIELDTYPE;
                ?>
" title="<?php 
                echo $this_thread_info['thread_name'];
                ?>
">
                            <a class="link" style="display: inline; float: none;" href="community/<?php 
                echo $this_thread_info['category_token'];
                ?>
/<?php 
                echo $this_thread_info['thread_id'];
                ?>
/<?php 
                echo $this_thread_info['thread_token'];
                ?>
/"><?php 
                echo $this_thread_info['thread_name'];
                ?>
</a>
                        </div>
                    <?php 
            }
            ?>

                    <div class="published" title="<?php 
            echo $temp_post_author . ' on ' . str_replace(' ', '&nbsp;', $temp_post_date);
            ?>
">
                        <strong>
                            Posted on <?php 
            echo $temp_post_date;
            ?>
                            <?php 
            if (empty($this_post_info['post_is_thread']) && ($this_category_info['category_token'] == 'search' || $this_category_info['category_token'] == 'leaderboard')) {
                ?>
                                in &quot;<a class="link" href="community/<?php 
                echo $this_thread_info['category_token'];
                ?>
/<?php 
                echo $this_thread_info['thread_id'];
                ?>
/<?php 
                echo $this_thread_info['thread_token'];
                ?>
/"><?php 
                echo $this_thread_info['thread_name'];
                ?>
</a>&quot;
                            <?php 
            }
            ?>
                        </strong>

                        <?php 
            if (true || $this_category_info['category_token'] != 'search' && $this_category_info['category_token'] != 'leaderboard') {
                ?>
                            <span style="float: <?php 
                echo $this_post_direction;
                ?>
; color: #565656; padding-left: 6px;">#<?php 
                echo $this_post_key + 1;
                ?>
</span>
                        <?php 
            }
            ?>

                        <?php 
            echo !empty($temp_post_mod) ? '<span style="padding-left: 20px; color: rgb(119, 119, 119); letter-spacing: 1px; font-size: 10px;">' . $temp_post_mod . '</span>' : '';
            ?>
                        <?php 
            echo $temp_is_new ? '<strong style="padding-left: 10px; color: rgb(187, 184, 115); letter-spacing: 1px;">(New!)</strong>' : '';
            ?>
                        <?php 
            if (!$temp_post_guest && (COMMUNITY_VIEW_MODERATOR || $this_userinfo['user_id'] == $this_post_info['user_id'])) {
                ?>
                            <?php 
                if ($this_thread_info['thread_target'] == 0) {
                    ?>
                                <span class="options">[ <a class="edit" rel="noindex,nofollow" href="<?php 
                    echo $_GET['this_current_url'] . 'action=edit&amp;post_id=' . $this_post_info['post_id'] . '#comment-form';
                    ?>
">edit</a> | <a class="delete" rel="noindex,nofollow" href="<?php 
                    echo $_GET['this_current_url'];
                    ?>
" data-href="<?php 
                    echo $_GET['this_current_url'] . 'action=delete&amp;post_id=' . $this_post_info['post_id'] . '#comment-form';
                    ?>
">delete</a> ]</span>
                            <?php 
                }
                ?>
                        <?php 
            }
            ?>
                    </div>

                    <div class="bodytext">
                        <?php 
            echo rpg_website::formatting_decode($temp_post_body);
            ?>
                    </div>

                </div>
                <?php 
            if ($this_userid != MMRPG_SETTINGS_GUEST_ID && empty($this_thread_info['thread_locked']) && $community_battle_points > MMRPG_SETTINGS_POST_MINPOINTS && $this_category_info['category_token'] != 'personal') {
                ?>
                    <a class="postreply" rel="nofollow" href="<?php 
                echo 'community/' . $this_category_info['category_token'] . '/' . $this_thread_info['thread_id'] . '/' . $this_thread_info['thread_token'] . '/#comment-form:' . $temp_reply_name . ':' . $temp_reply_colour;
                ?>
" style="<?php 
                echo $this_post_direction;
                ?>
: 46px;">@ Reply</a>
                <?php 
            }
            ?>
                <a class="postscroll" href="#top" style="<?php 
            echo $this_post_direction;
            ?>
: 12px;">^ Top</a>
            <?php 
        } else {
            ?>
                <span style="color: #464646;">- deleted -</span>
            <?php 
        }
        ?>

            <?php 
        $this_post_votes = mt_rand(0, 99);
        if (mt_rand(0, 1) == 0) {
            $this_post_votes = $this_post_votes * -1;
        }
        $this_post_votes_text = $this_post_votes;
        $this_post_votes_type = '';
        if ($this_post_votes > 0) {
            $this_post_votes_text = '+' . $this_post_votes_text;
            $this_post_votes_type = 'positive';
        } elseif ($this_post_votes < 0) {
            //$this_post_votes_text = '-'.$this_post_votes_text;
            $this_post_votes_type = 'negative';
        }
        /*
                    <div class="postvotes">
           <a class="upvote <?= mt_rand(0,9) == 6 ? 'active' : '' ?>" href="#">&#x25B2;</a>
           <strong class="votes <?= $this_post_votes_type ?>"><?= $this_post_votes_text ?></strong>
           <a class="downvote <?= mt_rand(0,9) == 3 ? 'active' : '' ?>" href="#">&#x25BC;</a>
                    </div>
        */
        ?>

        </div>
        <?php 
        // Collect and return the generated markup
        $temp_markup = trim(ob_get_clean());
        return $temp_markup;
    }
                  <span class="options">[ <a class="edit" rel="noindex,nofollow" href="<?php 
                        echo $_GET['this_current_url'] . 'action=edit&amp;post_id=' . $this_post_info['post_id'] . '#comment-form';
                        ?>
">edit</a> | <a class="delete" rel="noindex,nofollow" href="<?php 
                        echo $_GET['this_current_url'];
                        ?>
" data-href="<?php 
                        echo $_GET['this_current_url'] . 'action=delete&amp;post_id=' . $this_post_info['post_id'] . '#comment-form';
                        ?>
">delete</a> ]</span>
                <?php 
                    }
                    ?>
              </div>
              <div class="bodytext"><?php 
                    echo rpg_website::formatting_decode($temp_post_body);
                    ?>
</div>
            </div>
            <?php 
                    if ($this_userid != MMRPG_SETTINGS_GUEST_ID && empty($this_thread_info['thread_locked']) && $community_battle_points > 5000) {
                        ?>
              <a class="postreply" rel="nofollow" href="<?php 
                        echo 'community/' . $this_category_info['category_token'] . '/' . $this_thread_info['thread_id'] . '/' . $this_thread_info['thread_token'] . '/#comment-form:' . $temp_reply_name . ':' . $temp_reply_colour;
                        ?>
" style="right: 46px;">@ Reply</a>
            <?php 
                    }
                    ?>
            <a class="postscroll" href="#top" style="right: 12px;">^ Top</a>
          <?php 
                                <li class="stat"><span class="counter summoned_counter">0 Summoned</span></li>
                                <li class="stat"><span class="counter scanned_counter">0 Scanned</span></li>
                                <li class="stat"><span class="counter encountered_counter">0 Encountered</span></li>
                            <?php 
    }
    ?>
                        </ul>
                    </div>
                </div>

                <div class="bodytext" style="margin-top: 15px;">
                    <?php 
    if (!empty($temp_display_text)) {
        ?>
                        <?php 
        echo str_replace('<p>', '<p class="text">', rpg_website::formatting_decode($temp_display_text)) . "\n";
        ?>
                    <?php 
    } else {
        ?>
                        <p class="text" style="color: #505050; padding: 2px;">- no profile data -</p>
                    <?php 
    }
    ?>
                </div>

            <?php 
} elseif ($this_current_token == 'robots') {
    ?>

            <div id="game_frames" class="field" style="height: 600px;">
</a><?php 
    }
    ?>
      </div>
      <div><span><?php 
    echo $temp_userinfo['role_name'];
    ?>
</span> <span class="pipe">|</span> <span><?php 
    echo date('F Y', $temp_userinfo['user_date_created']);
    ?>
</span> <span class="pipe">|</span> <em><?php 
    echo $temp_displayline;
    ?>
</em></div>
      <?php 
    echo rpg_website::formatting_decode($temp_displaytext);
    ?>
    </div>
  </div>
  <?php 
}
?>
<div class="subbody" style="margin-bottom: 2px; ">
  <p class="text">
    <a href="http://www.youtube.com/user/TheLegendOfRenegade/" target="_blank"><strong>TheLegendOfRenegade</strong></a> <span class="pipe">|</span> <span>Contributor</span> <span class="pipe">|</span> <em>Mega Man 1, 2, 7, and R&amp;F Sega Genesis Remixes</em><br />
    YouTube user TheLegendOfRenegade is responsible for any and all music and sound effects in the prototype and graciously agreed to let us use his work in July 2013.  All tracks come from his massive, multiple-game-spanning Sega Genesis / MD Remix project and they are really, really incredible.  All field music thus far has come from his <a href="http://www.youtube.com/playlist?list=PL0jbwTITrHXaBy3etRm-nmkx-f-QaPOwQ" target="_blank">Mega Man 1 &amp; 2</a> collection with various menu and special battle themes coming from the <a href="http://www.youtube.com/playlist?list=PL0jbwTITrHXZfMogt7ll1ThTlpND_5KZH" target="_blank">Rockman &amp; Forte</a> and <a href="http://www.youtube.com/playlist?list=PL0jbwTITrHXbA31nYgKs863E4UgLxUJkh" target="_blank">Mega Man 7</a> collections in addition to the former.  The level of quality and polish these remixes bring to the game is beyond words, and I am so grateful that we're able to showcase them in our prototype.  TheLegendOfRenegade has done some truly great work, and I think I speak for everyone on the team when I say &quot;thank you&quot;.  ^_^
    <span style="display: block; font-size: 10px; line-height: 12px; margin-top: 2px;">* Because TheLegendOfRenegade has not created remixes for Time Man and Oil Man's stages in Powered Up, the R&amp;F themes for Astro Man and Tengu Man are currently being used in their place. The game will be updated if/when he ever creates them, but please enjoy the current selection until then. :)</span>
  </p>
</div>
<div class="subbody">
  <p class="text">