From 5692f347e501deb53e03b474adb10c919e5e7966 Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Fri, 5 Oct 2001 08:29:32 +0000 Subject: [PATCH] FAQ system..I"m not entirly happy with it but at this stage its too late to spend alot of time on something as small as this git-svn-id: file:///svn/phpbb/trunk@1127 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/faq.php | 14 ++++++++ phpBB/language/faq_english.php | 44 ++++++++++++++++++++++++++ phpBB/templates/subSilver/faq_body.tpl | 16 ++++++++++ 3 files changed, 74 insertions(+) create mode 100755 phpBB/language/faq_english.php create mode 100755 phpBB/templates/subSilver/faq_body.tpl diff --git a/phpBB/faq.php b/phpBB/faq.php index 574689ee2b..f78fbd0424 100644 --- a/phpBB/faq.php +++ b/phpBB/faq.php @@ -34,6 +34,20 @@ init_userprefs($userdata); // include($phpbb_root_path . 'includes/page_header.'.$phpEx); +include($phpbb_root_path . 'language/faq_' . $board_config['default_lang'] . '.' . $phpEx); + +$template->set_filenames(array( + "body" => "faq_body.tpl") +); + +$template->assign_vars(array("L_FAQ" => $lang['FAQ'])); + +for($i = 0; $i < count($faq); $i++) +{ + $template->assign_block_vars("faqrow", array("FAQ_QUESTION" => $faq[$i][0], "FAQ_ANSWER" => $faq[$i][1])); +} + +$template->pparse("body"); include($phpbb_root_path . 'includes/page_tail.'.$phpEx); diff --git a/phpBB/language/faq_english.php b/phpBB/language/faq_english.php new file mode 100755 index 0000000000..144323e216 --- /dev/null +++ b/phpBB/language/faq_english.php @@ -0,0 +1,44 @@ + + \ No newline at end of file diff --git a/phpBB/templates/subSilver/faq_body.tpl b/phpBB/templates/subSilver/faq_body.tpl new file mode 100755 index 0000000000..cd68f3dce1 --- /dev/null +++ b/phpBB/templates/subSilver/faq_body.tpl @@ -0,0 +1,16 @@ + + + + + + + + + + + + +
{L_FAQ}
{faqrow.FAQ_QUESTION}
+
+ {faqrow.FAQ_ANSWER} +
\ No newline at end of file