Don't know what you've done already.
Seems like you've added a DB field named "
portal_gallery" - to the
phpbb_portal_config table? If not - do so.
Then you have to add this line in your gallery_recent file:
search (if present):
add after:
Code: Select all
'S_DISPLAY_GALLERY' => ($portal_config['portal_gallery']) ? true : false,
To explain it:
You set a value via the ACP to define whether this block is active or not - in the DB field
portal_gallery.
This is what you're doing here:
Code: Select all
'portal_gallery' => array('lang' => 'PORTAL_GALLERY' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
Then your gallery_recent.php file have to check this DB field
portal_gallery if this block is active / if it should be displayed. In this case the switch S_DISPLAY_GALLERY will be set to "true" - otherwise it'll be set to "false".
Then this switch / value is given to the templates, to answer this IF-statement: <!-- IF S_DISPLAY_GALLERY -->
That's all.