mNo edit summary |
mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Some people would like to create a page which is external to SMF, and does not use a [[custom action | Some people would like to create a page which is external to SMF, and does not use a [[Add_a_custom_action_using_integration_hooks|custom action]], but still displays the theme header and footer. | ||
The following code will display the forum's header and footers, as well as a full forum page initiation (all variables, etc) but will allow you to include your own content in the middle. | The following code will display the forum's header and footers, as well as a full forum page initiation (all variables, etc) but will allow you to include your own content in the middle. | ||
Line 6: | Line 6: | ||
<?php | <?php | ||
require_once('/path/to/SSI.php'); | require_once('/path/to/SSI.php'); | ||
$context['page_title_html_safe'] = 'Page title goes here'; | |||
template_html_above(); | template_html_above(); | ||
template_body_above(); | template_body_above(); |
Latest revision as of 13:35, 9 December 2012
Some people would like to create a page which is external to SMF, and does not use a custom action, but still displays the theme header and footer.
The following code will display the forum's header and footers, as well as a full forum page initiation (all variables, etc) but will allow you to include your own content in the middle.
<?php require_once('/path/to/SSI.php'); $context['page_title_html_safe'] = 'Page title goes here'; template_html_above(); template_body_above(); echo ' <hr /> This would be the content sections of the page <hr /> '; template_body_below(); template_html_below(); ?>