$this_seo_title = $this_category_info['category_name'].' | '.$this_seo_title;
$this_seo_description = strip_tags($this_category_info['category_description']);

// Define the Open Graph variables for this page
$this_graph_data['title'] = 'Community Forums | '.$this_category_info['category_name'];
$this_graph_data['description'] = strip_tags($this_category_info['category_description']);
//$this_graph_data['image'] = MMRPG_CONFIG_ROOTURL.'images/assets/mmrpg-prototype-logo.png';
//$this_graph_data['type'] = 'website';

// Update the MARKUP variables for this page
//$this_markup_header = $this_thread_info['thread_name']; //.' | '.$this_markup_header;

// Require the leaderboard data file
require_once('includes/leaderboard.php');
// Collect all the active sessions for this page
$temp_viewing_category = rpg_website::sessions_active('community/'.$this_category_info['category_token'].'/', 3, true);
$temp_viewing_userids = array();
foreach ($temp_viewing_category AS $session){ $temp_viewing_userids[] = $session['user_id']; }

// Create a chat name for them that's valid for the room
$user_chat_name = !empty($this_userinfo['user_name_public']) ? $this_userinfo['user_name_public'] : $this_userinfo['user_name'];
$user_chat_name = preg_replace('/([^-_a-z0-9]+)/i', '', $user_chat_name);

?>
<h2 class="subheader thread_name field_type_<?= MMRPG_SETTINGS_CURRENT_FIELDTYPE ?>">
  <a class="link" style="display: inline;" href="<?= str_replace($this_category_info['category_token'].'/', '', $_GET['this_current_url']) ?>">Community</a> <span class="pipe">&nbsp;&raquo;&nbsp;</span>
  <a class="link" style="display: inline;" href="<?= $_GET['this_current_url'] ?>"><?= $this_category_info['category_name'] ?></a>
</h2>
<div class="subbody">
  <div class="float float_right"><div class="sprite sprite_80x80 sprite_80x80_0<?= mt_rand(0, 2) ?>" style="background-image: url(images/sprites/robots/<?= MMRPG_SETTINGS_CURRENT_FIELDMECHA ?>/sprite_left_80x80.png);">Met</div></div>
  <p class="text"><?= $this_category_info['category_description'] ?></p>
Example #2
0
             <a href="<?= MMRPG_CONFIG_ROOTURL ?>database/items/" class="link <?= $this_current_sub == 'items' ? 'link_active field_type_empty' : '' ?>"><span>Items</span></a>
             <a href="<?= MMRPG_CONFIG_ROOTURL ?>database/fields/" class="link <?= $this_current_sub == 'fields' ? 'link_active field_type_empty' : '' ?>"><span>Fields</span></a>
             <a href="<?= MMRPG_CONFIG_ROOTURL ?>database/types/" class="link <?= $this_current_sub == 'types' ? 'link_active field_type_empty' : '' ?>"><span>Types</span></a>
         <? endif; ?>
         <?php
         // Print out the community links if applicable
         if ($this_current_page == 'community'){
             if (!empty($this_categories_index)){
                 foreach ($this_categories_index AS $temp_token => $temp_category){
                     $temp_id = $temp_category['category_id'];
                     if (($temp_id == 0 || $temp_token == 'chat') && $this_userid == MMRPG_SETTINGS_GUEST_ID){ continue; }
                     if (($temp_token == 'personal' || $temp_token == 'chat') && empty($this_userinfo['user_flag_postprivate'])){ continue; }
                     $temp_link = MMRPG_CONFIG_ROOTURL.'community/'.$temp_category['category_token'].'/';
                     $temp_active = $this_current_cat == $temp_category['category_token'] ? true : false;
                     $temp_count = !empty($temp_new_threads_categories[$temp_id]) ? $temp_new_threads_categories[$temp_id] : 0;
                     $temp_viewing = $temp_token != 'personal' ? rpg_website::sessions_active('community/'.$temp_category['category_token'].'/', 3, true) : array();
                     $temp_viewing = !empty($temp_viewing) ? count($temp_viewing) : 0;
                     //die('<pre>$temp_id('.$temp_id.'); $temp_count('.$temp_count.'); $temp_new_threads_categories = '.print_r($temp_new_threads_categories, true).'</pre>');
                     echo '<a href="'.$temp_link.'" class="link '.($temp_active ? 'link_active field_type_empty' : '').'">';
                     echo '<span>'.ucfirst($temp_token).'</span>';
                     if ($temp_count > 0){ echo  '<sup class="sup field_type field_type_electric" title="'.($temp_count == 1 ? '1 Updated Thread' : $temp_count.' Updated Threads').'">'.$temp_count.'</sup>'; }
                     if ($temp_viewing > 0){ echo  '<sup class="sup field_type field_type_nature" title="'.($temp_viewing == 1 ? '1 Player ' : $temp_viewing.' Players ').($temp_token == 'search' ? 'Searching' : 'Browsing').'" style="'.($temp_count > 0 ? 'margin-left: -3px;' : '').'">'.$temp_viewing.'</sup>'; }
                     echo '</a>';
                 }
             }
         }
         ?>
     </div>
     <? endif; ?>
 <?php else: ?>
     &hellip;&gt;_&lt;&hellip;