So to add Fluffi's Board_rules mod to the FAQ editor you need to do the following:
CODE
Open
admin/admin_faq_editor.php
Find
if(file_exists($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx))
{
$module['Faq_manager']['attachment_faq'] = "$file?file=faq_attach";
}
After add
if(file_exists($phpbb_root_path . 'board_rules.'.$phpEx))
{
$module['Faq_manager']['Board_rules'] = "$file?file=board_rules";
}
CODE
Open
board_rules.php
Find
for($i = 0; $i < count($board_rules); $i++)
{
if( $board_rules[$i][0] != '--' )
{
$board_rules_block[$j][$counter]['id'] = $counter_2;
$board_rules_block[$j][$counter]['question'] = $board_rules[$i][0];
$board_rules_block[$j][$counter]['answer'] = $board_rules[$i][1];
$counter++;
$counter_2++;
}
else
{
$j = ( $counter != 0 ) ? $j + 1 : 0;
$board_rules_block_titles[$j] = $board_rules[$i][1];
$counter = 0;
}
}
replace with
for($i = 0; $i < count($faq); $i++)
{
if( $faq[$i][0] != '--' )
{
$board_rules_block[$j][$counter]['id'] = $counter_2;
$board_rules_block[$j][$counter]['question'] = $faq[$i][0];
$board_rules_block[$j][$counter]['answer'] = $faq[$i][1];
$counter++;
$counter_2++;
}
else
{
$j = ( $counter != 0 ) ? $j + 1 : 0;
$board_rules_block_titles[$j] = $faq[$i][1];
$counter = 0;
}
}
AND:
OPEN
/language/lang_english/lang_board_rules.php
//for every time: $board_rules[] change to: $faq[]
Find
$board_rules[]
Replace with
$faq[]
save/close all files
Only if you have done all of this, you ca nuse the FAQ editor to edit the board_rules page. Tested and works fine.
Thanks again Selven for the great help.