please take a look at the Knowledge Base.
From the release of Board3 Portal V.1.0.3 on, we added some kind of "interface" for additional blocks.
This is meant for easier updating the portal in future, so that the edits for the additional blocks don't have to be done every update again.
Therefor we have added a few new files to the portal. We recommend to use this files and to adapt your install instructions to this new structure:
- PHP
portal/block/additional_blocks.php
This file is meant for any kind of include of PHP files. So this should not be added in the portal.php anymore.
Example for an install instruction:
open portal/block/additional_blocks.php
search:add before:Code: Select all
?>
Code: Select all
// Wetter START include($phpbb_root_path . 'portal/block/wetter.'.$phpEx); // Wetter ENDE
- Language
language/en/mods/additional_blocks.php
This file is meant for language variables needed for additional blocks
portal/includes/lang_adm_additional_blocks.php
This file is meant for needed ACP language files, if you add some kind of ACP management for your block.
Example for an install instruction:
open portal/includes/lang_adm_additional_blocks.php
search:add before:Code: Select all
?>
Code: Select all
$user->add_lang('mods/info_acp_portal_boost');
- Templates
styles/your_template/template/portal/block/additional_blocks_center.html
as well as additional_blocks_left.html and additional_blocks_right.html
You can get your template include in one of these files. So this should not be added in the portal_body.html anymore.
Example for an install instruction:
open styles/your_template/template/portal/block/additional_blocks_center.html
search:add after:Code: Select all
<!-- additional_blocks //-->
Code: Select all
<!-- IF S_DISPLAY_GALLERY --> <!-- INCLUDE portal/block/album_small.html --> <!-- ENDIF -->