Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Ceryon on February 22, 2010, 09:04:48 AM

Title: splash Page based on current theme selection
Post by: Ceryon on February 22, 2010, 09:04:48 AM
hi All,

My question is as follows. before going to the forum/ portal I want to display a splash page, but the layout of this page needs to match the chosen template layout ( default if not selected, or read the cookie if they revisit). How can I display an empty page, without header, footer or topics that matches the selected template?

Regards,

Title: Re: splash Page based on current theme selection
Post by: Kays on February 22, 2010, 09:42:21 AM
Hi, welcome to SMF. :)

If you include SSI.php on that page then you can use the $settings array such as $settings['theme_dir'] and $settings['theme_url']. Take a look in index.template.php of a theme for how it's done there for linking to the style sheets and use only select parts to put your page together.

Some reading material to help get you started
SSI Readme (http://docs.simplemachines.org/index.php?topic=400.0)
How do I integrate SMF into my PHP coded website? (http://docs.simplemachines.org/index.php?topic=461.0)