mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-21 10:40:58 +02:00
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
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user