SimplePortal

Development => Feature Requests => Topic started by: Mick. on November 21, 2009, 10:40:06 PM

Title: Theme selection for pages
Post by: Mick. on November 21, 2009, 10:40:06 PM
It would be cool if when creating pages, we can select what theme can it be shown.
Title: Re: Theme selection for pages
Post by: ccbtimewiz on November 22, 2009, 06:38:49 PM
It's actually possible to do this, afaik.

Just can't remember the specific function... most likely Nathaniel knows.
Title: Re: Theme selection for pages
Post by: Nathaniel on November 22, 2009, 06:52:28 PM
Try the edit below for your index.php file.

Code: ("Find (index.php)") [Select]
// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
else
loadTheme();

Code: ("Replace") [Select]
// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
elseif (!empty($_REQUEST['page']) && $_REQUEST['page'] == 'pageid')
loadTheme(2);
else
loadTheme();

Added this as a feature request to the ProjectTracker:
http://simpleportal.net/index.php?issue=320.0
Title: Re: Theme selection for pages
Post by: Mick. on November 25, 2009, 08:35:33 PM
Very cool. Ill try this and report back >:-D
Title: Re: Theme selection for pages
Post by: natasa on July 05, 2012, 01:53:51 AM
Is it possible to select different themes for different pages manually?
And how, if it is?
SimplePortal 2.3.8 © 2008-2024, SimplePortal