My hack sample to add StaticPages(not ExternalLink) for only V1.0.1. This is a medley of the information that dispersed (Thanks gidgreen and other users). Below sample is FAQ-page.
------------------------------------------------------------------------
【Step1】
File: qa-include/qa-index.php
Operation: Add line(near L507).
------------------------------------------------------------------------
$qa_routing=array(
...
...
'faq' => QA_INCLUDE_DIR.'qa-page-faq.php', /*** add ***/
);
------------------------------------------------------------------------
【Step2】
File: qa-theme/YourTheme/qa-theme.php
Operation: Make new file. Or add lines( For custom pages[START] ... For custom pages[END]).
------------------------------------------------------------------------
<?php
class qa_html_theme extends qa_html_theme_base
{
/*** For custom pages [START] ***/
function main()
{
$content=$this->content;
$this->output('<DIV CLASS="qa-main'.(@$this->content['hidden'] ? ' qa-main-hidden' : '').'">');
$this->page_title(@$this->content['title']);
$this->page_error();
switch ($this->template) {
case 'question':
$this->question_main();
break;
case 'tags':
$this->top_tags();
break;
case 'users':
case 'admin/users';
$this->top_users();
break;
default:
$this->form(@$content['form']);
$this->form(@$content['form_2']);
$this->q_list_and_form(@$content['q_list']);
$this->q_list_and_form(@$content['a_list']);
/*** add [start] ***/
if (!empty($content['customcontents']))
$this->output($content['customcontents'], '');
/*** add [end]***/
break;
}
$this->page_links();
$this->suggest_next();
$this->output('</DIV> <!-- END qa-main -->', '');
}
function nav_list($navigation, $navtype)
{
/*** add [start]***/
// if ($navtype=='main') // Display to main navigation.
if ($navtype=='user') // Display to sub(right-upper) navigation.
$navigation['faq']=array( 'url' => $options['site_url'] . 'faq', 'label' => 'FAQ');
/*** add [end]***/
qa_html_theme_base::nav_list($navigation, $navtype);
}
/*** For custom pages [END] ***/
}
/*
Omit PHP closing tag to help avoid accidental output
*/
------------------------------------------------------------------------
【Step3】
File: qa-include/qa-page-faq.php
Operation: Make new file.
------------------------------------------------------------------------
<?php
if (!defined('QA_VERSION')) { // don't allow this page to be requested directly from browser
header('Location: ../');
exit;
}
// Prepare content for theme
qa_content_prepare();
$qa_content['title']='FAQ';
$qa_content['customcontents']='
/* favorite HTML statement [START] */
<H2>SubTitle1</H2>
<P>Detail of SubTitle1(line 1)<BR>Detail of SubTitle1(line 2)</P>
<H2>SubTitle2</H2>
<P>Detail of SubTitle2(line 1)<BR>Detail of SubTitle2(line 2)</P>
<H2>SubTitle3</H2>
<P>Detail of SubTitle3(line 1)<BR>Detail of SubTitle3(line 2)</P>
/* favorite HTML statement [END] */
';
/*
Omit PHP closing tag to help avoid accidental output
*/