Okay well here are the raw codes then.
arcade_faq.php in root directory
Code: Select all
<?php
/**
*
* @package phpBB3
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
// Specify the path to you phpBB3 installation directory.
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
// The common.php file is required.
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . '/includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup(array('mods/shop', 'mods/points'));
$user_id = $user->data['user_id'];
global $template, $user, $shop, $db, $config, $phpEx, $phpbb_root_path;
$user->add_lang('mods/arcade_faq', false, true);
// Load shop template
$template->set_filenames(array(
'body' => 'arcade_faq.html')
);
/*
* basic example of the assign block vars for the templates
* This basically will allow you to easily display a block or array of data in a template
* this is useful for pets such as SQL queries to the database and displaying them in your templates.
*/
// Pull the array data from the lang pack
$switch_column = $found_switch = false;
$help_blocks = array();
foreach ($user->help as $help_ary)
{
if ($help_ary[0] == '--')
{
if ($help_ary[1] == '--')
{
$switch_column = true;
$found_switch = true;
continue;
}
$template->assign_block_vars('faq_block', array(
'BLOCK_TITLE' => $help_ary[1],
'SWITCH_COLUMN' => $switch_column,
));
if ($switch_column)
{
$switch_column = false;
}
continue;
}
$template->assign_block_vars('faq_block.faq_row', array(
'FAQ_QUESTION' => $help_ary[0],
'FAQ_ANSWER' => $help_ary[1])
);
}
// Lets build a page ...
$template->assign_vars(array(
'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP'],
'ARCADE_FAQ_TITLE' => 'Arcade FAQ',
'SWITCH_COLUMN_MANUALLY' => (!$found_switch) ? true : false,
));
// Page title, this language variable should be defined in the language file you setup at the top of this page.
page_header($user->lang['MY_TITLE']);
// Completing the script and displaying the page.
page_footer();
?>
langauge/en/mods/help_arcade_faq.php
Code: Select all
<?php
/**
*
* help_faq [English]
*
* @package language
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
*/
if (!defined('IN_PHPBB'))
{
exit;
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$help = array(
array(
0 => '--',
1 => 'Playing Games'
),
array(
0 => 'Why can’t I play a game/submit a score?',
1 => 'There are several reasons why this could occur. First, check that you are logged in, as games are not available to guests(or bots). If so, contact the board administrator with the specifics about your problem playing games or submitting a score.'
),
array(
0 => 'How do I get points for playing games?',
1 => 'Points are awarded automatically after you win a high score for a game, with or without submitting a comment beside your score. Certain games may grant more points than others. If you are not receiving points for winning new high scores, please contact the board administrator with the specifics about your problem earning points.'
),
array(
0 => 'Why is (a specific game) not available?',
1 => 'This site is run on phpbb, and the arcade is run on the arcade game mod for phpbb. That said, only certain games have been created within that mod. Additionally, many games are also protected by copyrights that prevent them from being duplicated on sites other than the original site they were created on.'
),
array(
0 => 'Why are there no new games?',
1 => 'If a game has been on the site for more than a specific amount of days, it will no longer be considered new.'
),
array(
0 => 'How do I rate/favorite a game?',
1 => 'At the bottom of the main games page, there is a list of all the games available on the site. Beside them are two icons, a heart outline and 5 star outlines. To rate a game, simply click on the number of stars you think it deserves, and to favorite it, click the heart.'
),
array(
0 => 'How do I play a game in a popup window?',
1 => 'Scroll down to the bottom of the main games page, and click Play in new window to play a game in a popup window.'
),
array(
0 => 'How do I get a high score?',
1 => 'You must earn a higher score than the current high score for that game.',
),
array(
0 => 'What are game statistics?',
1 => 'The arcade records which users have played a game, how many times they have played it, and their total time playing any and all games. If they have a high score, it is also included with their statistics.',
),
array(
0 => 'What can I control on the arcade?',
1 => 'In your user control panel you can change whether or not to receive a PM with a high score loss, the number of games to show on the front page, how to display the games(alphabetically or otherwise), and your game challenge settings.',
),
array(
0 => 'Where can I suggest a new game or feature for the arcade?',
1 => 'Contact the board administrator with your request.'
),
array(
0 => 'I have a question that is’nt answered here, where can I get help?',
1 => 'Contact the board administrator for more help.'
),
array(
0 => '--',
1 => '--'
),
array(
0 => '--',
1 => 'Game Challenges'
),
array(
0 => 'What are game challenges?',
1 => 'Game challenges are a feature that lets you wager your points against another user, based on who wins a particular game. You can set the amount to wager, and challenges can be accepted or declined by the user you challenge. The winner of the game wins the points, which are deducted from the user who lost.'
),
array(
0 => 'How do I enable/disable challenges or challenge messages?',
1 => 'Challenges are automatically set to enabled when you register. To disable them, go to your user control panel, and then click the Games tab. There you should see a Challenges sidetab on the left, where you can click to Enable or Disable. This is also where you can disable PMs for challenges.'
),
array(
0 => 'What is different about my challenge statistics and my regular arcade statistics?',
1 => 'Your challenge statistics are unique to the challenge aspect of the arcade. Your overall arcade statistics are not shown on this page, only your challenge statistics. The regular statistics page on the challenge page shows the high scores for all challenges.'
),
array(
0 => 'How can I challenge another user to a particular game?',
1 => 'On the main challenge page, there is a dropdown list for all the games, friends, and users who are accepting challenges. You can challenge any of these users to a game by selecting it from the dropdown list and submitting your challenge.'
),
array(
0 => 'How do I know if I’ve been challenged?',
1 => 'Initially, a PM is sent to all users who receive a challenge. If you disable this, you will have to check the challenge page to see whether or not another user has challenged you.'
),
array(
0 => 'How do I refuse a challenge?',
1 => 'Ignore it for more than a week and it will automatically expire. You will have to manually delete the challenge PM notification message in your inbox though, those are not automatically deleted.'
),
array(
0 => 'Do we have to play the game at the same time during a challenge?',
1 => 'No. Users can accept a challenge and then wait 6 days before playing a challenge if the want. After that, the challenge will automatically expire.'
),
);
?>
styles/prosilver/templates/arcade_faq.html
Code: Select all
<!-- INCLUDE overall_header.html -->
<h2>{L_ARCADE_FAQ_HELP}</h2>
<div class="panel bg1" id="faqlinks">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="column1">
<!-- BEGIN faq_block -->
<!-- IF faq_block.SWITCH_COLUMN or (SWITCH_COLUMN_MANUALLY and faq_block.S_ROW_COUNT == 4) -->
</div>
<div class="column2">
<!-- ENDIF -->
<dl class="faq">
<dt><strong>{faq_block.BLOCK_TITLE}</strong></dt>
<!-- BEGIN faq_row -->
<dd><a href="#f{faq_block.S_ROW_COUNT}r{faq_block.faq_row.S_ROW_COUNT}">{faq_block.faq_row.FAQ_QUESTION}</a></dd>
<!-- END faq_row -->
</dl>
<!-- END faq_block -->
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<div class="clear"></div>
<!-- BEGIN faq_block -->
<div class="panel <!-- IF faq_block.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF -->">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="content">
<h2>{faq_block.BLOCK_TITLE}</h2>
<!-- BEGIN faq_row -->
<dl class="faq">
<dt id="f{faq_block.S_ROW_COUNT}r{faq_block.faq_row.S_ROW_COUNT}"><strong>{faq_block.faq_row.FAQ_QUESTION}</strong></dt>
<dd>{faq_block.faq_row.FAQ_ANSWER}</dd>
<dd><a href="#faqlinks" class="top2">{L_BACK_TO_TOP}</a></dd>
</dl>
<!-- IF not faq_block.faq_row.S_LAST_ROW --><hr class="dashed" /><!-- ENDIF -->
<!-- END faq_row -->
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- END faq_block -->
<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->