Author Topic: splash Page based on current theme selection  (Read 661 times)

Offline Ceryon

  • Newbie
  • *
  • Posts: 2
splash Page based on current theme selection
« 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?


Offline Kays

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,973
  • Gender: Male
    • Kayssplace
Re: splash Page based on current theme selection
« Reply #1 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
How do I integrate SMF into my PHP coded website?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods