Example #1
0
    define('COMMUNITY_VIEW_MODERATOR', false);
}
// Define the SEO variables for this page
$this_seo_title = 'Community | ' . $this_seo_title;
$this_seo_description = 'The community forums serve as a place for players and developers to connect and communicate with each other, providing feedback and relaying ideas in a forum-style bulletin board tied directly to player\'s save files.  Mega Man RPG World is a browser-based fangame that combines the mechanics of both the Pokémon and Mega Man series of video games into one strange and wonderful little time waster.';
// Define the Open Graph variables for this page
$this_graph_data['title'] = 'Community Forums';
$this_graph_data['description'] = 'The community forums serve as a place for players and developers to connect and communicate with each other, providing feedback and relaying ideas in a forum-style bulletin board tied directly to player\'s save files.';
//$this_graph_data['image'] = MMRPG_CONFIG_ROOTURL.'images/assets/mmrpg-prototype-logo.png';
//$this_graph_data['type'] = 'website';
// Define the MARKUP variables for this page
$this_markup_header = 'Mega Man RPG World Community';
// Generate field lists for the relevant community database tables
$db_category_fields = rpg_website::get_category_fields(true, 'categories');
$db_thread_fields = rpg_website::get_thread_fields(true, 'threads');
$db_post_fields = rpg_website::get_post_fields(true, 'posts');
$db_role_fields = rpg_user_role::get_fields(true, 'roles');
$db_user_fields = rpg_user::get_fields(true, 'users');
/*
 * COLLECT FORMACTIONS
 */
// Collect this player's battle point total
if (empty($_SESSION[rpg_game::session_token()]['DEMO'])) {
    $community_battle_points = rpg_game::battle_points();
} else {
    $community_battle_points = 0;
}
// Collect all the categories from the index
$this_categories_index = rpg_website::community_index();
$this_categories_index_tokens = array();
foreach ($this_categories_index as $token => $info) {