Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: nathan89 - helmikuu 04, 2009, 03:42:51 IP

Otsikko: SSI Page
Kirjoitti: nathan89 - helmikuu 04, 2009, 03:42:51 IP
I have read the docs and posts regarding SSI functionality.  I have no problem getting that to work, however I do not understand how to make the page look like the rest of the site.  What do I do to add my forums menu bar, background, etc on another page?  For example like the main page of this site, the menu, and background match the rest of the site.
Otsikko: Re: SSI Page
Kirjoitti: SlammedDime - helmikuu 04, 2009, 03:48:08 IP
You can use the functions template_header() and template_footer() to get the top and bottom of the forum, along with the styles.


<?php

require_once('SSI.php');

template_header();

template_footer();

?>
Otsikko: Re: SSI Page
Kirjoitti: nathan89 - helmikuu 04, 2009, 04:49:35 IP
I created a .php file named "test.php" however it displays entire homepage of my site.  I added only the code you just specified to this php file located here: http://crohnssociety.com/test.php (http://crohnssociety.com/test.php)

??
Otsikko: Re: SSI Page
Kirjoitti: SlammedDime - helmikuu 04, 2009, 05:47:27 IP
You may have to contact whoever makes your portal system and ask them about it then... that's not a normal SMF behavior.
Otsikko: Re: SSI Page
Kirjoitti: nathan89 - helmikuu 04, 2009, 07:08:53 IP
Thats exactly what the problem was. Something with simple portal was preventing it from working. Thank you very much!