Custom Block Activation in ACP
Posted: 11. November 2008 01:03
Would this be an undertaking to create an option in the ACP to turn on and off a custom block? Would it require database entries?
Code: Select all
'portal_my_block' => array('lang' => 'PORTAL_MY_BLOCK' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
Code: Select all
if ($portal_config['portal_my_block'])
{
include($phpbb_root_path . 'portal/block/my_block.'.$phpEx);
}
Code: Select all
$template->assign_vars(array(
'S_MY_BLOCK' => true,
));
Code: Select all
<!-- IF S_MY_BLOCK -->
<!-- INCLUDE portal/block/my_block.html -->
<!-- ENDIF -->